Commit Graph

77148 Commits

Author SHA1 Message Date
Uros Bizjak
bb6bb5a43d * gcc.dg/20061124-1.c: Add exit() function prototype.
From-SVN: r119290
2006-11-28 14:46:31 +01:00
Jakub Jelinek
f2f4ae8390 re PR c++/29735 (ICE on "main" returning vector)
PR c++/29735
	* decl.c (grokfndecl): Check main's type after applying
	attributes, not before.

	* g++.dg/warn/main-3.C: New test.

From-SVN: r119288
2006-11-28 14:04:03 +01:00
Joseph Myers
65c04c80da * sv.po, tr.po: Update.
From-SVN: r119285
2006-11-28 12:05:25 +00:00
Joseph Myers
bf123ad64d function.c (instantiate_virtual_regs_in_insn): Call force_reg inside start_sequence / end_sequence pair.
* function.c (instantiate_virtual_regs_in_insn): Call force_reg
	inside start_sequence / end_sequence pair.

From-SVN: r119282
2006-11-28 12:01:13 +00:00
Paul Thomas
d982e8189a re PR fortran/29976 (ICE on optional arg)
2006-11-28  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/29976
	* trans-expr.c (gfc_conv_missing_dummy): Remove build_int_const
	and replace with cast to type of se->expr of integer_zero_node.

2006-11-28  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/29976
	* gfortran.dg/missing_optional_dummy_3.f90

From-SVN: r119275
2006-11-28 05:52:02 +00:00
Paul Thomas
1362ff414b re PR fortran/20880 (USE association of procedure's own interface)
2006-11-28  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/20880
	* resolve.c (resolve_fl_procedure): Error if procedure is
	ambiguous modified to require attr.referenced.

2006-11-28  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/20880
	* gfortran.dg/interface_3.f90: Modify errors.

From-SVN: r119274
2006-11-28 05:50:21 +00:00
GCC Administrator
d0d950c9f3 Daily bump.
From-SVN: r119266
2006-11-28 00:17:32 +00:00
Michael Matz
652b3f1324 re PR target/29319 (ICE unrecognizable insn: offset too large for larl (breaks glibc))
2006-11-27  Michael Matz  <matz@suse.de>
            Andreas Krebbel  <krebbel1@de.ibm.com>

	PR target/29319
	* config/s390/predicates.md (larl_operand): Check addend of larl
	operand to be in range of -/+2GB.
	* config/s390/s390.c (legitimize_pic_address): Likewise.  
	Changed type of variable even to HOST_WIDE_INT.

2006-11-27  Michael Matz  <matz@suse.de>
            Andreas Krebbel  <krebbel1@de.ibm.com>

	PR target/29319
	* gcc.dg/20061127-1.c: New testcase.


Co-Authored-By: Andreas Krebbel <krebbel1@de.ibm.com>

From-SVN: r119255
2006-11-27 16:26:53 +00:00
Mark Mitchell
ad182b8170 re PR c++/29886 (Cast misinterpreted as variable declaration)
PR c++/29886
	* parser.c (cp_parser): Add in_function_body.
	(cp_parser_new): Initialize it.
	(cp_parser_primary_expression): Use parser->in_function_body
	instead of at_function_scope_p.
	(cp_parser_asm_definition): Likewise.
	(cp_parser_direct_declarator): Likewise.
	(cp_parser_class_specifier): Clear parser->in_function_body.
	(cp_parser_constructor_declarator_p): Use parser->in_function_body
	instead of at_function_scope_p.
	(cp_parser_function_body_after_declarator): Set
	parser->in_function_body.
	PR c++/29886
	* g++.dg/expr/cast8.C: New test.

From-SVN: r119244
2006-11-27 04:56:02 +00:00
GCC Administrator
2161b1e6d6 Daily bump.
From-SVN: r119237
2006-11-27 00:17:56 +00:00
Kaveh R. Ghazi
4d24587f52 configure.in (--with-mpfr-dir, [...]): Remove flags.
* configure.in (--with-mpfr-dir, --with-gmp-dir): Remove flags.
	(--with-mpfr-include, --with-mpfr-lib, --with-gmp-include,
	--with-gmp-lib): New flags.

	* configure: Regenerate.

gcc:
	* doc/install.texi: Remove documentation for --with-mpfr-dir
	and --with-gmp-dir, add documentation for --with-mpfr-include,
	--with-mpfr-lib, --with-gmp-include and --with-gmp-lib.

From-SVN: r119233
2006-11-27 00:12:34 +00:00
Mohan Embar
be5f186090 re PR libgcj/29151 ([win32] Runtime.exec(String[] cmdarray, String[] envp) -> envp doesn't work)
PR libgcj/29151:
* java/lang/natWin32Process.cc (startProcess): Unconditionally
create a UNICODE environment for CreateProcess call.

From-SVN: r119230
2006-11-26 19:53:11 +00:00
Eric Botcazou
03e9913945 Fix oversight.
From-SVN: r119229
2006-11-26 18:27:27 +00:00
Andrew Pinski
b9d73c9557 re PR fortran/29982 ([4.1 only] ICE in write() with gfortran 4.1.2 (and 4.2 and 4.3...))
2006-11-25  Andrew Pinski  <pinskia@gmail.com>

        PR fortran/29982
        * trans-expr.c (gfc_conv_expr_reference): Strip off NOP_EXPRs.

2006-11-25  Andrew Pinski  <pinskia@gmail.com>

        PR fortran/29982
        * gfortran.fortran-torture/compile/parameter_3.f90: New
        testcase.

From-SVN: r119227
2006-11-26 10:08:14 -08:00
GCC Administrator
41d9d78f71 Daily bump.
From-SVN: r119215
2006-11-26 00:17:16 +00:00
Andrew Pinski
19a32c5ea6 re PR tree-optimization/29964 (function with volatile operators still found to be pure)
2006-11-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR tree-opt/29964
        * ipa-pure-const.c (check_tree): If the original tree
        is volatile return early and say the function is not pure
        nor const.  Remove the volatile check for writes.
        (analyze_function): Print out the result of the local
        analysis pass.

2006-11-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR tree-opt/29964
        * gcc.dg/pure-1.c: New test.

From-SVN: r119202
2006-11-25 08:45:09 -08:00
Paul Thomas
a3cac7f4e3 re PR fortran/20880 (USE association of procedure's own interface)
2006-11-25  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/20880
	* parse.c (parse_interface): Error if procedure name is that of
	encompassing scope.
	* resolve.c (resolve_fl_procedure): Error if procedure is
	ambiguous.

	PR fortran/29837
	* interface.c (compare_actual_formal): Add missing condition
	that 'where' be present for error that asserts that actual
	arguments be definable.

2006-11-25  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/20880
	* gfortran.dg/interface_3.f90: New test.

	PR fortran/29837
	* gfortran.dg/generic_8.f90: New test.

From-SVN: r119198
2006-11-25 14:37:56 +00:00
Jakub Jelinek
f40ab9dd50 * gcc.dg/20061124-1.c: Add "exit(0);" to the end of main.
From-SVN: r119194
2006-11-25 15:09:08 +01:00
Jerry DeLisle
0fa55a4342 re PR libfortran/29936 (Missed constraint on RECL=specifier in unformatted sequential WRITE)
2006-11-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/29936
	* gfortran.dg/write_check3.f90: New test.

From-SVN: r119185
2006-11-25 07:14:33 +00:00
Jerry DeLisle
328d8f5c8b re PR libfortran/29936 (Missed constraint on RECL=specifier in unformatted sequential WRITE)
2006-11-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/29936
	* io/io.h (unit_flags): Add new flag has_recl.
	* io.open.c (new_unit): Set flag if RECL= was specified.
	* io/transfer.c (us_write): If flag set, leave recl as initialized by
	new_unit.

From-SVN: r119184
2006-11-25 07:12:56 +00:00
GCC Administrator
1082076555 Daily bump.
From-SVN: r119180
2006-11-25 00:17:26 +00:00
Francois-Xavier Coudert
fb2ea50e0c re PR fortran/29391 ([4.2/4.1 only] LBOUND and UBOUND are broken)
PR fortran/29391
	PR fortran/29489
	* simplify.c (simplify_bound): Fix the simplification of
	LBOUND/UBOUND intrinsics.
	* trans-intrinsic.c (simplify_bound): Fix the logic, and
	remove an erroneous assert.
	* gfortran.dg/bound_2.f90: New test.
	* gfortran.dg/bound_3.f90: New test.

	PR fortran/24285
	* io.c (check_format): Allow dollars everywhere in format, and
	issue a warning.
	* gfortran.dg/dollar_edit_descriptor-3.f: New test.

From-SVN: r119174
2006-11-24 22:25:34 +00:00
Jakub Jelinek
93fff87edd re PR c/29955 (ICE with -fopenmp -fexceptions)
PR c/29955
	* c-tree.h (c_maybe_initialize_eh): New prototype.
	* c-decl.c (finish_decl): Move EH initialization...
	(c_maybe_initialize_eh): ... here.  New function.
	* c-parser.c (c_parser_omp_construct): Call c_maybe_initialize_eh
	if not #pragma omp atomic.

	* gcc.dg/gomp/pr29955.c: New test.

From-SVN: r119169
2006-11-24 22:29:13 +01:00
Jakub Jelinek
fb6dff6bad re PR c/29736 (ICE on duplicate vector attribute)
PR c/29736
	* c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
	or UNION_TYPE inner types.

	* gcc.dg/pr29736.c: New test.

From-SVN: r119166
2006-11-24 22:24:34 +01:00
Joseph Myers
7eabf47464 eabispe.h (TARGET_DEFAULT): Include MASK_STRICT_ALIGN.
* config/rs6000/eabispe.h (TARGET_DEFAULT): Include
	MASK_STRICT_ALIGN.
	* config/rs6000/linuxspe.h (TARGET_DEFAULT): Likewise.
	* config/rs6000/rs6000.c (rs6000_override_options): Use
	MASK_STRICT_ALIGN for 8540 and 8548.  Add MASK_STRICT_ALIGN to
	POWERPC_MASKS.

From-SVN: r119157
2006-11-24 16:26:16 +00:00
Joseph Myers
8c5de263a1 simd-2.C: Use -O -w in general for PowerPC.
* g++.dg/eh/simd-2.C: Use -O -w in general for PowerPC.
	* gcc.dg/debug/dwarf2/const-2.c: Use powerpc_altivec_ok.

From-SVN: r119153
2006-11-24 14:07:59 +00:00
Andreas Krebbel
f41067fc7f s390.c (s390_emit_compare_and_swap): New function.
2006-11-24  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390.c (s390_emit_compare_and_swap): New function.
	(s390_expand_cs_hqi, s390_expand_atomic): Call 
	s390_emit_compare_and_swap.

2006-11-24  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.dg/20061124-1.c: New testcase.

From-SVN: r119150
2006-11-24 13:24:06 +00:00
John David Anglin
bfd506d0a8 pa.c (return_addr_rtx): Change 0xe0400002 to -532676606.
* pa.c (return_addr_rtx): Change 0xe0400002 to -532676606.

From-SVN: r119146
2006-11-24 04:33:06 +00:00
GCC Administrator
d3fcd60be1 Daily bump.
From-SVN: r119139
2006-11-24 00:17:10 +00:00
Antony King
18869da682 re PR libstdc++/29920 (include/Makefile.am still uses CCODECVT_H)
2006-11-22  Antony King <anthony.king@st.com>
            J"orn Rennecke <joern.rennecke@st.com>

	PR libstdc++/29920
	* include/Makefile.am (stamp-host): Remove CCODECVT_H line.
	* include/Makefile.in: Regenerate.

Co-Authored-By: J"orn Rennecke <joern.rennecke@st.com>

From-SVN: r119134
2006-11-23 21:22:23 +00:00
Paul Thomas
9f4b7dfd41 re PR fortran/25087 (Error for missing explicit interface needed.)
2006-11-23 Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25087
	* resolve.c (resolve_fl_procedure): Add an error if an external
	automatic character length function does not have an explicit
	interface.

	PR fortran/29652
	* interface.c (check_interface1): Use a local value, instead of
	the dummy, as the inner iterator over interface symbols.

	PR fortran/29820
	* trans-array.c (gfc_get_derived_type): Once done, spread the
	backend_decl to all identical derived types in all sibling
	namespaces.

2006-11-23 Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25087
	* gfortran.dg/auto_char_len_4.f90: New test.

	PR fortran/29652
	* gfortran.dg/generic_7.f90: New test.
	* gfortran.dg/defined_operators_1.f90: Add new error.

	PR fortran/29820
	* gfortran.dg/used_types_13.f90: New test.

From-SVN: r119132
2006-11-23 19:14:05 +00:00
Benjamin Kosnik
bd29e46381 hashtable.h: -Wshadow fixes.
2006-11-21  Benjamin Kosnik  <bkoz@redhat.com>
	
	* include/ext/hashtable.h: -Wshadow fixes.
	* include/ext/pb_ds/detail/cc_hash_table_map_/erase_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/resize_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/pat_trie_/internal_node.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	constructor_destructor_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/binary_heap_/split_join_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/ov_tree_map_/
	constructors_destructor_fn_imps.hpp: Same.
	* src/mt_allocator.cc: Same.
	* src/debug.cc: Same.
	* config/locale/gnu/codecvt_members.cc: Same.

From-SVN: r119115
2006-11-23 09:58:01 +00:00
GCC Administrator
bd4d80a9be Daily bump.
From-SVN: r119107
2006-11-23 00:17:13 +00:00
Joseph Myers
45722f3138 spe.md (SPE64): New mode macro.
* config/rs6000/spe.md (SPE64): New mode macro.
	(mov_sidf_e500_subreg0): Change to mov_si<mode>_e500_subreg0.  Add
	memory load.
	(mov_si<mode>_e500_subreg0_2): New.
	(mov_sidf_e500_subreg4): Change to mov_si<mode>_e500_subreg4.  Add
	memory load.
	(mov_si<mode>_e500_subreg4_2): New.
	* config/rs6000/predicates.md (input_operand): Do not allow
	invalid E500 subregs.
	(rs6000_nonimmediate_operand): Check for invalid E500 subregs also
	if TARGET_SPE.
	* config/rs6000/rs6000.c (invalid_e500_subreg): Check for subregs
	involving DFmode if TARGET_E500_DOUBLE.  Check for subregs
	involving vector modes if TARGET_SPE.

From-SVN: r119095
2006-11-22 16:42:15 +00:00
GCC Administrator
061209112a Daily bump.
From-SVN: r119083
2006-11-22 00:17:33 +00:00
Jakub Jelinek
2120c41095 re PR c++/29570 (ICE with brace-enclosed initializer)
PR c++/29570
	* decl.c (cp_finish_decl): Check for value dependent brace enclosed
	scalar initializer.

	* g++.dg/template/static29.C: New test.

From-SVN: r119052
2006-11-21 11:50:30 +01:00
Jakub Jelinek
b7d01500cc re PR c++/29734 (ICE with vector in switch condition)
PR c++/29734
	* cp-tree.h (WANT_VECTOR): Define.
	(WANT_ARITH): Add WANT_VECTOR.
	* cvt.c (build_expr_type_conversion): Handle vector types.
	* typeck.c (build_unary_op): Add WANT_VECTOR to
	build_expr_type_conversion flags.

	* g++.dg/conversion/simd4.C: New test.

From-SVN: r119051
2006-11-21 11:49:02 +01:00
Benjamin Kosnik
c3acfaf653 iostream-inst.cc: Remove iostream include.
2006-11-21  Benjamin Kosnik  <bkoz@redhat.com>
	    Howard Hinnant  <hhinnant@apple.com>

	* src/iostream-inst.cc: Remove iostream include.

From-SVN: r119047
2006-11-21 09:53:59 +00:00
GCC Administrator
de1b399576 Daily bump.
From-SVN: r119036
2006-11-21 00:17:17 +00:00
Anatoly Sokolov
86d8c48296 re PR target/18553 (Annoying warning with -ffunction-sections -g)
PR target/18553
	PR target/29449
	* config/avr/avr.h (OBJECT_FORMAT_ELF): Define.

	* config/avr/avr.h (DWARF2_DEBUGGING_INFO): Define.

From-SVN: r119020
2006-11-20 21:23:13 +03:00
Kaveh R. Ghazi
a1cf97a96a configure.in (--with-mpfr-dir): Also look in .libs and _libs for libmpfr.a.
* configure.in (--with-mpfr-dir): Also look in .libs and _libs for
	libmpfr.a.
	* configure: Regenerate.

From-SVN: r119008
2006-11-20 00:57:02 +00:00
GCC Administrator
c664e7b1ca Daily bump.
From-SVN: r119005
2006-11-20 00:17:47 +00:00
Erik Edelmann
d13d1dc6d2 resolve.c (resolve_ref): Check for ALLOCATABLEs to the right of nonzero rank part references too.
fortran/
2006-11-19  Erik Edelmann  <eedelman@gcc.gnu.org>

	* resolve.c (resolve_ref): Check for ALLOCATABLEs to the right of
	  nonzero rank part references too.

testsuite/
2006-11-19  Erik Edelmann  <eedelman@gcc.gnu.org>

	* gfortran.dg/alloc_comp_constraint_5.f90: New.
	* gfortran.dg/alloc_comp_assign_2.f90: Removed invalid code.

From-SVN: r119000
2006-11-19 21:42:07 +00:00
John David Anglin
30a483ec11 re PR target/29114 (ICE when cross-compiling glibc for hppa on a 64bit host)
PR target/29114
	* pa.c (emit_move_sequence): Don't split constants with PLUS for modes
	larger than BITS_PER_WORD.

From-SVN: r118994
2006-11-19 18:27:03 +00:00
Paolo Carlini
19fa06fa44 functional (hash(long long), [...]): Add specializations.
2006-11-19  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/functional (hash(long long), hash(unsigned long long)):
	Add specializations.

From-SVN: r118992
2006-11-19 16:23:34 +00:00
Richard Guenther
4823b999f2 backport: re PR tree-optimization/29753 (Volatile semantics ignored in some cases)
2006-11-19  Richard Guenther  <rguenther@suse.de>

	Backport from mainline:
	2006-11-15  Paolo Bonzini  <bonzini@gnu.org>

	PR middle-end/29753
	* gimplify.c (fold_indirect_ref_rhs): Use
	STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS.

From-SVN: r118989
2006-11-19 16:14:49 +00:00
John David Anglin
5e94e76831 re PR fortran/27885 (FAIL: libgomp.fortran/vla[1-7].f90 -O0 (test for excess errors))
PR fortran/27885
	PR middle-end/28176
	* stor-layout.c (set_sizetype): Limit precision of *bitsizetypes types
	to MAX_FIXED_MODE_SIZE.

From-SVN: r118984
2006-11-19 00:44:04 +00:00
GCC Administrator
392611ae10 Daily bump.
From-SVN: r118981
2006-11-19 00:17:52 +00:00
Aldy Hernandez
de3c973a11 invoke.texi: Fix mno-isel typo.
* doc/invoke.texi: Fix mno-isel typo.

From-SVN: r118970
2006-11-18 10:57:16 +00:00
Joseph Myers
54ff9c6cb3 spe.md (movv4hi_internal): Add alternative for easy vector constant loads.
* config/rs6000/spe.md (movv4hi_internal): Add alternative for
	easy vector constant loads.

From-SVN: r118965
2006-11-18 00:27:44 +00:00