Commit Graph

75790 Commits

Author SHA1 Message Date
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
Paolo Carlini
21ded7c71e string_copy_cons_and_dest.cc: New.
2006-07-13  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/21_strings/string_copy_cons_and_dest.cc: New.

From-SVN: r115425
2006-07-13 23:41:06 +00:00
Janis Johnson
263108e10f sourcebuild.texi (Test Directives): Document dg-shouldfail.
gcc:

	* doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.

gcc/testsuite:

	* lib/gcc-dg.exp (tool_load): Wrapper to support shouldfail tests.
	(dg-test): Support shouldfail tests.
	* lib/target-supports-dg.exp (dg-shouldfail): New.
	* gcc.test-framework/test-framework.awk: Handle shouldfail tests.
	* gcc.test-framework/dg-do-run-sf-exp-F.c: New test.
	* gcc.test-framework/dg-do-run-sf-exp-P.c: New test.
	* gcc.test-framework/dg-do-run-sft-exp-F.c: New test.
	* gcc.test-framework/dg-do-run-sft-exp-P.c: New test.
	* gcc.test-framework/dg-dox-run-sf-exp-XF.c: New test.
	* gcc.test-framework/dg-dox-run-sf-exp-XP.c: New test.

From-SVN: r115424
2006-07-13 22:58:07 +00:00
Bryce McKinlay
43e6b77cbb interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.
2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>

	* interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.
	(_Jv_InterpMethod::run): SAVE_PC before executing any instruction 
	using resolve_pool_entry, as it can throw. Likewise for div/rem ops
	that can throw ArithmeticException.

From-SVN: r115422
2006-07-13 22:13:12 +01:00
Jan Hubicka
88d03811f8 cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call align_variable.
* cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call align_variable.
	* output.h (align_variable): Declare.
	* varasm.c (align_variable): Export.
	* value-prof.c (tree_value_profile_transformations): Recompute iterator
	when basic block changed.

From-SVN: r115421
2006-07-13 20:49:34 +00:00
Benjamin Kosnik
56dbe89df5 Makefile.am (pch*_output_anchor): Add.
2006-07-13  Benjamin Kosnik  <bkoz@redhat.com>

	* include/Makefile.am (pch*_output_anchor): Add.
	(pch*_output): Use.
	(CLEANFILES): Use.
	* include/Makefile.in: Regenerate.
	
	* scripts/check_performance: Be verbose on compile error.

From-SVN: r115419
2006-07-13 19:21:51 +00:00
Bryce McKinlay
0ed431d484 builtins.c (check_for_builtin): If a builtin could result in a direct call being generated...
2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>

	* builtins.c (check_for_builtin): If a builtin could result in a
	direct call being generated, don't use it if flag_indirect_dispatch
	is set.

From-SVN: r115414
2006-07-13 15:19:04 +01:00
Ben Elliston
18c3f977d0 * MAINTAINERS (Various Maintainers): Add myself as dfp maintainer.
From-SVN: r115413
2006-07-13 22:29:12 +10:00
Nick Clifton
6915d7f002 sh.c (sh_reorg): Ignore deleted insns whilst walking the LOG_LINKS chain.
* config/sh/sh.c (sh_reorg): Ignore deleted insns whilst walking the 
  LOG_LINKS chain.

From-SVN: r115412
2006-07-13 07:55:25 +00:00
Geoffrey Keating
7c0de6a544 Index: ChangeLog
2006-07-12  Geoffrey Keating  <geoffk@apple.com>

	* doc/invoke.texi (C++ Dialect Options): Explain difference
	between -fvisibility-inlines-hidden and setting hidden
	visibility explicitly.

Index: cp/ChangeLog
2006-07-12  Geoffrey Keating  <geoffk@apple.com>

	* decl2.c (determine_visibility): Don't change visibility of
	function locals because of -fvisibility-inlines-hidden.

Index: testsuite/ChangeLog
2006-07-12  Geoffrey Keating  <geoffk@apple.com>

	* g++.dg/ext/visibility/fvisibility-inlines-hidden-2.C: New.

From-SVN: r115411
2006-07-13 06:16:59 +00:00
Paul Thomas
72af9f0b51 re PR fortran/28174 (Corruption of multiple character arrays when passing array sections)
2006-07-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28174
	* trans-expr.c (gfc_conv_aliased_arg): Missing formal arg means
	that intent is INOUT (fixes regression).

	PR fortran/25097
	* check.c (check_present): The only permitted reference is a
	full array reference.

	PR fortran/20903
	* decl.c (variable_decl): Add error if a derived type is not
	from the current namespace if the namespace is an interface
	body.

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

	PR fortran/25097
	* gfortran.dg/present_1.f90: New test.

	PR fortran/20903
	* gfortran.dg/interface_derived_type_1.f90: New test.

From-SVN: r115410
2006-07-13 05:07:35 +00:00
Eric Christopher
3fb8727b3b t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2006-07-12  Eric Christopher  <echristo@apple.com>

	* config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
	(stmp-lipo): Depend on libgcc.a.

From-SVN: r115409
2006-07-13 02:42:49 +00:00
GCC Administrator
b9c828c710 Daily bump.
From-SVN: r115406
2006-07-13 00:17:20 +00:00
Benjamin Kosnik
04dc169115 Makefile.am: Revert last change.
2006-07-12  Benjamin Kosnik  <bkoz@redhat.com>

	* include/Makefile.am: Revert last change.
	* include/Makefile.in: Same.

From-SVN: r115402
2006-07-13 00:14:06 +00:00
Kazu Hirata
5f89204ee8 * tree.c: Fix a comment typo.
From-SVN: r115401
2006-07-12 22:43:27 +00:00