Commit Graph

109779 Commits

Author SHA1 Message Date
Georg-Johann Lay
880962aca2 config.gcc (tm_file): Add elfos.h and avr/elf.h for avr-*-* and avr-*-rtems* targets.
* config.gcc (tm_file): Add elfos.h and avr/elf.h for 
	avr-*-* and avr-*-rtems* targets.
	* config/avr/elf.h: New file.
	(ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
	(TARGET_ASM_SELECT_SECTION): Define.
	(INIT_SECTION_ASM_OP): Undefine.
	(FINI_SECTION_ASM_OP): Undefine.
	(READONLY_DATA_SECTION_ASM_OP): Undefine.
	(PCC_BITFIELD_TYPE_MATTERS): Undefine.
	(TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
	* config/avr/avr.h:
	(PREFERRED_DEBUGGING_TYPE): Move to elf.h.
	(TARGET_ASM_NAMED_SECTION): Move to elf.h.
	(MAX_OFILE_ALIGNMENT): Move to elf.h.
	(STRING_LIMIT): Move to elf.h.
	(ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
	(ASM_DECLARE_OBJECT_NAME): Remove.
	(ESCAPES): Remove.
	(ASM_OUTPUT_SKIP): Remove.
	(DWARF2_DEBUGGING_INFO): Remove.
	(OBJECT_FORMAT_ELF): Remove.
	(USER_LABEL_PREFIX): Remove.
	(ASM_OUTPUT_EXTERNAL): Remove.
	(ASM_OUTPUT_ASCII): Remove.
	(TYPE_ASM_OP): Remove.
	(SIZE_ASM_OP): Remove.
	(WEAK_ASM_OP): Remove.
	(STRING_ASM_OP): Remove.
	(SET_ASM_OP): Remove.
	(ASM_WEAKEN_LABEL): Remove.
	(TYPE_OPERAND_FMT): Remove.
	(ASM_DECLARE_FUNCTION_SIZE): Remove.
	(ASM_FINISH_DECLARE_OBJECT): Remove.
	(NO_DOLLAR_IN_LABEL): Remove.
	(ASM_GENERATE_INTERNAL_LABEL): Remove.
	(ASM_OUTPUT_CASE_LABEL): Remove.
	* config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
	ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
	(gas_output_ascii): Remove.
	(gas_output_limited_string): Remove.
	(TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
	* config/avr/avr-protos.h
	(gas_output_ascii): Remove prototye.
	(gas_output_limited_string): Remove prototype.

From-SVN: r175575
2011-06-28 07:26:09 +00:00
Janis Johnson
6dd61d8494 pr45701-1.c: Don't specify -march; remove dg-prune-output.
* gcc.target/arm/pr45701-1.c: Don't specify -march; remove
	dg-prune-output.
	* gcc.target/arm/pr45701-2.c: Ditto.

From-SVN: r175573
2011-06-28 01:37:28 +00:00
GCC Administrator
ba51b89e1c Daily bump.
From-SVN: r175572
2011-06-28 00:18:34 +00:00
Gabriel Charette
18faf0ee3f MAINTAINERS (Write After Approval): Add myself.
2011-06-27  Gabriel Charette  <gchare@google.com>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r175567
2011-06-27 21:53:37 +00:00
Richard Earnshaw
a1b5eb9382 re PR target/48637 (%c in ARM inline asm leads to ICE (in arm_print_operand))
PR target/48637
	* arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
	asm operands.

From-SVN: r175565
2011-06-27 21:09:25 +00:00
Janus Weil
dbb7247b9a re PR fortran/49466 (Memory leak with assignment of extended derived types)
2011-06-27  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/49466
	* trans-array.c (structure_alloc_comps): Make sure sub-components
	and extended types are correctly deallocated.


2011-06-27  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/49466
	* gfortran.dg/allocatable_scalar_9.f90: Modified.
	* gfortran.dg/extends_14.f03: Modified.

From-SVN: r175563
2011-06-27 22:59:12 +02:00
Joseph Myers
5d8d1543f5 * de.po: Update.
From-SVN: r175561
2011-06-27 21:56:40 +01:00
Jan Hubicka
310e71a8b8 ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node instead of references in node.
* ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
	instead of references in node.

From-SVN: r175555
2011-06-27 20:01:44 +00:00
Richard Henderson
171da07afc Fix alpha and ia64 non-vms build.
* config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
        * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
        inside ifdef.

From-SVN: r175554
2011-06-27 12:57:09 -07:00
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