aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2012-03-07re PR target/52505 ([avr]: __memx address space reading unintentionally from ↵Georg-Johann Lay3-4/+27
RAM) libgcc/ PR target/52505 * config/avr/lib1funcs.S (__xload_1): Don't read unintentionally from RAM. gcc/ PR target/52505 * config/avr/avr.c (avr_out_xload): Don't read unintentionally from RAM. * config/avr/avr.md (xload_8): Adjust insn length. From-SVN: r185031
2012-03-07re PR target/52461 ([avr] XMEGA+EBI: RAMPZ clobbered while reading from flash)Georg-Johann Lay2-0/+13
libgcc/ PR target/52461 PR target/52508 * config/avr/lib1funcs.S (__do_copy_data): Clear RAMPZ after usage if RAMPZ affects reading from RAM. (__tablejump_elpm__): Ditto. (.xload): Ditto. (__movmemx_hi): Ditto. (__do_global_ctors): Right condition for RAMPZ usage is "have ELPM". (__do_global_dtors): Ditto. (__xload_1, __xload_2, __xload_3, __xload_4): Ditto. (__movmemx_hi): Ditto. gcc/ PR target/52461 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage if RAMPZ affects reading from RAM. From-SVN: r185030
2012-03-07re PR pch/52518 (gcc fails to find pch files in subincludes)Richard Guenther2-3/+9
2012-03-07 Richard Guenther <rguenther@suse.de> PR pch/52518 PR pch/38987 * doc/invoke.texi (Precompiled Headers): Remove sentence that suggests you can include PCHs from inside another header. From-SVN: r185029
2012-03-07re PR middle-end/52515 (build fails on cris-elf in unwind-dw2.c, ↵Richard Sandiford2-4/+9
x86_64-unknown-linux-gnu in bid_binarydecimal.c) gcc/ PR middle-end/52515 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers. From-SVN: r185028
2012-03-07invoke.texi (fwritable-relocated-rdata): Document new Cygwin/MinGW target ↵Kai Tietz4-0/+29
option. * doc/invoke.texi (fwritable-relocated-rdata): Document new Cygwin/MinGW target option. * config/i386/winnt.c (i386_pe_unique_section): Ignore reloc if flag -fwritable-relocated-rdata is not set. (i386_pe_section_type_flags): Likewise. * config/i386/cygming.opt (fwritable-relocated-rdata): Add new flag variable flag_writable_rel_rdata. From-SVN: r185027
2012-03-07tree-ssa-math-opts.c (convert_mult_to_widen): Check actual precision against ↵Richard Guenther2-0/+7
gimple constraints. 2012-03-07 Richard Guenther <rguenther@suse.de> * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual precision against gimple constraints. From-SVN: r185026
2012-03-07Daily bump.GCC Administrator1-1/+1
From-SVN: r185024
2012-03-06va-arg-25.c: Fix typo for powerpc64-*-* check.Pat Haugen2-1/+5
* gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check. From-SVN: r185019
2012-03-06f95-lang.c (yyerror, yylex): Remove.Steven Bosscher7-159/+122
* f95-lang.c (yyerror, yylex): Remove. (clear_binding_stack): Remove, fold into its only user. (LANG_HOOKS_PRINT_IDENTIFIER): Do not re-define. (ridpointers): Remove. (gfc_eh_initialized_p): Make static. (gfc_truthvalue_conversion): Move to convert.c. (gfc_be_parse_file): Clear binding level stack when done. (gfc_print_identifier): Remove. (pushlevel): Remove ignored 'ignore' argument. Update all callers. (poplevel): Remove unused 'reverse' argument. Update all callers. (ggc_p): Remove. (gfc_builtin_function): Make static. Do not attempt to make RTL for builtin functions. * convert.c (gfc_truthvalue_conversion): Moved here from f95-lang.c, and made static. * trans.h (pushlevel, poplevel): Adjust prototypes. (gfc_truthvalue_conversion, gfc_builtin_function): Remove prototypes. * trans-openmp.c: Update calls to pushlevel and poplevel. * trans.c: Likewise. * trans-decl.c: Likewise. From-SVN: r185015
2012-03-06re PR middle-end/52372 (gcc.target/mips/mips16-attributes{,-4}.c SEGV in ↵Richard Sandiford3-14/+27
dwf_regno) gcc/ PR middle-end/52372 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as variables. (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete. * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New variables. (init_emit_regs): Move associated initialization to... (init_emit_once): ...here. From-SVN: r185013
2012-03-06m68k: Limit TAS to 68000 and CF ISA_B.Richard Henderson3-2/+9
From-SVN: r185011
2012-03-06re PR target/50310 (ICE: in gen_vcondv2div2df, at config/i386/sse.md:1435 ↵Michael Meissner3-0/+103
with -O -ftree-vectorize and __builtin_isunordered()) 2012-03-05 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/50310 * config/rs6000/vector.md (vector_uneq<mode>): Add support for UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons. (vector_ltgt<mode>): Likewise. (vector_ordered<mode>): Likewise. (vector_unordered<mode>): Likewise. * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise. From-SVN: r185007
2012-03-06trans-mem.c: New typedef for tm_region_p.Aldy Hernandez2-10/+19
* trans-mem.c: New typedef for tm_region_p. Define vector types for tm_region_p. (tm_region_init): Replace region_worklist to a vector called bb_regions. From-SVN: r185000
2012-03-06fold-const.c (build_fold_addr_expr_with_type_loc): Fold MEM_REF with ↵Richard Guenther2-1/+11
constant pointer operand. 2012-03-06 Richard Guenther <rguenther@suse.de> * fold-const.c (build_fold_addr_expr_with_type_loc): Fold MEM_REF with constant pointer operand. From-SVN: r184988
2012-03-06re PR middle-end/52493 (tree check fail in ptr_derefs_may_alias_p)Richard Guenther4-13/+57
2012-03-06 Richard Guenther <rguenther@suse.de> PR middle-end/52493 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify. * gcc.dg/torture/pr52493.c: New testcase. From-SVN: r184987
2012-03-06vms-c.c (vms_pragma_nomember_alignment): Handle octaword.Tristan Gingold2-8/+36
2012-03-06 Tristan Gingold <gingold@adacore.com> * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword. (external_model_kind): Improve documentation. (vms_pragma_extern_model): Handle relaxed_redef. (vms_c_register_pragma): Allow expansion for nomember_alignment. From-SVN: r184986
2012-03-06invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.Georg-Johann Lay2-23/+118
* doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores. Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc. Some more notes on EIND usage and reorder EIND subsection. From-SVN: r184985
2012-03-06vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.Tristan Gingold3-13/+19
2012-03-06 Tristan Gingold <gingold@adacore.com> * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF. * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL. From-SVN: r184983
2012-03-06t-vmsnative (version): Define.Tristan Gingold3-6/+15
2012-03-06 Tristan Gingold <gingold@adacore.com> * config/vms/t-vmsnative (version): Define. * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove. From-SVN: r184982
2012-03-06re PR middle-end/52097 (ICE: in get_bit_range, at expr.c:4535 with -O -flto ↵Richard Guenther4-0/+65
-fexceptions -fnon-call-exceptions --param allow-store-data-races=0) 2012-03-06 Richard Guenther <rguenther@suse.de> PR lto/52097 * lto.c (uniquify_nodes): Merge TYPE_FIELDS of variant types. * gcc.dg/lto/pr52097_0.c: New testcase. From-SVN: r184981
2012-03-06re PR rtl-optimization/52250 (ICE: in sel_remove_bb, at sel-sched-ir.c:5213 ↵Andrey Belevantsev2-9/+25
with -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling2 and other flags) PR rtl-optimization/52250 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb to put note list into. Unconditionally call move_bb_info. (move_bb_info): Do not assert the blocks being in the same region, just drop the note list if they are not. From-SVN: r184975
2012-03-06Daily bump.GCC Administrator1-1/+1
From-SVN: r184971
2012-03-05re PR target/51244 ([SH] Inefficient conditional branch and code around T bit)Oleg Endo8-44/+176
PR target/51244 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case and use unified expansion logic. * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move closer to the existing movt insn. (negc): Rename insn to *negc. Add new expander. (movnegt): Use xor pattern for T bit negation. Reserve helper constant for negc pattern. (*movnegt): New insn and splitter. PR target/51244 * gcc.target/sh/pr51244-1.c: New. * gcc.target/sh/pr51244-2.c: New. * gcc.target/sh/pr51244-3.c: New. From-SVN: r184966
2012-03-05c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not PLUS_EXPR.Bernd Schmidt2-2/+9
* c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not PLUS_EXPR. From-SVN: r184965
2012-03-05genemit.c (main): Include "target.h" in insn-emit.c.Richard Henderson4-6/+16
* genemit.c (main): Include "target.h" in insn-emit.c. * Makefile.in (insn-emit.o): Depend on TARGET_H. * config/sh/sync.md (atomic_test_and_set): Reference targetm.atomic_test_and_set_trueval instead of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL. From-SVN: r184964
2012-03-05Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn before using it.Jason Merrill2-0/+6
* gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn before using it. From-SVN: r184963
2012-03-05epiphany.c (epiphany_function_value_regno_p): Make static.Joern Rennecke2-1/+6
* config/epiphany/epiphany.c (epiphany_function_value_regno_p): Make static. From-SVN: r184962
2012-03-05objc-map.c (objc_map_private_resize, [...]): Don't call _stat functions ↵Jason Merrill2-5/+10
without MEM_STAT_INFO. * objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't call _stat functions without MEM_STAT_INFO. From-SVN: r184961
2012-03-05langhooks.c (add_builtin_type): New function.Steven Bosscher5-107/+61
* langhooks.c (add_builtin_type): New function. * langhooks.h (add_builtin_type): Export it. * config/mep/mep.c (mep_init_builtins): Use it. * config/rs6000/rs6000.c (rs6000_init_builtins): Use it. From-SVN: r184960
2012-03-05pt.c (local_specializations): Change from htab_t into struct pointer_map_t *.Jakub Jelinek2-40/+21
* pt.c (local_specializations): Change from htab_t into struct pointer_map_t *. (retrieve_local_specializations, register_local_specialization, tsubst_pack_expansion, instantiate_decl): Adjust users. (eq_local_specializations, hash_local_specialization): Remove. From-SVN: r184959
2012-03-05re PR debug/51902 (lexical_blocks inside inlined_subroutines generate ↵Jakub Jelinek4-9/+138
duplicate debug_ranges) PR debug/51902 * tree.h (BLOCK_SAME_RANGE): Define. * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared. Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment isn't equal to supercontext fragment's fragment chain. Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's fragment origin. (blocks_nreverse_all): Likewise. (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set BLOCK_SUPERCONTEXT to supercontext fragment instead of supercontext fragment's fragment origin. * dwarf2out.c (add_high_low_attributes): If stmt has the same range as its parent (or parents thereof etc.), use the parent's DW_AT_ranges value instead of creating a new .debug_ranges range. From-SVN: r184958
2012-03-05re PR tree-optimization/52242 (libgomp.c/atomic-2.c failure on s390x)Richard Henderson2-3/+8
PR tree-opt/52242 Revert: 2011-11-26 Richard Henderson <rth@redhat.com> * omp-low.c (expand_omp_atomic): Assume anything aligned to BIGGEST_ALIGNMENT is aligned. From-SVN: r184955
2012-03-05sh: Fix location of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL definition.Richard Henderson3-6/+10
* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move... * config/sh/sh.c: ... here. From-SVN: r184953
2012-03-05re PR target/52481 (m68k-*: internal compiler error: in extract_insn, at ↵Richard Henderson1-5/+5
recog.c:2123) PR target/52481 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop instead of calling negqi2 directly. From-SVN: r184952
2012-03-05re PR middle-end/52463 (libitm.c/memcpy-1.c FAILs)Aldy Hernandez2-1/+6
PR middle-end/52463 * trans-mem.c (tm_region_init): Use last_basic_block. From-SVN: r184949
2012-03-05re PR target/52481 (m68k-*: internal compiler error: in extract_insn, at ↵Richard Henderson2-2/+11
recog.c:2123) PR target/52481 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop instead of calling negqi2 directly. From-SVN: r184948
2012-03-05sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.Oleg Endo5-1/+87
* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook. * config/sh/sync.md (atomic_test_and_set): New expander. (tasb, atomic_test_and_set_soft): New insns. * config/sh/sh.opt (menable-tas): New option. * doc/invoke.texi (SH Options): Document it. From-SVN: r184947
2012-03-05re PR c++/51930 (Explicitly instantiated template gets hidden visibility)Jason Merrill5-18/+66
PR c++/51930 * decl2.c (determine_visibility): Correct calculation of class args depth. * decl.c (check_tag_decl): Adjust warning. From-SVN: r184946
2012-03-05method.c (synthesized_method_walk): Cleanups don't affect the EH spec either.Jason Merrill4-2/+38
* method.c (synthesized_method_walk): Cleanups don't affect the EH spec either. From-SVN: r184945
2012-03-05cfgloop.c (verify_loop_structure): Verify dominators before using them.Richard Guenther11-9/+23
2012-03-05 Richard Guenther <rguenther@suse.de> * cfgloop.c (verify_loop_structure): Verify dominators before using them. * graphite-clast-to-gimple.c (graphite_verify): Do not verify dominators from here. * graphite-scop-detection.c (create_sese_edges): Likewise. * loop-doloop.c (doloop_optimize_loops): Likewise. * loop-init.c (loop_optimizer_init): Likewise. * loop-unroll.c (unroll_and_peel_loops): Likewise. * loop-unswitch.c (unswitch_loops): Likewise. * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise. * tree-parloops.c (parallelize_loops): Likewise. Verify only when checking is enabled. * tree-loop-distribution.c (tree_loop_distribution): Likewise. From-SVN: r184937
2012-03-05genautomata.c (parse_automata_opt): New static function.Bernd Schmidt2-37/+44
* genautomata.c (parse_automata_opt): New static function. (initiate_automaton_gen): Remove all option handling code. Remove argc argument. All callers changed. (main): Call init_rtx_reader_args_cb with the new function as argument. From-SVN: r184936
2012-03-05Fix ChangeLog record for 171649:Joern Rennecke1-1/+1
* ira-conflicts.c: Remove mentioning cover classes from the file. Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use - ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting. + ALLOCNO_CLASS_COST instead of ALLOCNO_COVER_CLASS_COST. Fix formatting. From-SVN: r184935
2012-03-05cfgexpand.c (gimple_expand_cfg): Free dominator info.Richard Guenther4-0/+17
2012-03-05 Richard Guenther <rguenther@suse.de> * cfgexpand.c (gimple_expand_cfg): Free dominator info. * tree-if-conv.c (combine_blocks): Free post-dominator info after breaking it. * tree-parloops.c (create_parallel_loop): Free and re-compute dominator info after breaking it. From-SVN: r184933
2012-03-05re PR middle-end/52353 (-ftrapv -fnon-call-exceptions does not work)Richard Guenther3-6/+48
2012-03-05 Richard Guenther <rguenther@suse.de> PR middle-end/52353 * optabs.h (trapv_unoptab_p): New function. (trapv_binoptab_p): Likewise. * optabs.c (expand_binop): Use emit_libcall_block_1 with a proper equiv_may_trap argument. (expand_unop): Likewise. (emit_libcall_block_1): Take extra argument whether the instruction may trap. Renamed from ... (emit_libcall_block): ... this. New wrapper. From-SVN: r184932
2012-03-05* sv.po: Update.Joseph Myers2-203/+206
From-SVN: r184930
2012-03-05re PR tree-optimization/51721 (-Warray-bounds false positives and ↵Jakub Jelinek5-1/+475
inconsistencies) PR tree-optimization/51721 * tree-vrp.c (register_edge_assert_for_2): If comparing lhs of right shift by constant with an integer constant, add ASSERT_EXPRs for the rhs1 of the right shift. * gcc.dg/tree-ssa/vrp63.c: New test. * gcc.dg/pr51721.c: New test. From-SVN: r184927
2012-03-05* cfgrtl.c (cfg_layout_merge_blocks): Cleanup.Jakub Jelinek2-25/+18
From-SVN: r184925
2012-03-05tree.c (integer_zerop): Handle VECTOR_CSTs.Richard Guenther2-12/+53
2012-03-05 Richard Guenther <rguenther@suse.de> * tree.c (integer_zerop): Handle VECTOR_CSTs. (integer_onep): Likewise. (integer_all_onesp): Likewise. From-SVN: r184923
2012-03-05avr.md (*umaddqihi4.2): New insn-and-split.Georg-Johann Lay2-0/+27
* config/avr/avr.md (*umaddqihi4.2): New insn-and-split. From-SVN: r184919
2012-03-05Daily bump.GCC Administrator1-1/+1
From-SVN: r184910