Commit Graph

75904 Commits

Author SHA1 Message Date
Toon Moene dc5abe7709 invoke.texi: Remove mention of f77...
2006-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>

	* invoke.texi: Remove mention of f77; Reformat table for
	inline parameter options correctly; mention that -malign-double
	is default on x86-64 targets.

From-SVN: r115529
2006-07-17 18:05:39 +00:00
Zdenek Dvorak 64a7ab5f16 tree-chrec.c (avoid_arithmetics_in_type_p): New.
* tree-chrec.c (avoid_arithmetics_in_type_p): New.
	(convert_affine_scev, chrec_convert_aggressive): Use
	avoid_arithmetics_in_type_p.  Do not check for the subtypes
	separately.

From-SVN: r115528
2006-07-17 17:09:39 +00:00
Jakub Jelinek 9fbe658520 Makefile.def: Add dependencies for configure-opcodes on configure-intl and all-opcodes on...
* Makefile.def: Add dependencies for configure-opcodes
	on configure-intl and all-opcodes on all-intl.
	* Makefile.in: Regenerated.

From-SVN: r115527
2006-07-17 19:06:27 +02:00
Steve Ellcey 512380a199 re PR c++/28291 (ICE on invalid designated initializer)
PR c++/28291
	* g++.dg/ext/pr28291.C: New test.

From-SVN: r115526
2006-07-17 15:33:14 +00:00
Richard Sandiford 2763a67eff re PR middle-end/28403 (Missed argument pop after doubleword shift)
gcc/
	PR middle-end/28403
	* optabs.c (expand_doubleword_shift): Wrap the call to
	do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.

gcc/testsuite/
	PR middle-end/28403
	* gcc.c-torture/execute/pr28403.c: New test.

From-SVN: r115525
2006-07-17 15:31:12 +00:00
Richard Sandiford f8bdb931a9 re PR middle-end/28402 (Doubleword shifts implemented using word_mode libcalls)
gcc/
	PR middle-end/28402
	* optabs.c (expand_binop): Pass next_methods rather than methods
	to expand_doubleword_shift.

gcc/testsuite/
	PR middle-end/28402
	* gcc.dg/pr28402.c: New test.

From-SVN: r115524
2006-07-17 15:29:19 +00:00
Steve Ellcey 77bffd4cee re PR c++/28291 (ICE on invalid designated initializer)
PR c++/28291
	* decl.c (reshape_init_class): Return error_mark_node on error.

From-SVN: r115523
2006-07-17 15:28:17 +00:00
Steve Ellcey 81a5e9526b re PR c++/28304 (ICE looking up invalid member template)
PR c++/28304
	* g++.dg/other/pr28304.C: New test.

From-SVN: r115522
2006-07-17 15:23:37 +00:00
Steve Ellcey f566cc1b14 re PR c++/28304 (ICE looking up invalid member template)
PR c++/28304
	* decl2.c (check_classfn): Return NULL_TREE on error.

From-SVN: r115521
2006-07-17 15:21:42 +00:00
Carlos O'Donell 1c1534e9e3 ChangeLog: Correct formatting for 2006-07-10 changes, by Carlos O'Donell.
gcc/

2006-07-17  Carlos O'Donell  <carlos@codesourcery.com>

	* ChangeLog: Correct formatting for 2006-07-10 changes,
	by Carlos O'Donell.

From-SVN: r115520
2006-07-17 15:20:43 +00:00
J"orn Rennecke 24a7799ea4 re PR other/28251 (dumped addresses makes diffing dumps unusable)
gcc:
	PR other/28251
	* tree.h (dump_addr): Declare.
	* print-tree.c (dump_addr): New function.
	(print_node_brief, print_node): Use it.
	* print-rtl.c (print_rtx): Likewise.
	* common.opt (-fdump-noaddr): New option.
	* doc/invoke.texi (-fdump-noaddr): Document.
	* loop-unroll.c (si_info_hash): Make hash independent of addresses.
	(ve_info_hash): Likewise.
gcc/testsuite:
	PR other/28251
	gcc.c-torture/unsorted/dump-noaddr.c: New test.
	gcc.c-torture/unsorted/dump-noaddr.x: New driver.

From-SVN: r115519
2006-07-17 15:44:48 +01:00
Andrew Haley 9d335249c9 re PR tree-optimization/19505 (java bytecode to native ICE in remove_unreachable_regions)
2006-07-13  Andrew Haley  <aph@redhat.com>

        PR tree-optimization/19505
        * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
        edge leaving this block, make sure that the destination of this
        block has only one predecessor.

From-SVN: r115518
2006-07-17 13:14:38 +00:00
Richard Guenther 2b65dae54e re PR tree-optimization/28238 (verify_stmts failed (invalid operand to unary operator))
2006-07-17  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/28238
	* tree-inline.c (copy_bb): Check if we produced valid
	gimple copying and substituting a stmt.  If not, gimplify
	it.

	* g++.dg/tree-ssa/pr28238.C: New testcase.

From-SVN: r115517
2006-07-17 08:04:25 +00:00
Volker Reichelt 2a50edcd0f re PR c++/28250 (ICE with invalid catch)
PR c++/28250
	* name-lookup.c (pushdecl_maybe_friend): Return early on
	error_mark_node.
	* except.c (expand_start_catch_block): Use error_mark_node instead
	of NULL_TREE for invalid decls.
	* parser.c (cp_parser_exception_declaration): Return error_mark_node
	on invalid catch parameter. Simplify.

	* g++.dg/eh/catch1.C: New test.
	* g++.dg/eh/catch2.C: New test.

From-SVN: r115516
2006-07-17 04:42:24 +00:00
GCC Administrator 23be7a6691 Daily bump.
From-SVN: r115509
2006-07-17 00:17:24 +00:00
Jakub Jelinek 742fae059b re PR fortran/28390 (Broken !$omp parallel do lastprivate(iterationvar))
PR fortran/28390
	* trans-openmp.c (gfc_trans_omp_do): Look for LASTPRIVATE in
	code->exp.omp_clauses rather than in the 3rd function argument.

	* testsuite/libgomp.fortran/pr28390.f: New test.

From-SVN: r115504
2006-07-16 22:19:27 +02:00
Jakub Jelinek 42ccbf3d11 re PR c++/28370 (undefined reference to template class static variable in an anonymous namespace)
PR c++/28370
	* decl2.c (note_vague_linkage_var): Removed.
	(finish_static_data_member_decl): Add decl to pending_statics vector
	directly.  Do it even for non-public decls.

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

From-SVN: r115503
2006-07-16 22:17:20 +02:00
Paolo Carlini 22d67c60fa PR libstdc++/28277 (partial: valarray bits)
2006-07-16  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/28277 (partial: valarray bits)
	* include/std/std_valarray.h (valarray<>::shift(int),
	valarray<>::cshift(int)): Avoid __builtin_alloca with no limit,
	do the work in place.
	* testsuite/26_numerics/valarray/28277.cc: New.

From-SVN: r115501
2006-07-16 15:38:59 +00:00
Andrew Pinski d9f392cf04 Fix fomating on Carlos's last changelog entry
and fix the email address too.

From-SVN: r115500
2006-07-16 08:17:22 -07:00
Paul Thomas b8ea6dbcbd re PR fortran/28384 (ICE on non-existent COMMON block)
2006-07-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28384
	* trans-common.c (translate_common): If common_segment is NULL
	emit error that common block does not exist.

	PR fortran/20844
	* io.c (check_io_constraints): It is an error if an ADVANCE
	specifier appears without an explicit format.

	PR fortran/28201
	* resolve.c (resolve_generic_s): For a use_associated function,
	do not search for an alternative symbol in the parent name
	space.

	PR fortran/20893
	* resolve.c (resolve_elemental_actual): New function t combine
	all the checks of elemental procedure actual arguments. In
	addition, check of array valued optional args(this PR) has
	been added.
	(resolve_function, resolve_call): Remove parts that treated
	elemental procedure actual arguments and call the above.

2006-07-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/20844
	* gfortran.dg/io_constaints_2.f90: Add the test for ADVANCE
	specifiers requiring an explicit format tag..

	PR fortran/28201
	* gfortran.dg/generic_5: New test.

	PR fortran/20893
	* gfortran.dg/elemental_optional_args_1.f90: New test.

From-SVN: r115499
2006-07-16 15:01:59 +00:00
Eric Botcazou 3e27aa84ef optabs.c (maybe_encapsulate_block): New function extracted from...
* optabs.c (maybe_encapsulate_block): New function extracted from...
	(emit_libcall_block): ...here.  Invoke it on the block of insns to
	maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
	(emit_no_conflict_block): Likewise.

From-SVN: r115498
2006-07-16 14:31:05 +00:00
Eric Botcazou c5ee132b44 Fix latest entry.
From-SVN: r115493
2006-07-16 05:59:54 +00:00
Eric Botcazou bb2ffd7fc9 invoke.texi (sparc-sun-solaris2*): Add GMP version number.
* doc/invoke.texi (sparc-sun-solaris2*): Add GMP version number.

From-SVN: r115492
2006-07-16 05:57:11 +00:00
GCC Administrator a3bf161fb5 Daily bump.
From-SVN: r115490
2006-07-16 00:18:35 +00:00
Paolo Carlini 6f0cb13801 PR libstdc++/28277 (partial: ostream bits 1)
2006-07-15  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/28277 (partial: ostream bits 1)
	* include/bits/ostream.tcc (operator<<(basic_ostream<_CharT>&,
	const char*)): Avoid __builtin_alloca with no limit in the
	widening.
	* testsuite/27_io/basic_ostream/inserters_character/wchar_t/
	28277-1.cc: New.

From-SVN: r115485
2006-07-15 20:30:50 +00:00
Roger Sayle b0d5d5de78 tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into a new NOP_EXPR case of the switch statement.
* tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
	a new NOP_EXPR case of the switch statement.

From-SVN: r115480
2006-07-15 17:19:18 +00:00
Mike Stump 9c93098153 revert: re PR c/28280 (bogus "statement with no effect" warning with VLA and typeof)
Revert:
        PR c/28280
        * c-parser.c (c_parser_typeof_specifier): Don't use
        c_finish_expr_stmt, open code desired semantics instead.

From-SVN: r115479
2006-07-15 17:03:44 +00:00
Steven G. Kargl 8daa14ad2a etime.c: Remove etime_
2006-07-15  Steven G. Kargl  <kargls@comcast.net>

    * intrinsics/etime.c: Remove etime_
    * libtool-version: Bump from libgfortran.so.1 to libgfortran.so.2

From-SVN: r115478
2006-07-15 16:12:15 +00:00
Lee Millward 31b29c620e re PR c++/28269 (ICE on attribute for invalid template)
PR c++/28269
	* parser.c (cp_parser_elaborated_type_specifier):
	Return early if an invalid type was detected.

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

From-SVN: r115475
2006-07-15 15:00:28 +00:00
Lee Millward 662c2e83b1 re PR c++/28292 (ICE in acceptable_java_type)
PR c++/28292
	* decl2.c (acceptable_java_type): Robustify. Use
	proper Boolean return type instead of return 1.
	(check_java_method): Don't issue error about
	type not being an acceptable Java parameter if 
	it's error_mark_node.

	* g++.dg/other/error12.C: New test.

From-SVN: r115474
2006-07-15 14:44:48 +00:00
Volker Reichelt e3beea684a Fix typo in last ChangeLog entry.
From-SVN: r115472
2006-07-15 10:00:53 +00:00
Volker Reichelt 856367df08 re PR c++/28249 ("long long long" accepted by catch)
PR c++/28249
	* parser.c (cp_parser_check_decl_spec): New function.
	(cp_parser_decl_specifier_seq): Factor out check for repeated
	decl-specifiers into cp_parser_check_decl_spec. Use it.
	(cp_parser_type_specifier_seq) Use it.

	* g++.dg/parse/catch1.C: New test.

From-SVN: r115469
2006-07-15 09:44:36 +00:00
Volker Reichelt 0a9367cbdb re PR c++/28294 (ICE with invalid use of __builtin_offsetof)
PR c++/28294
	* semantics.c (finish_offsetof): Use TREE_OPERAND for COMPONENT_REFs
	only.

	* g++.dg/ext/offsetof1.C: Add test with function pointer arithmetic.

From-SVN: r115466
2006-07-15 09:29:32 +00:00
Volker Reichelt 6ae9b8759e re PR c++/28387 (ICE with attribute on invalid declaration)
PR c++/28387
	* decl2.c (cplus_decl_attributes): Check for invalid decls.

	* g++.dg/ext/attrib24.C: New test.

From-SVN: r115465
2006-07-15 09:22:17 +00:00
Kaz Kojima 72aeff7c56 re PR middle-end/28160 (Bogus "size of array 'foo' is too large" error with -mms-bitfields)
PR middle-end/28160
	* stor-layout.c (place_field): Take the bit field with
	an excessive size into account in the ms-bitfiled case.

	PR middle-end/28161
	* stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
	the previous bit field.

From-SVN: r115464
2006-07-15 06:58:57 +00:00
Steven G. Kargl 5cd8e1235a trans-expr.c (gfc_trans_string_copy): Evaluate the string lengths
2006-07-14  Steven G. Kargl  <kargls@comcast.net>

	* trans-expr.c (gfc_trans_string_copy): Evaluate the string lengths

From-SVN: r115463
2006-07-15 05:11:38 +00:00
GCC Administrator 1321e7aec6 Daily bump.
From-SVN: r115460
2006-07-15 00:17:59 +00:00
Benjamin Kosnik 701a3eeeef acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): New.
2006-07-14  Benjamin Kosnik  <bkoz@redhat.com>

        * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): New.
        * configure.ac: Use it.
        * configure: Regenerated.	
        * config.h.in: Regenerated.		
        * configure.host: Simplify.
        * include/bits/atomicity.h: Adjust macros.	
        * config/cpu/generic/atomicity.h: Move...
        * config/cpu/generic/atomicity_mutex: New.
        * config/cpu/generic/atomicity_mutex/atomicity.h: ...here.
        * config/cpu/generic/atomic_builtins: Rename...
        * config/cpu/generic/atomicity_builtins: ...to this.
        * config/cpu/generic/atomicity_builtins/atomicity.h: Moved.
	* config/cpu/mips/atomicity.h: Comment MIPS II requirement.

	* scripts/testsuite_flags.in: Make --cxxflags reflect CXXFLAGS.

From-SVN: r115456
2006-07-14 22:41:43 +00:00
Anthony Green 8fce9db014 natFilePosix.cc (performSetLastModified): Return true on success, false otherwise.
2006-07-14  Anthony Green  <green@redhat.com>

	* java/io/natFilePosix.cc (performSetLastModified): Return true on
	success, false otherwise.

From-SVN: r115452
2006-07-14 18:16:39 +00:00
Eliot Dresselhaus 27714d4372 re PR target/27287 (returning constant double)
2006-07-14  Eliot Dresselhaus  <eliot@sonic.net>

        PR target/27287
        * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.

From-SVN: r115451
2006-07-14 13:44:27 -04:00
Paolo Carlini 8d6bd4a791 random (minstd_rand0, [...]): Use unsigned long as implementation-defined type.
2006-07-14  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/random (minstd_rand0, minstd_rand, ranlux3, ranlux4):
	Use unsigned long as implementation-defined type.

From-SVN: r115450
2006-07-14 17:21:03 +00:00
Ranjit Mathew 38b19a9247 stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use _Unwind_Backtrace().
* stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use
	_Unwind_Backtrace().
	(_Jv_StackTrace::GetCallerInfo): Enable even for targets using SJLJ
	EH.
	(_Jv_StackTrace::GetClassContext): Unconditionally use
	_Unwind_Backtrace().
	(_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
	* sysdep/i386/backtrace.h (HAVE_FALLBACK_BACKTRACE): Do not define.
	(_Unwind_GetIPInfo): Define macro if SJLJ EH is in use.
	(_Unwind_GetRegionStart): Likewise.
	(_Unwind_Backtrace): Likewise.
	(fallback_backtrace): Accept additional unwind trace function
	argument.  Call it during unwinding.  Stop when any of _Jv_RunMain(),
	_Jv_ThreadStart() or main() is seen during unwinding.
	* sysdep/generic/backtrace.h (fallback_backtrace): Accept an
	additional unwind trace function argument.

From-SVN: r115449
2006-07-14 17:14:55 +00:00
Ulrich Weigand 47a4949a8e linux-unwind.h (s390_fallback_frame_state): Detect signal frames correctly even when the signal was installed with...
* config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
	signal frames correctly even when the signal was installed with
	sa_restorer set.

From-SVN: r115448
2006-07-14 16:43:27 +00:00
Carlos O'Donell 03471b3fcd dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
gcc/

2006-07-14  Carlos O'Donell  <carlos@codesoucery.com>


	* dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
	(dbxout_function_end): Use local label LFBB. Remove hook DBX_OUTPUT_NFUN.
	(dbxout_source_line): Use local label LFBB.
	(dbxout_block): Likewise.
	(dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
	(dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
	* config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
	and DBX_OUTPUT_NFUN.

From-SVN: r115444
2006-07-14 15:54:23 +00:00
Gary Benson 1470f196e4 File.java (internalExists): New method.
2006-07-14  Gary Benson  <gbenson@redhat.com>

	* java/io/File.java (internalExists): New method.
	(exists): Use internalExists.
	(internalIsDirectory): New method.
	(isDirectory): Use internalIsDirectory.
	(createTempFile): Use internalExists and internalIsDirectory.

From-SVN: r115441
2006-07-14 14:37:46 +00:00
Paolo Carlini 8c2e5f361c random.tcc (struct _To_Unsigned_Type): Add.
2006-07-14  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/random.tcc (struct _To_Unsigned_Type): Add.
	(subtract_with_carry<>::seed(_Gen&, false_type)): Use an
	unsigned type in the loop, fix factor multiplier, take g
	invocations modulo 2^32.

	* include/tr1/random.tcc (subtract_with_carry<>::
	seed(unsigned long)): Fix value == 0 special case.

	* include/tr1/random (struct _Shift): Fix for large shifts.

From-SVN: r115439
2006-07-14 12:55:15 +00:00
Volker Reichelt 4f543d151e re PR c++/28343 (ICE with invalid asm specifier for struct member)
PR c++/28343
	* decl.c (cp_finish_decl): Check asmspec_tree for error_mark_node.
	* decl2.c (grokfield): Likewise.

	* g++.dg/ext/asmspec1.C: New test.

From-SVN: r115436
2006-07-14 09:43:23 +00:00
Bryce McKinlay a7929aa4bd gcj.texi (Invocation): Corrections for Invocation API example.
2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>

        * gcj.texi (Invocation): Corrections for Invocation API example.

From-SVN: r115432
2006-07-14 04:54:43 +01:00
Bryce McKinlay b369a1989c interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.
2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>

	* interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.

From-SVN: r115431
2006-07-14 01:52:18 +01:00
GCC Administrator 11761b31da Daily bump.
From-SVN: r115429
2006-07-14 00:17:37 +00:00