Commit Graph

109749 Commits

Author SHA1 Message Date
John David Anglin
d38e4e3fc3 re PR testsuite/49529 (FAIL: gcc.dg/ipa/ipa-pta-17.c (test for excess errors))
PR testsuite/49529
	* gcc.dg/ipa/ipa-pta-17.c: Use dg-require-alias.

From-SVN: r175420
2011-06-27 03:13:55 +00:00
John David Anglin
9d8c2be291 pr49294.c (dg-options): Add -fno-common to options on hppa*-*-hpux*.
* gcc.dg/debug/pr49294.c (dg-options): Add -fno-common to options on
	hppa*-*-hpux*.

From-SVN: r175419
2011-06-27 03:11:08 +00:00
Jason Merrill
8c2f5419ea re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to initialize a reference)
PR c++/49528
	* semantics.c (potential_constant_expression_1): Check
	for non-literality rather than cleanup.
	(cxx_eval_constant_expression): Likewise.

From-SVN: r175417
2011-06-26 21:07:34 -04:00
GCC Administrator
149c083d32 Daily bump.
From-SVN: r175416
2011-06-27 00:19:07 +00:00
Iain Sandoe
9259075174 fix changelog date from ci 175410
From-SVN: r175411
2011-06-26 17:22:42 +00:00
Iain Sandoe
a45a766bf3 re PR target/47997 (gcc on macosx: "ld: warning: -fwritable-strings not compatible with literal CF/NSString")
PR target/47997
	* config/darwin.c (darwin_mergeable_string_section): Place string
	constants in '.cstring' rather than '.const' when CF/NSStrings are
	active.

From-SVN: r175410
2011-06-26 16:25:29 +00:00
Jason Merrill
07a9e891c9 re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to initialize a reference)
PR c++/49528
	* semantics.c (potential_constant_expression_1): A TARGET_EXPR
	with a cleanup isn't constant.
	(cxx_eval_constant_expression): Likewise.
	* init.c (expand_default_init): Use maybe_constant_init.

From-SVN: r175409
2011-06-26 10:00:33 -04:00
Jakub Jelinek
4ff10c0ec2 [multiple changes]
2011-06-26  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/48377
	* gcc.dg/vect/pr48377.c: Add dg-require-effective-target
	non_strict_align.

2011-06-26  Steve Ellcey  <sje@cup.hp.com>

	PR middle-end/49191
	* lib/target-supports.exp (check_effective_target_non_strict_align):
	New.
	* gcc.dg/memcpy-3.c: Add dg-require-effective-target non_strict_align.

From-SVN: r175408
2011-06-26 09:57:30 +02:00
Eric Botcazou
605354f380 sparc.c (save_local_or_in_reg_p): Adjust comment.
* config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
	(emit_save_register_window): Likewise.
	(sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
	(sparc_flat_expand_prologue): Add comment.  Always emit blockage.
	Swap back %o7/%i7 in register naming.

From-SVN: r175407
2011-06-26 07:57:24 +00:00
Jason Merrill
d94a4c3613 changelog correction
From-SVN: r175406
2011-06-25 23:24:22 -04:00
Jason Merrill
e618eb626c dr 1188 comment
From-SVN: r175405
2011-06-25 23:24:12 -04:00
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