Commit Graph

109870 Commits

Author SHA1 Message Date
Janis Johnson
2972d17c85 target-supports-dg.exp (dg-require-effective-target): Return early if the test is already being skipped.
* lib/target-supports-dg.exp (dg-require-effective-target): Return
	early if the test is already being skipped.

From-SVN: r175547
2011-06-27 18:40:18 +00:00
Janis Johnson
0e0ccb0fbb scanasm.exp (dg-scan, [...]): For missing file...
* lib/scanasm.exp (dg-scan, scan-assembler-times, scan-assembler-dem,
	scan-assembler-dem-not): For missing file, report unresolved with
	same message as for pass/fail, with reason reported in log file.

From-SVN: r175546
2011-06-27 18:39:21 +00:00
Janis Johnson
cf0a9c20a4 target-supports.exp (add_options_for_arm_fp16): Renamed from add_options_for_arm_neon_fp16.
* lib/target-supports.exp (add_options_for_arm_fp16): Renamed
	from add_options_for_arm_neon_fp16.
	(check_effective_target_arm_fp16_ok_nocache): Renamed from
	check_effective_target_arm_neon_fp16_ok_nocache.
	Check -mfpu and -mfloat-abi options from current multilib.
	Do not require neon support.
	(check_effective_target_arm_fp16_ok): Renamed from
	check_effecitve_target_arm_neon_fp16_ok.
	* g++.dg/ext/arm-fp16/arm-fp16-ops-5.C: Use new names for
	arm_neon_fp16_ok and arm_fp16.
	* g++.dg/ext/arm-fp16/arm-fp16-ops-6.C: Likewise.
	* gcc.dg/torture/arm-fp16-ops-5.c: Likewise.
	* gcc.dg/torture/arm-fp16-ops-6.c: Likewise.
	* gcc.target/arm/fp16-compile-vcvt.c: Likewise.

From-SVN: r175545
2011-06-27 18:38:00 +00:00
Jakub Jelinek
563007852e c-common.h (c_tree_chain_next): New static inline function.
* c-common.h (c_tree_chain_next): New static inline function.

	* c-decl.c (union lang_tree_node): Use it in chain_next expression.

	* cp-tree.h (union lang_tree_node): Use it in chain_next expression.

From-SVN: r175542
2011-06-27 18:56:08 +02:00
Jakub Jelinek
45d439ac1a builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
* builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
	* builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
	* tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
	find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
	* tree-ssa-ccp.c (bit_value_assume_aligned): New function.
	(evaluate_stmt, execute_fold_all_builtins): Handle
	BUILT_IN_ASSUME_ALIGNED.
	* tree-ssa-dce.c (propagate_necessity): Likewise.
	* tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
	call_may_clobber_ref_p_1): Likewise.
	* builtins.c (is_simple_builtin, expand_builtin): Likewise.
	(expand_builtin_assume_aligned): New function.
	* doc/extend.texi (__builtin_assume_aligned): Document.

	* c-common.c (check_builtin_function_arguments): Handle
	BUILT_IN_ASSUME_ALIGNED.

	* gcc.dg/builtin-assume-aligned-1.c: New test.
	* gcc.dg/builtin-assume-aligned-2.c: New test.
	* gcc.target/i386/builtin-assume-aligned-1.c: New test.

From-SVN: r175541
2011-06-27 18:52:23 +02:00
Jakub Jelinek
dc2a58daab re PR debug/49544 (ICE in new_elt_loc_list)
PR debug/49544
	* cselib.c (promote_debug_loc): If cselib_preserve_constants
	and l has two DEBUG_INSN owned locs instead of just one, adjust
	the second location's setting_insn too.

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

From-SVN: r175540
2011-06-27 18:45:49 +02:00
Rainer Orth
0d72f628a4 re PR libmudflap/38738 (libmudflap could be enabled for Solaris when using GNU ld)
gcc:
	PR libmudflap/38738
	* config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.

	libmudflap:
	PR libmudflap/38738
	* configure.ac: Check for sys/mnttab.h.
	Check for library containing connect.
	* configure: Regenerate.
	* config.h.in: Regenerate.
	* mf-hooks2.c [HAVE_SYS_MNTTAB_H]: Include <sys/mnttab.h>.
	* testsuite/libmudflap.c/pass-stratcliff.c (main) [__sun__ &&
	__svr4__]: Disable rawmemchr, stpcpy, mempcpy tests.

From-SVN: r175537
2011-06-27 16:20:47 +00:00
Nick Clifton
bebd619ecc mn10300.md (clzsi2): Use XOR after BSCH to convert bit position of highest bit set into a count of...
* config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
	convert bit position of highest bit set into a count of the high
	zero bits.

From-SVN: r175536
2011-06-27 15:52:26 +00:00
Eric Botcazou
353b39fa9d * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
From-SVN: r175535
2011-06-27 14:54:09 +00:00
Eric Botcazou
a7af037b11 re PR lto/48492 (LTO bootstrap failure in copy_constant)
PR lto/48492
	* dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
	to a NULL parent.

From-SVN: r175533
2011-06-27 14:34:05 +00:00
Richard Guenther
1c86160a7a re PR middle-end/49394 (libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions)
2011-06-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/49394
	* passes.c (execute_one_pass): Restore current_pass after
	applying IPA transforms.

	* g++.dg/torture/pr49394.C: New testcase.

From-SVN: r175532
2011-06-27 14:32:00 +00:00
Kai Tietz
5da49a9d15 tree-ssa-math-opts.c (do_shift_rotate): Zero bits out of type precision after operation.
2011-06-27  Kai Tietz  <ktietz@redhat.com>

        * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
        out of type precision after operation.
        (find_bswap): Take for limit value the integer auto-
        promotion into account.

ChangeLog

2011-06-27  Kai Tietz  <ktietz@redhat.com>

        * gcc.dg/optimize-bswapdi-2.c: New test.

From-SVN: r175528
2011-06-27 15:44:52 +02:00
Eric Botcazou
9242213f86 reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the forward scan as well.
* reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
	forward scan as well.

From-SVN: r175524
2011-06-27 12:59:56 +00:00
Tristan Gingold
db8b22ef49 re PR target/44241 (vms-crtl.h, vms-crtl-64.h need many more symbols)
2011-06-27  Tristan Gingold  <gingold@adacore.com>

	PR target/44241
	* config/vms/vms-protos.h: New file.
	* config/vms/vms-crtlmap.map: New file.
	* config/vms/vms.c: New file.
	* config/vms/make-crtlmap.awk: New file.
	* config/vms/vms-crtl.h: File removed.
	* config/vms/vms-crtl-64.h: File removed.
	* config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
	* config/alpha/vms64.h: Do not include vms-crtl-64.h
	* config/alpha/alpha.c (alpha_init_builtins): Remove code to
	clear some builtins on VMS.  Calls vms_patch_builtins.
	(avms_asm_output_external): Remove.
	* config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
	(struct crtl_name_spec): Remove
	(DO_CTRL_NAMES): Remove.
	* config/ia64/vms.h (struct crtl_name_spec): Remove
	(DO_CTRL_NAMES): Remove.
	* config/ia64/ia64.c (alpha_init_builtins): Remove code to
	clear some builtins on VMS.  Calls vms_patch_builtins.
	(ia64_asm_output_external): Remove DO_CRTL_NAME.
	* config/ia64/vms64.h: Do not include vms-crtl-64.h
	* config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
	tm_p_file.

From-SVN: r175523
2011-06-27 12:51:09 +00:00
Tristan Gingold
b213221d25 alpha.c (alpha_end_function): Always generate .end directive on VMS.
2011-06-27  Tristan Gingold  <gingold@adacore.com>

	* config/alpha/alpha.c (alpha_end_function): Always generate .end
	directive on VMS.

From-SVN: r175522
2011-06-27 12:30:16 +00:00
Joseph Myers
8062f281e8 * de.po: Update.
From-SVN: r175519
2011-06-27 13:12:08 +01:00
Eric Botcazou
157b930011 sparc.c (sparc_frame_pointer_required): Return true if the function receives nonlocal gotos.
* config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
	the function receives nonlocal gotos.

From-SVN: r175477
2011-06-27 11:07:55 +00:00
Richard Guenther
a034d4bcdb update_version_svn (IGNORE_BRANCHES): Add gcc-4_3-branch.
2011-06-27  Richard Guenther  <rguenther@suse.de>

	* update_version_svn (IGNORE_BRANCHES): Add gcc-4_3-branch.

From-SVN: r175476
2011-06-27 11:05:50 +00:00
Richard Guenther
ccbf5bb4ae re PR middle-end/49536 (latent bug with creation of vector of arrays)
2011-06-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/49536
	* tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
	For non-scalar inner types use a scalar type according to
	the scalar inner mode.

From-SVN: r175475
2011-06-27 10:31:30 +00:00
Richard Guenther
fe4cd14b45 re PR tree-optimization/49365 (436.cactusADM performance regression)
2011-06-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/49365
	* params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.

From-SVN: r175474
2011-06-27 10:28:39 +00:00
Richard Sandiford
afc3f22f90 re PR rtl-optimization/49169 (ARM: optimisations strip the Thumb/ARM mode bit off function pointers)
gcc/
2011-07-24  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/49169
	* fold-const.c (get_pointer_modulus_and_residue): Don't rely on
	the alignment of function decls.

gcc/testsuite/
2011-07-24  Michael Hope  <michael.hope@linaro.org>
	    Richard Sandiford  <richard.sandiford@linaro.org>

	PR tree-optimization/49169
	* gcc.dg/torture/pr49169.c: New test.

From-SVN: r175427
2011-06-27 09:33:06 +00:00
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