Commit Graph

106023 Commits

Author SHA1 Message Date
Paolo Carlini 4192922c74 re PR libstdc++/47185 (UB in TR1 and C++0x placeholders and non conforming implementation)
2011-01-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/47185
	* src/placeholders.cc: New.
	* src/Makefile.am: Adjust.
	* src/Makefile.in: Regenerate.
	* include/std/functional (placeholders::_1, _2, ..., _29): Declare
	extern.
	* config/abi/pre/gnu.ver: Export.

From-SVN: r168536
2011-01-06 10:14:37 +00:00
Ira Rosen 210dedfec3 re PR tree-optimization/47139 (ice in process_use, at tree-vect-stmts.c:290)
PR tree-optimization/47139
        * tree-vect-loop.c (vect_is_simple_reduction_1): Check that 
        only the last reduction value is used outside the loop. Update
        documentation.

From-SVN: r168535
2011-01-06 07:34:24 +00:00
Ian Lance Taylor 2e4bc20e51 Fix order in which recursive structs are converted to GENERIC.
From-SVN: r168534
2011-01-06 01:35:19 +00:00
GCC Administrator d3ee4aaae7 Daily bump.
From-SVN: r168533
2011-01-06 00:19:36 +00:00
Joseph Myers cd33a4123e rtems.opt: New.
* config/rtems.opt: New.
	* config.gcc (*-*-rtems*): Use rtems.opt.

From-SVN: r168529
2011-01-06 00:07:32 +00:00
François Dumont 8c9f4dfa9a safe_base.h (_Safe_iterator_base::_M_unlink): New.
2011-01-05  François Dumont  <francois.cppdevs@free.fr>

        * include/debug/safe_base.h (_Safe_iterator_base::_M_unlink): New.
        * include/src/debug.cc: Use latter
        * include/debug/forward_list (forward_list<>::_M_swap):  Fix to
        correctly handle before_begin iterators.
        * testsuite/23_containers/forward_list/debug/swap.cc: Remove now 
        useless _GLIBCXX_DEBUG checks.

From-SVN: r168528
2011-01-05 20:52:36 +00:00
Changpeng Fang 819edd9496 Remove 3DNow instructions from the bdver1-supported instruction sets
* config/i386/i386.c (ix86_option_override_internal): Bulldozer
	processors do not support 3DNow instructions.

From-SVN: r168527
2011-01-05 19:55:13 +00:00
Janus Weil a29f38ce07 re PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers)
2011-01-05  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47180
	* trans-expr.c (gfc_trans_class_assign): Bugfix for r168524 (make sure
	'vtab' is initialized).

From-SVN: r168526
2011-01-05 20:14:56 +01:00
Ulrich Weigand dc242c4a72 spu.c (spu_option_override): Set parameter PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
* config/spu/spu.c (spu_option_override): Set parameter
	PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.

From-SVN: r168525
2011-01-05 18:44:54 +00:00
Janus Weil 01738cee0f re PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers)
2011-01-05  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47180
	* trans-expr.c (gfc_trans_class_assign): For a polymorphic NULL pointer
	assignment, set the _vptr component to the declared type.


2011-01-05  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47180
	* gfortran.dg/extends_type_of_2.f03: New.

From-SVN: r168524
2011-01-05 19:06:21 +01:00
Jan Hubicka be2862278a lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified at the command line.
* lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
	at the command line.

From-SVN: r168520
2011-01-05 16:07:09 +00:00
Martin Jambor 644e637fca re PR lto/47162 (LTO is broken)
Fix PR lto/47162.

2011-01-05  Martin Jambor  <mjambor@suse.cz>

	PR lto/47162
	* lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
	deltas on streamed outgoing edges.
	(output_node_opt_summary): Output info for outgoing edges only when
	the node is in new parameter set.
	(output_cgraph_opt_summary): New parameter set, passed to the two
	aforementioned functions.  Update its forward declaration and its
	callee too.

From-SVN: r168515
2011-01-05 06:55:27 -08:00
Tom Tromey 7bd1115736 c-parser.c (c_parser_omp_atomic): Pass location of assignment operator to c_finish_omp_atomic.
gcc
	* c-parser.c (c_parser_omp_atomic): Pass location of assignment
	operator to c_finish_omp_atomic.
	* c-typeck.c (lvalue_or_else): Add 'loc' argument.
	(build_unary_op): Update.
	(build_modify_expr): Update.
	(build_asm_expr): Update.
gcc/cp
	* typeck.c (cp_build_addr_expr_1): Update call to lvalue_error.
	(lvalue_or_else): Likewise.
gcc/c-family
	* c-common.h (lvalue_error): Update.
	* c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
	not error.

From-SVN: r168514
2011-01-05 14:51:20 +00:00
Ian Lance Taylor cd656e2360 re PR go/47176 (libgo doesn't compile if libunicode is installed)
PR go/47176
byte/libbytes.a depends on unicode.gox.

From-SVN: r168512
2011-01-05 14:12:37 +00:00
Ulrich Weigand f626b979b1 spu.c (emit_nop_for_insn): Set INSN_LOCATOR for newly inserted insns.
* config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
	newly inserted insns.
	(pad_bb): Likewise.
	(spu_emit_branch_hint): Likewise.
	(insert_hbrp_for_ilb_runout): Likewise.
	(spu_machine_dependent_reorg): Call df_finish_pass after
	schedule_insns returns.

From-SVN: r168510
2011-01-05 13:28:20 +00:00
Ulrich Weigand 4c825c0240 spu.c (spu_expand_prologue): Support -fstack-usage.
ChangeLog:

	* config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.

testsuite/ChangeLog:

	* gcc.dg/stack-usage-1.c (SIZE): Provide proper value for __SPU__.

From-SVN: r168509
2011-01-05 13:25:36 +00:00
Eric Botcazou 5e9fba51b5 re PR tree-optimization/47005 (ACATS c62002a is miscompiled at -O2)
PR tree-optimization/47005
	* tree-sra.c (struct access): Add 'non_addressable' bit.
	(create_access): Set it for a DECL_NONADDRESSABLE_P field.
	(decide_one_param_reduction): Return 0 if the parameter is passed by
	reference and one of the accesses in the group is non_addressable.

From-SVN: r168508
2011-01-05 11:23:40 +00:00
Thomas Koenig 75fee9f255 re PR fortran/46017 (Reject ALLOCATE(a, a%b) as "a%b" depends on the allocation status of "a")
2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/46017
	* resolve.c (resolve_allocate_deallocate): Follow references to
	check for duplicate occurence of allocation/deallocation objects.

2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/46017
	* gfortran.dg/allocate_error_2.f90:  New test.

From-SVN: r168506
2011-01-05 10:03:15 +00:00
Janus Weil 8c077737e2 re PR fortran/47024 ([OOP] STORAGE_SIZE (for polymorphic types): Segfault at run time)
2011-01-05  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47024
	* trans-decl.c (gfc_trans_deferred_vars): Initialize the _vpr component
	of polymorphic allocatables according to their declared type.


2011-01-05  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47024
	* gfortran.dg/storage_size_3.f08: New.

From-SVN: r168505
2011-01-05 10:05:44 +01:00
Ian Lance Taylor 6452b11201 re PR go/47158 ([cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc)
PR go/47158
	PR go/47159
	PR go/47160
	PR go/47161
Fix space leaks.
Patch from Ettl Martin.

From-SVN: r168504
2011-01-05 05:33:32 +00:00
Jerry DeLisle 183440ee5b re PR libfortran/47154 (END= does not work in namelist read)
2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47154
	* gfortran.dg/namelist_68.f90: New test.

From-SVN: r168503
2011-01-05 04:18:39 +00:00
Jerry DeLisle 43e0224a58 re PR libfortran/47154 (END= does not work in namelist read)
2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47154
	* io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
	duplicate calls via next_record.

From-SVN: r168502
2011-01-05 03:53:15 +00:00
Joseph Myers 535e081a5a * de.po: Update.
From-SVN: r168501
2011-01-05 01:24:51 +00:00
Ian Lance Taylor 9a00604e53 re PR go/46959 (M68K Not Supported by Go)
PR go/46959
	PR go/46960
	PR go/46961
	PR go/46962
	PR go/46963
	PR go/46964
Use __builtin_unwind_init rather than the SAVE_REGS hack.

From-SVN: r168500
2011-01-05 00:24:15 +00:00
GCC Administrator adb7f9c365 Daily bump.
From-SVN: r168499
2011-01-05 00:18:25 +00:00
Ian Lance Taylor a3bc69c529 re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))
PR go/46958
	PR go/46965
Call __builtin_return_address with 0 rather than 1.

From-SVN: r168495
2011-01-05 00:07:59 +00:00
Ian Lance Taylor 5667638c69 Check for identical package name and prefix in imported package.
From-SVN: r168494
2011-01-04 23:29:49 +00:00
Eric Botcazou 3ebb5ca6cc re PR tree-optimization/47056 (10 Ada ACATS tests fail to link with undefined reference on ia64-linux)
PR tree-optimization/47056
	* cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
	(mark_load): Likewise.  Handle FUNCTION_DECL specially.
	(mark_store): Likewise.  Pass STMT to ipa_record_reference.

From-SVN: r168493
2011-01-04 23:22:31 +00:00
Eric Botcazou c5a62c6fde re PR preprocessor/39213 (Preprocessor ICE with -m64 and --traditional-cpp)
PR preprocessor/39213
	* directives.c (end_directive): Call _cpp_remove_overlay for deferred
	pragmas as well in traditional mode.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r168490
2011-01-04 23:18:12 +00:00
Ian Lance Taylor c7f15f802a Don't crash if append arguments are erroneous.
From-SVN: r168489
2011-01-04 22:54:05 +00:00
Eric Botcazou d5d4d14e15 dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the initializer.
* dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
	initializer.  Skip view conversions from aggregate types.

From-SVN: r168488
2011-01-04 22:44:04 +00:00
Ian Lance Taylor 5e208e74b3 Don't crash when adding function calls that return multiple results.
From-SVN: r168487
2011-01-04 22:37:26 +00:00
Ian Lance Taylor bdc4349d7e Don't look outside of function literal for break or continue label.
From-SVN: r168486
2011-01-04 22:18:20 +00:00
Ian Lance Taylor 82701bd204 Don't create erroneous COND_EXPR.
From-SVN: r168485
2011-01-04 22:15:46 +00:00
Ian Lance Taylor eb83e2d7f0 Don't crash if tuple init redefines non-variable.
From-SVN: r168484
2011-01-04 21:15:26 +00:00
Ian Lance Taylor 1ed36e906f Don't crash if named constant has no type when converting to GENERIC.
From-SVN: r168483
2011-01-04 20:18:31 +00:00
Ian Lance Taylor 10d53f5d11 Don't crash initializing multiple vars from a single result function.
From-SVN: r168482
2011-01-04 19:46:23 +00:00
Ian Lance Taylor 79b4a34ad0 Check for multiple default cases in switch or select.
From-SVN: r168481
2011-01-04 19:34:32 +00:00
Ian Lance Taylor f36067eb52 Fix handling of abstract types in temporary statements.
From-SVN: r168480
2011-01-04 19:02:47 +00:00
Kai Tietz 37cae45e16 Ups missed ...
From-SVN: r168479
2011-01-04 19:53:32 +01:00
Ian Lance Taylor ecad0c2519 Traverse expressions when looking for types.
From-SVN: r168478
2011-01-04 18:52:50 +00:00
Ian Lance Taylor 7516c36883 Don't crash if package import fails.
From-SVN: r168477
2011-01-04 18:24:05 +00:00
Ian Lance Taylor 1b7029893b Fix building recover thunks which return multiple values.
From-SVN: r168476
2011-01-04 18:16:17 +00:00
Kai Tietz d996ef705a re PR bootstrap/47055 ("make profiledbootstrap" fails on MSYS/mingw-w64)
2011-01-04  Kai Tietz  <kai.tietz@onevision.com>

        PR bootstrap/47055
        * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.

From-SVN: r168475
2011-01-04 19:05:06 +01:00
Kai Tietz 7f957ac94c re PR libstdc++/47145 (configure test for docbook-xsl-ns stylesheets uses hardcoded path)
2011-01-04  Kai Tietz  <kai.tietz@onevision.com>

        PR libstdc++/47145
        * configure.ac (AC_CHECK_FILE): Replaced by test -f.
        * configure: Regenerated.

Unbreaking cross-compiling ...

From-SVN: r168474
2011-01-04 18:59:39 +01:00
Ian Lance Taylor b6493d3890 Avoid crash when selecting on non-channel.
From-SVN: r168473
2011-01-04 17:42:21 +00:00
Philipp Thomas 017096ca1c Fix obvious typo.
From-SVN: r168471
2011-01-04 16:59:42 +00:00
Janus Weil 844ba45510 re PR fortran/46448 ([OOP] symbol `__copy_...' is already defined)
2011-01-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46448
	* class.c (gfc_find_derived_vtab): Set the module field for the copying
	routine to make sure it receives module name mangling.


2011-01-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46448
	* gfortran.dg/class_34.f90: New.

From-SVN: r168464
2011-01-04 13:59:23 +01:00
Ulrich Weigand 55c623b524 function.c (thread_prologue_and_epilogue_insns): Do not crash on empty epilogue sequences.
* function.c (thread_prologue_and_epilogue_insns): Do not crash
	on empty epilogue sequences.

From-SVN: r168463
2011-01-04 12:20:45 +00:00
Ulrich Weigand d28139df87 builtin-cproj-1.c: On the __SPU__ target, do not use __builtin_inff.
* gcc.dg/torture/builtin-cproj-1.c: On the __SPU__ target, do not
	use __builtin_inff.  Skip all single-precision tests that require
	Infinity.

From-SVN: r168462
2011-01-04 12:19:31 +00:00