Commit Graph

115401 Commits

Author SHA1 Message Date
John David Anglin 5d9dc69aff re PR target/52408 (Incorrect assembler generated for zvdep_imm64)
PR target/52408
	* config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
	unsigned HOST_WIDE_INT.
	(zvdep_imm64): Likewise.
	(vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
	(vdepi_and): Likewise.
	Likewise for unamed 64-bit patterns.
	* config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.

From-SVN: r184757
2012-03-01 19:31:03 +00:00
Kai Tietz 4462d7ae90 Fix ChangLog about uintptr_t
From-SVN: r184756
2012-03-01 19:45:30 +01:00
Ian Lance Taylor b19aea32fa compiler: Reliably give errors on misuse of multiple value call.
From-SVN: r184755
2012-03-01 18:19:13 +00:00
Kai Tietz 5e4119eaa2 pr47917.c: Make test using POSIX-printf routines on mingw targets.
* gcc.dg/torture/pr47917.c: Make test using POSIX-printf
        routines on mingw targets.
        * gcc.dg/vect/pr46126.c (size_t): Add support for
        LLP64 target.

From-SVN: r184754
2012-03-01 19:17:07 +01:00
Jason Merrill ae45549b50 re PR c++/51930 (Explicitly instantiated template gets hidden visibility)
PR c++/51930
	* decl.c (check_tag_decl): Move warning for misplaced attributes here.
	(shadow_tag): From here.
	* parser.c (cp_parser_explicit_instantiation): Don't warn here.

From-SVN: r184753
2012-03-01 12:52:12 -05:00
Ian Lance Taylor 116b061e74 mksysinfo: Define MADV_ constants for madvise.
From-SVN: r184752
2012-03-01 17:22:29 +00:00
Ian Lance Taylor f34ce44b67 compiler: Fix varargs functions that call recover.
Also fix a couple of crashes on invalid code.

From-SVN: r184751
2012-03-01 17:11:55 +00:00
Alexandre Oliva 0f68ba3ea3 re PR debug/52001 (Huge compile-time regression with var-tracking)
PR debug/52001
PR rtl-optimization/52417
* cselib.c (cselib_any_perm_equivs): New variable.
(cselib_reset_table): Check that it's not set when not
preserving constants.
(cselib_add_permanent_equiv): Set it.
(cselib_have_permanent_equivalences): New.
(cselib_init, cselib_finish): Reset it.
* cselib.h (cselib_have_permanent_equivalences): Declare.
* alias.c (get_addr): Restore earlier behavior when there
aren't permanent equivalences.

From-SVN: r184750
2012-03-01 16:58:11 +00:00
Steven Bosscher 2aceddd8fc mn10300-modes.def: Fix copyright notice.
* config/mn10300/mn10300-modes.def: Fix copyright notice.
	* config/v850/v850-modes.def: Fix copyright notice.

From-SVN: r184748
2012-03-01 16:30:07 +00:00
Georg-Johann Lay 1619fcfc06 extend.texi (AVR Built-in Functions): Document __builtin_avr_flash_segment.
* doc/extend.texi (AVR Built-in Functions): Document
	__builtin_avr_flash_segment.
	* config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
	* config/avr/avr.md (flash_segment, flash_segment1): New expanders.
	(*split.flash_segment): New insn-and-split.
	* config/avr/avr.c (avr_init_builtins): Add local variables:
	const_memx_void_node, const_memx_ptr_type_node,
	char_ftype_const_memx_ptr.

From-SVN: r184746
2012-03-01 15:28:44 +00:00
Jakub Jelinek 69ef9a7916 re PR tree-optimization/52445 (conditional store replacement causes segfault in generated code)
PR tree-optimization/52445
	* tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
	add ssa_name_ver, offset and size fields and change store field
	to bool.
	(name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
	(add_or_mark_expr): Likewise.  Only consider previous stores
	with the same size and offset.
	(nt_init_block): Only look at gimple_assign_single_p stmts,
	doesn't look at rhs2.

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

From-SVN: r184743
2012-03-01 15:13:06 +01:00
Richard Guenther c1d9cb022b re PR other/52443 (ICE: verify_gimple failed: invalid types in nop conversion)
2012-03-01  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52443
	* tree-cfg.c (verify_gimple_assign_unary): Allow any
	conversions from integral types to pointer types.

From-SVN: r184739
2012-03-01 12:26:20 +00:00
Georg-Johann Lay b2ef48efce avr-c.c (avr_cpu_cpp_builtins): Restore built-in defines for __UINT24_MAX__...
* config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
	defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__ 
	unintentionally removed in r184616.

From-SVN: r184692
2012-03-01 11:48:00 +00:00
Venkataramanan Kumar 283b529696 Document AMD bdver2 in invoke.texi
From-SVN: r184688
2012-03-01 09:57:59 +00:00
Ian Lance Taylor bedcedc126 compiler: Fix handling of indirection of circular types.
From-SVN: r184686
2012-03-01 05:59:35 +00:00
Ian Lance Taylor ce842ad6cd compiler: Avoid some compiler crashes on invalid code.
* go-gcc.cc (class Gcc_tree): Add set_tree method.
	(set_placeholder_pointer_type): When setting to a pointer to
	error, set to error_mark_node.

From-SVN: r184684
2012-03-01 05:14:10 +00:00
Ian Lance Taylor fc24bee911 compiler: Fix unary ^ applied to typed signed integer constant.
From-SVN: r184681
2012-03-01 00:45:26 +00:00
GCC Administrator 75c37a6484 Daily bump.
From-SVN: r184680
2012-03-01 00:18:32 +00:00
Jakub Jelinek 29ebe616d0 re PR target/52437 (internal compiler error: in spill_failure, at reload1.c:2120)
PR target/52437
	* config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
	alternatives, add "e" constraint to the new last alternative
	and ! to last 3 alternatives.

	* gcc.c-torture/compile/pr52437.c: New test.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>

From-SVN: r184676
2012-03-01 00:45:08 +01:00
Ian Lance Taylor 9b83b6d236 compiler: Avoid various crashes on error conditions.
From-SVN: r184675
2012-02-29 23:42:34 +00:00
Ian Lance Taylor a0c996ea7f compiler: Fix handling of invalid types within invalid types.
From-SVN: r184674
2012-02-29 22:43:15 +00:00
Eric Botcazou a339c9d606 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
From-SVN: r184672
2012-02-29 20:49:30 +00:00
Ian Lance Taylor b65734ac6c syscall: Fill out GNU/Linux support.
From-SVN: r184669
2012-02-29 20:02:31 +00:00
Eric Botcazou 3f675741b1 Fix non-ASCII character
From-SVN: r184668
2012-02-29 18:36:35 +00:00
Eric Botcazou fd7876407c dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and DW_AT_artificial attributes at the end of...
* dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
	DW_AT_artificial attributes at the end of the processing.
	(gen_array_type_die): Likewise.
	(gen_enumeration_type_die): Likewise.
	(gen_struct_or_union_type_die): Likewise.
	(add_gnat_descriptive_type_attribute): Do not suppress debug info for
	the parent type.
ada/
	* gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter
	and set TYPE_ARTIFICIAL according to it.  Adjust recursive call.
	(gnat_to_gnu_entity) <E_Record_Type>: Adjust call to above function.
	* gcc-interface/utils.c (rest_of_record_type_compilation): Do not
	invoke rest_of_type_decl_compilation on the parallel type, if any.

From-SVN: r184667
2012-02-29 18:28:41 +00:00
Jakub Jelinek a3017cf147 re PR middle-end/52419 (Wrong expansion of misaligned vector store)
PR middle-end/52419
	* expr.c (expand_assignment): If doing misaligned store that doesn't
	cover all mode bits, perform a RMW cycle.

	* gcc.dg/torture/pr52419.c: New test.

From-SVN: r184666
2012-02-29 18:45:55 +01:00
Jakub Jelinek 598e67d7a0 re PR tree-optimization/52429 (ICE in separate_decls_in_region_debug, at tree-parloops.c:914 with -ftree-parallelize-loops)
PR tree-optimization/52429
	* tree-parloops.c (separate_decls_in_region_debug): Return early
	if var is LABEL_DECL.

	* gcc.dg/torture/pr52429.c: New test.
	* g++.dg/opt/pr52429.C: New test.

From-SVN: r184665
2012-02-29 18:43:56 +01:00
H.J. Lu bce5e52b26 Update x32 baseline_symbols.txt
2012-02-29  H.J. Lu  <hongjiu.lu@intel.com>

	* config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.

From-SVN: r184664
2012-02-29 09:43:39 -08:00
Bill Schmidt 529b39d8ab re PR tree-optimization/52424 (dom prematurely pops entries from const_and_copies stack)
2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR tree-optimization/52424
	* tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
	calling dom_thread_across_edge.

From-SVN: r184662
2012-02-29 13:06:28 +00:00
Georg-Johann Lay 43c626f04f avr.c: Move definition of TARGET macros to end of file.
* config/avr/avr.c: Move definition of TARGET macros to end of file.

From-SVN: r184661
2012-02-29 12:14:48 +00:00
Georg-Johann Lay 208486094c avr-protos.h (avr_output_bld): Remove unused prototype.
* config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
	* config/avr/avr.c (avr_output_bld): Remove unused function.
	(avr_out_sbxx_branch): Use "%T" to print bit position.

From-SVN: r184660
2012-02-29 12:09:30 +00:00
Eric Botcazou 35e8bcf454 utils.c (gnat_write_global_declarations): Make sure the dummy global built for global types is preserved.
* gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
	dummy global built for global types is preserved.

From-SVN: r184659
2012-02-29 11:41:07 +00:00
Georg-Johann Lay 1edaa8b7e8 avr.md (eqne): New code iterator.
* config/avr/avr.md (eqne): New code iterator.
	(*dec-and-branchsi): Use it in text peephole's condition.
	(*dec-and-branchhi): Ditto.
	(*dec-and-branchqi): Ditto.

From-SVN: r184658
2012-02-29 11:07:01 +00:00
Richard Guenther e80cd3b096 re PR testsuite/52297 (FAIL: gcc.dg/lto/trans-mem-1 c_lto_trans-mem-1_0.o-c_lto_trans-mem-1_1.o link, -flto -fgnu-tm)
2012-02-29  Richard Guenther  <rguenther@suse.de>

	PR testsuite/52297
	* gcc.dg/lto/trans-mem-1_0.c: Remove.
	* gcc.dg/lto/trans-mem-1_1.c: Likewise.
	* gcc.dg/lto/trans-mem-2_0.c: Likewise.
	* gcc.dg/lto/trans-mem-2_1.c: Likewise.
	* gcc.dg/lto/trans-mem-4_0.c: Likewise.
	* gcc.dg/lto/trans-mem-4_1.c: Likewise.

From-SVN: r184657
2012-02-29 10:05:55 +00:00
Georg-Johann Lay df51e5022a re PR target/49939 ([avr] Skip 2-word instructions if applicable)
PR target/49939
	* config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
	the device does not have the skip-bug.

From-SVN: r184656
2012-02-29 09:50:19 +00:00
Oleg Endo bf997c7d64 invoke.texi (-msoft-atomic): Add more detailed description.
* doc/invoke.texi (-msoft-atomic): Add more detailed description.
	(-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
	-mpretend-cmove): New.

From-SVN: r184654
2012-02-29 08:30:48 +00:00
Jakub Jelinek 9b7316d709 * gcc.dg/torture/pr52402.c: Add -w -Wno-psabi to dg-options.
From-SVN: r184653
2012-02-29 09:14:52 +01:00
Jakub Jelinek bf743fc408 re PR bootstrap/52397 (comparison failure with Ada enabled)
PR bootstrap/52397
	* df.h (struct df_d): Adjust comment that hard_regs_live_count
	doesn't count DEBUG_INSN refs.
	* df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
	for DEBUG_INSN refs.

From-SVN: r184652
2012-02-29 09:12:04 +01:00
Paul Thomas 5cda350e60 re PR fortran/52386 (ICE in gfc_conv_descriptor_dtyp (realloc LHS related))
2012-02-29  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52386
	* trans-expr.c (fcncall_realloc_result): Dereference the
	descriptor if needed.

2012-02-29  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52386
	* gfortran.dg/realloc_on_assign_13.f90 : New test.

From-SVN: r184651
2012-02-29 07:21:38 +00:00
GCC Administrator b7c8e77fbf Daily bump.
From-SVN: r184649
2012-02-29 00:18:16 +00:00
Ulrich Weigand 211bea3824 Partially revert:
2012-02-20  Richard Guenther  <rguenther@suse.de>
	PR tree-optimization/52298
	* tree-vect-stmts.c (vectorizable_load): Properly use
	STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
	outer loops.

From-SVN: r184645
2012-02-28 23:40:32 +00:00
Ian Lance Taylor 5c46e29317 runtime: Call exit rather than _exit.
This fixes --coverage and perhaps other things as well.

From-SVN: r184642
2012-02-28 20:57:15 +00:00
Kai Tietz fbd3340c7d sfp-machine.h (_FP_STRUCT_LAYOUT): Define it for mingw-targets as attribute gcc_struct.
* config/i386/sfp-machine.h (_FP_STRUCT_LAYOUT): Define it
        for mingw-targets as attribute gcc_struct.

From-SVN: r184641
2012-02-28 21:53:35 +01:00
Benjamin Kosnik 66432b8ef7 Fix ChangeLog date.
From-SVN: r184640
2012-02-28 20:26:46 +00:00
Benjamin Kosnik c9fd7c7ba7 re PR libstdc++/52191 (abi_check should flag additions to released versions)
2012-02-21  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52191
	* testsuite/util/testsuite_abi.cc (compare_symbols): Check new
	symbols added into the latest version. Mark tls entities as
	undesignated.

From-SVN: r184639
2012-02-28 20:25:48 +00:00
Aldy Hernandez 19c0d7df99 re PR middle-end/51752 (trans-mem: publication safety violated)
PR middle-end/51752
        * gimple.h (gimple_in_transaction): New.
        (gimple_set_in_transaction): New.
        (struct gimple_statement_base): Add in_transaction field.
        * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
        transaction loads.
        (tree_ssa_lim_initialize): Compute transaction bits.
        * tree.h (compute_transaction_bits): Protoize.
        * trans-mem.c (tm_region_init): Use the heap to store BB
        auxilliary data.
        (compute_transaction_bits): New.

From-SVN: r184638
2012-02-28 20:08:39 +00:00
Mike Stump ca45d3d56d Fix changelog format.
From-SVN: r184636
2012-02-28 18:02:56 +00:00
Ian Lance Taylor e9e053ebfd generic-morestack.c (__splitstack_releasecontext): Correct call to __morestack_release_segments.
* generic-morestack.c (__splitstack_releasecontext): Correct call
	to __morestack_release_segments.

From-SVN: r184634
2012-02-28 17:43:43 +00:00
Bernhard Reutner-Fischer cdbfc61de4 document gcc --help=common
2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* gcc.c (display_help): Document --help=common and sort entries
	alphabetically.

From-SVN: r184633
2012-02-28 18:31:38 +01:00
Bernhard Reutner-Fischer 6c6b663449 install.texi: document language-specific check- shortcuts
2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* doc/install.texi: Document check-$LANG specific shortcuts

From-SVN: r184632
2012-02-28 18:30:26 +01:00