Commit Graph

109838 Commits

Author SHA1 Message Date
GCC Administrator
33a549c9e6 Daily bump.
From-SVN: r175404
2011-06-26 00:18:16 +00:00
Iain Sandoe
0e9197f572 re PR driver/49371 (xgcc: error: unrecognized option '-pie' on *-apple-darwin*)
PR driver/49371
	* config/darwin.c (darwin_override_options): Improve warning when
	mdynamic-no-pic is given together with fPIC/fpic, also warn when it
	is given with fpie/fPIE.
	* config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
	* config/darwin9.h (PIE_SPEC): New.

From-SVN: r175397
2011-06-25 11:17:35 +00:00
Basile Starynkevitch
5346119947 timevar.c (timevar_print): Increase width for display of timevar name.
2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>

	* timevar.c (timevar_print): Increase width for display of timevar
	name.

From-SVN: r175396
2011-06-25 09:57:31 +00:00
GCC Administrator
75b2f81791 Daily bump.
From-SVN: r175394
2011-06-25 00:18:08 +00:00
Jakub Jelinek
f796c43880 re PR c++/46400 (g++ Segmentation Fault on heavily templated project.)
PR c++/46400
	* cp-tree.h (union lang_tree_node): Use TYPE_NEXT_VARIANT
	instead of TYPE_CHAIN for chain_next for types.

	* c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
	instead of TYPE_CHAIN for chain_next for types.

From-SVN: r175389
2011-06-24 23:11:16 +02:00
Richard Henderson
a7289eafc8 sparc: Fix -mflat unwind info.
The old definition left a 2 instruction hole in which
unwind info was out-of-date.

From-SVN: r175388
2011-06-24 12:53:21 -07:00
Easwaran Raman
c4b9a87e0d re PR rtl-optimization/49429 (dse.c change (r175063) causes execution failures)
2011-06-24  Easwaran Raman  <eraman@google.com>

      PR rtl-optimization/49429
      PR target/49454
      * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
      MEM_EXPR(y) addressable if emit_block_move_via_libcall is
      used to copy y into x.
      * calls.c (initialize_argument_information): Mark
      an argument addressable if it is passed by invisible reference.
      (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
      if it is passed by reference.

From-SVN: r175384
2011-06-24 17:10:18 +00:00
H.J. Lu
1f134bd6d6 Properly handle pointer addition/subtraction in num_sign_bit_copies1.
From-SVN: r175383
2011-06-24 08:26:33 -07:00
Joseph Myers
89f920259c * de.po: Update.
From-SVN: r175379
2011-06-24 15:23:21 +01:00
Ian Lance Taylor
76c5a766e9 Remove entry for gofrontend change which should not be here.
From-SVN: r175378
2011-06-24 14:09:18 +00:00
H.J. Lu
5ac6c59edd Properly handle pointer addition/subtraction.
2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>

	PR rtl-optimization/49504
	* rtlanal.c (nonzero_bits1): Properly handle addition or
	subtraction a pointer in Pmode if pointers extend unsigned.

From-SVN: r175377
2011-06-24 06:41:40 -07:00
Martin Jambor
b807e62730 re PR tree-optimization/49516 (SRA generates memory references into its replacements)
2011-06-24  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimizations/49516
	* tree-sra.c (sra_modify_assign): Choose the safe path for
	aggregate copies if we also did scalar replacements.

	* testsuite/g++.dg/tree-ssa/pr49516.C: New test.

From-SVN: r175376
2011-06-24 15:27:44 +02:00
Ramana Radhakrishnan
9a1ea4b907 re PR target/49335 (ARM: Invalid assembler generated while compiling C++ code from 'codeblocks')
Fix PR target/49335

2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	PR target/49335
	* config/arm/predicates.md (add_operator): New.
	* config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
	in Thumb2.

From-SVN: r175375
2011-06-24 13:15:08 +00:00
Diego Novillo
23d11384db * repro_fail: New.
From-SVN: r175374
2011-06-24 09:11:31 -04:00
Gabriel Charette
219441f2b8 name-lookup.h (cp_binding_level): Removed unused member names_size.
2011-06-23  Gabriel Charette  <gchare@google.com>

	* name-lookup.h (cp_binding_level): Removed unused
	member names_size. Update all users.

From-SVN: r175373
2011-06-24 09:06:10 -04:00
Georg-Johann Lay
fddb89240b * config/avr/avr.md (*extzv): Fix leading white space.
From-SVN: r175372
2011-06-24 12:48:39 +00:00
Andi Kleen
949cfd0a8d Improve dump files for SRA early candidate check v2
v2: Include message improvements from Eric Botcazou

gcc/:
2011-06-24  Andi Kleen  <ak@linux.intel.com>

	* tree-sra.c (type_internals_preclude_sra_p): Add msg
	parameter. Split up ifs and report reason in *msg.
	(reject): Add.
	(find_var_candiate): Add msg variable.
	Split up ifs and report reason to reject.
	(find_param_candidates): Add msg variable.
	Pass msg to type_internals_preclude_sra_p.

From-SVN: r175370
2011-06-24 07:45:37 +00:00
Jason Merrill
908e152c84 re PR c++/49418 (G++ discards cv-quals from template parameter types)
PR c++/49418
	* typeck2.c (build_functional_cast): Strip cv-quals for value init.
	* init.c (build_zero_init_1): Not here.

From-SVN: r175368
2011-06-23 22:18:42 -04:00
Jason Merrill
cb77790aaf re PR c++/35255 ([DR 115] gcc does not do partial ordering on overloaded address resolution)
PR c++/35255
	* pt.c (resolve_overloaded_unification): Fix DR 115 handling.

From-SVN: r175367
2011-06-23 22:13:41 -04:00
GCC Administrator
40a812f0d7 Daily bump.
From-SVN: r175362
2011-06-24 00:18:59 +00:00
Joseph Myers
b51dcb5909 * de.po: Update.
From-SVN: r175355
2011-06-23 23:30:21 +01:00
Jeff Law
b0c11403d6 re PR middle-end/48770 (wrong code with -O -fprofile-arcs -fPIC -fno-dce -fno-forward-propagate -fno-tree-forwprop)
PR middle-end/48770
	* reload.h (reload): Change to return a bool.
	* ira.c (ira): If requested by reload, run a fast DCE pass after
	reload has completed.  Fix comment typo.
	* reload1.c (need_dce): New file scoped static.
	(reload): Set reload_completed here.  Return whether or not a DCE
	pass after reload is needed.
	(delete_dead_insn): Set need_dce as needed.

	PR middle-end/48770
	* gcc.dg/pr48770.c: New test.

From-SVN: r175353
2011-06-23 15:30:20 -06:00
Jeff Law
49e9c66114 re PR middle-end/49465 (Revision 175114 miscompiled 403.gcc in SPEC CPU 2006)
PR middle-end/49465
	* tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
	to detect threading through joiner block.  If there was already
	an edge to the new target, then do not change the PHI nodes.

From-SVN: r175352
2011-06-23 15:26:04 -06:00
Jeff Law
ad3577dfea re PR middle-end/49465 (Revision 175114 miscompiled 403.gcc in SPEC CPU 2006)
PR middle-end/49465
	* tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
	to detect threading through joiner block.  If there was already
	an edge to the new target, then do not change the PHI nodes.

*************** fix_duplicate_block_edges (struct redire

From-SVN: r175351
2011-06-23 14:26:07 -06:00
Jan Hubicka
ddc41bb43f re PR middle-end/49373 (Many testcase failures)
PR middle-end/49373
	* g++.dg/torture/pr43879-1_1.C: Revert the xfail introduced yesterday.

From-SVN: r175350
2011-06-23 19:41:26 +00:00
Jakub Jelinek
7cf64710bd tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use get_pointer_alignment to see if base isn't sufficiently aligned.
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
	get_pointer_alignment to see if base isn't sufficiently aligned.

From-SVN: r175348
2011-06-23 20:52:58 +02:00
Jakub Jelinek
d890980a9a re PR testsuite/49512 (FAIL: gcc.dg/tree-ssa/asm-1.c)
PR testsuite/49512
	* gcc.dg/tree-ssa/asm-1.c: Use -fdump-tree-optimized-nouid
	instead of -fdump-tree-optimized.

From-SVN: r175347
2011-06-23 20:51:49 +02:00
Paolo Carlini
165d997d2a re PR c++/44625 (ICE after error: anonymous struct not inside named type)
/cp
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/44625
	* decl2.c (build_anon_union_vars): Early return error_mark_node
	for a nested anonymous struct.

/testsuite
2011-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/44625
	* g++.dg/template/crash107.C: New.
	* g++.dg/template/error17.C: Adjust.

From-SVN: r175344
2011-06-23 16:58:28 +00:00
Jason Merrill
767de87d05 re PR c++/49507 (ICE because of defaulted template destructor)
PR c++/49507
	* decl2.c (mark_used): Don't call synthesize_method for
	functions defaulted outside the class.

From-SVN: r175342
2011-06-23 12:53:03 -04:00
Jason Merrill
d72ce0c110 optimize.c (maybe_clone_body): Set linkage flags before cgraph_same_body_alias.
* optimize.c (maybe_clone_body): Set linkage flags before
	cgraph_same_body_alias.

From-SVN: r175341
2011-06-23 12:52:56 -04:00
Jason Merrill
012d5d2526 re PR c++/49440 (Invalid dynamic_cast for unnamed namespace)
PR c++/49440
	* class.c (set_linkage_according_to_type): Just check TREE_PUBLIC
	on the type's name.

From-SVN: r175340
2011-06-23 12:52:48 -04:00
Jason Merrill
ece620047b re PR c++/49395 (Non-class prvalues seem to have cv-qualification with GCC)
PR c++/49395
	* init.c (build_zero_init_1): Strip cv-quals from scalar types.

From-SVN: r175339
2011-06-23 12:52:41 -04:00
Jason Merrill
d708df29c8 re PR c++/36435 (Partial ordering of explicit specialization should include return type)
PR c++/36435
	* pt.c (most_specialized_instantiation): Do check return types.

From-SVN: r175338
2011-06-23 12:52:32 -04:00
Jan Hubicka
febb13025b re PR middle-end/49373 (Many testcase failures)
PR tree-optimize/49373
	* tree-pass.h (all_late_ipa_passes): Declare.
	* cgraphunit.c (init_lowered_empty_function): Fix properties.
	(cgraph_optimize): Execute late passes; remove unreachable funcions after
	materialization.
	* ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
	* passes.c (all_late_ipa_passes): Declare.
	(dump_passes, register_pass): Handle late ipa passes.
	(init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
	at beggining of all_passes.
	(apply_ipa_transforms): New function.
	(execute_one_pass): When doing simple ipa pass, apply all transforms.

From-SVN: r175336
2011-06-23 16:45:08 +00:00
Joseph Myers
4c77620d6d params.c: Include common/common-target.h.
* params.c: Include common/common-target.h.  Don't include tm.h.
	(lang_independent_params): Move from toplev.c.
	(global_init_params): New.
	* params.h (global_init_params): Declare.
	* target.def (default_params): Move to common-target.def.
	* toplev.c (lang_independent_options): Remove.
	(lang_independent_params): Move to params.c.
	(general_init): Use global_init_params.
	* common/common-target.def (option_default_params): Move from
	target.def.
	* common/config/ia64/ia64-common.c: Include params.h.
	(ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
	from ia64.c.
	* common/config/rs6000/rs6000-common.c: Include params.h.
	(rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
	from rs6000.c.
	* common/config/sh/sh-common.c: Include params.h.
	(sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
	from sh.c.
	* common/config/spu/spu-common.c: Include params.h.
	(spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
	from spu.c.
	* config/ia64/ia64.c (ia64_option_default_params,
	TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
	* config/rs6000/rs6000.c (rs6000_option_default_params,
	TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
	* config/sh/sh.c (sh_option_default_params,
	TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
	* config/spu/spu.c (spu_option_default_params,
	TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
	* Makefile.in (OBJS): Remove params.o.
	(OBJS-libcommon-target): Add params.o.
	(params.o, $(common_out_object_file)): Update dependencies.
	* doc/tm.texi: Regenerate.

From-SVN: r175330
2011-06-23 11:41:42 +01:00
Jonathan Wakely
6f20ac347a tie2.cc: Fix for C++0x mode.
2011-06-23  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc: Fix for
	C++0x mode.
	* testsuite/25_algorithms/sort/35588.cc: Likewise.
	* testsuite/26_numerics/headers/complex/synopsis.cc: Likewise.

From-SVN: r175329
2011-06-23 11:32:23 +01:00
Alan Modra
6aad1e387f re PR bootstrap/49383 (powerpc64-linux bootstrap failure due to ice in cgraph_only_called_directly_p)
PR bootstrap/49383
	* config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
	invocation for 2011-06-09 changes.

From-SVN: r175328
2011-06-23 11:51:01 +09:30
GCC Administrator
ba704178c0 Daily bump.
From-SVN: r175327
2011-06-23 00:18:34 +00:00
Jonathan Wakely
8eeaeeca20 socket.cc: Use variable and remove attribute.
2011-06-22  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/20_util/bind/socket.cc: Use variable and remove attribute.

From-SVN: r175322
2011-06-22 23:46:14 +01:00
Paolo Carlini
98656b3d14 pat_trie_base.hpp: Avoid -Wall warning.
2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall
	warning.

From-SVN: r175321
2011-06-22 22:28:56 +00:00
Paolo Carlini
879e1011e0 invoke.cc: Avoid -Wall warnings.
2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/20_util/reference_wrapper/invoke.cc: Avoid -Wall warnings.
	* testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
	* testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.
	* testsuite/20_util/allocator_traits/members/allocate_hint.cc:
	Likewise.
	* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
	* testsuite/20_util/bind/socket.cc: Likewise.
	* testsuite/20_util/pointer_traits/pointer_to.cc: Likewise.
	* testsuite/util/testsuite_random.h: Likewise.

From-SVN: r175318
2011-06-22 21:46:17 +00:00
Hans-Peter Nilsson
96427cb5a9 re PR middle-end/49373 (Many testcase failures)
PR middle-end/49373
	* g++.dg/torture/pr43879-1_1.C: Xfail for -O1 and above, except -flto.

From-SVN: r175317
2011-06-22 21:38:20 +00:00
Hans-Peter Nilsson
5167b7cfc6 re PR regression/47836 (Some Cross Compiler can't build target-libiberty or target-zlib)
PR regression/47836
	PR bootstrap/23656
	PR other/47733
	PR bootstrap/49247
	PR c/48825
	* configure.ac (target_libraries): Remove target-libiberty.
	Remove case-statement setting skipdirs=target-libiberty for
	multiple targets.  Remove checking target_configdirs and
	removing target-libiberty but keeping target-libgcc if
	otherwise empty.
	* Makefile.def (target_modules): Don't add libiberty.
	(dependencies): Remove all traces of target-libiberty.
	* configure, Makefile.in: Regenerate.
(add missing PR annotation in the ChangeLog entry)

From-SVN: r175316
2011-06-22 21:30:19 +00:00
Jakub Jelinek
fb79f500af re PR libgomp/49490 (suboptimal load balancing in loops)
PR libgomp/49490
	* omp-low.c (expand_omp_for_static_nochunk): Only
	use n ceil/ nthreads size for the first
	n % nthreads threads in the team instead of
	all threads except for the last few ones which
	get less work or none at all.

	* iter.c (gomp_iter_static_next): For chunk size 0
	only use n ceil/ nthreads size for the first
	n % nthreads threads in the team instead of
	all threads except for the last few ones which
	get less work or none at all.
	* iter_ull.c (gomp_iter_ull_static_next): Likewise.
	* env.c (parse_schedule): If OMP_SCHEDULE doesn't have
	chunk argument, set run_sched_modifier to 0 for static
	resp. 1 for other kinds.  If chunk argument is 0
	and not static, set value to 1.

From-SVN: r175315
2011-06-22 22:39:25 +02:00
Jakub Jelinek
4fb489e796 re PR debug/49496 (-fcompare-debug failure (length) with -O -ftree-vectorize)
PR debug/49496
	* tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
	uses.

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

From-SVN: r175314
2011-06-22 22:37:54 +02:00
Janis Johnson
7d059f1894 scd42-3.c: Allow -march-xscale; skip if -mcpu is not xscale.
* gcc.target/arm/scd42-3.c: Allow -march-xscale; skip if -mcpu
	is not xscale.

From-SVN: r175312
2011-06-22 20:29:53 +00:00
Janis Johnson
ba16e76614 * gcc.target/arm/thumb-bitfld1.c: Don't specify -march, require thumb1.
From-SVN: r175311
2011-06-22 20:28:29 +00:00
Janis Johnson
c8c933079a ctz.c: Don't specify -march, require thumb2.
* gcc.target/arm/ctz.c: Don't specify -march, require thumb2.
	* gcc.target/arm/pr42879.c: Likewise.
	* gcc.target/arm/pr45701-3.c: Likewise.

From-SVN: r175310
2011-06-22 20:27:40 +00:00
Paolo Carlini
bd9db3b8dd stl_construct.h: Update Copyright years.
2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_construct.h: Update Copyright years.
	* include/bits/stl_uninitialized.h: Likewise.

From-SVN: r175309
2011-06-22 20:27:21 +00:00
Janis Johnson
280216a987 20031108-1.c: Require thumb1 or thumb2.
* gcc.target/arm/20031108-1.c: Require thumb1 or thumb2.
	* gcc.target/arm/pr40482.c: Likewise.
	* gcc.target/arm/stack-corruption.c: Likewise.

From-SVN: r175308
2011-06-22 20:26:35 +00:00