summaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)Author
2018-01-08[arm] PR target/82975: Guard against reg_renumber being NULL in arm.hktkachov
Backport from mainline 2017-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR target/82975 * config/arm/arm.h (TEST_REGNO): Adjust comment as expected in r255830. * gcc.dg/pr82975.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256350 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-08RTEMS/EPIPHANY: Add RTEMS supportsh
gcc/ * config.gcc (epiphany-*-elf*): Add (epiphany-*-rtems*) configuration. * config/epiphany/rtems.h: New file. libgcc/ * config.host (epiphany-*-elf*): Add (epiphany-*-rtems*) configuration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256342 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-08Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256326 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-07 * config/alpha/alpha.md (*sadd<modesuffix>): Use ASHIFTuros
instead of MULT rtx. Update all corresponding splitters. (*saddl_se): Ditto. (*ssub<modesuffix>): Ditto. (*ssubl_se): Ditto. (*cmp_sadd_di): Update split patterns. (*cmp_sadd_si): Ditto. (*cmp_sadd_sidi): Ditto. (*cmp_ssub_di): Ditto. (*cmp_ssub_si): Ditto. (*cmp_ssub_sidi): Ditto. * config/alpha/predicates.md (const23_operand): New predicate. * config/alpha/alpha.c (alpha_rtx_costs) [PLUS, MINUS]: Look for ASHIFT, not MULT inner operand. (alpha_split_conditional_move): Update for *sadd<modesuffix> change. testsuite/ChangeLog: * gcc.target/alpha/pr83628-1.c: New test. * gcc.target/alpha/pr83628-2.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256324 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-07Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256316 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-06Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256303 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-05Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256271 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-042018-01-04 Steven G. Kargl <kargl@gcc.gnu.org>kargl
PR Fortran/83679 * simplify.c (gfc_simplify_cshift): Restore early return for zero-sized array. Update Copyright year while here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256263 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-04Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256221 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-03Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256115 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-02RISC-V: Fix for icache flush issue on multicore processors.wilson
gcc/ * config/riscv/linux.h (ICACHE_FLUSH_FUNC): New. * config/riscv/riscv.md (clear_cache): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256110 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-02 PR c++/83556jakub
* tree.c (replace_placeholders_r): Pass NULL as last argument to cp_walk_tree instead of d->pset. If non-TREE_CONSTANT and non-PLACEHOLDER_EXPR tree has been seen already, set *walk_subtrees to false and return. (replace_placeholders): Pass NULL instead of &pset as last argument to cp_walk_tree. * g++.dg/cpp0x/pr83556.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256087 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-022018-01-02 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig
PR fortran/83650 * simplify.c (gfc_simplify_cshift): Correct contition for negative shifts. 2018-01-02 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/83650 * gfortran.dg/simplify_cshift_1.f90: Correct condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256085 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-02Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256067 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-01 PR middle-end/83608jakub
* expr.c (store_expr_with_bounds): Use simplify_gen_subreg instead of convert_modes if target mode has the right side, but different mode class. * g++.dg/opt/pr83608.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256063 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-01 PR middle-end/83609jakub
* expr.c (expand_assignment): Fix up a typo in simplify_gen_subreg last argument when extracting from CONCAT. If either from_real or from_imag is NULL, use expansion through memory. If result is not a CONCAT and simplify_gen_subreg fails, try to simplify_gen_subreg the parts directly to inner mode, if even that fails, use expansion through memory. * gcc.dg/pr83609.c: New test. * g++.dg/opt/pr83609.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256062 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-01 PR middle-end/83623jakub
* expmed.c (expand_shift_1): For 2-byte rotates by BITS_PER_UNIT, check for bswap in mode rather than HImode and use that in expand_unop too. * gcc.dg/pr83623.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256061 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-01 * es.po: Update.jsm28
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256060 138bc75d-0d04-0410-961f-82ee72b054a4
2018-01-01Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256057 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-31Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256047 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-30Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256038 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-29Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256029 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-282017-12-28 Steven G. Kargl <kargl@gcc.gnu.org>kargl
PR Fortran/83548 * match.c (gfc_match_type_spec): Check for LOGICAL conflict in type-spec versus LOGICAL intrinsic subprogram. 2017-12-28 Steven G. Kargl <kargl@gcc.gnu.org> PR Fortran/83548 * gfortran.dg/array_constructor_type_22.f03: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256025 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-28Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256016 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-27Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256005 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-26Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255999 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-25Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255995 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-24Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255990 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-23 PR c++/83553jakub
* fold-const.c (struct contains_label_data): New type. (contains_label_1): Return non-NULL even for CASE_LABEL_EXPR, unless inside of a SWITCH_BODY seen during the walk. (contains_label_p): Use walk_tree instead of walk_tree_without_duplicates, prepare data for contains_label_1 and provide own pset. * c-c++-common/torture/pr83553.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255988 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-23Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255985 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22[PR 82027] Also stream opt_info of former_clonesjamborm
2017-12-22 Martin Jambor <mjambor@suse.cz> PR lto/82027 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check former clones. testsuite/ * g++.dg/lto/pr82027_0.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255983 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22 PR debug/83550jakub
* c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on TYPE_STUB_DECL and call rest_of_type_compilation before processing incomplete vars rather than after it. * c-c++-common/dwarf2/pr83550.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255982 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22 Backported from mainlinejakub
2017-12-21 Jakub Jelinek <jakub@redhat.com> PR c/83448 * gimple-ssa-sprintf.c (maybe_warn): Don't call set_caret_index if navail is >= dir.len. * gcc.c-torture/compile/pr83448.c: New test. * gcc.dg/tree-ssa/builtin-snprintf-warn-4.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255972 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22 Backported from mainlinejakub
2017-12-21 Jakub Jelinek <jakub@redhat.com> PR rtl-optimization/80747 PR rtl-optimization/83512 * cfgrtl.c (force_nonfallthru_and_redirect): When splitting succ edge from ENTRY, copy partition from e->dest to the newly created bb. * bb-reorder.c (reorder_basic_blocks_simple): If last_tail is ENTRY, use BB_PARTITION of its successor block as current_partition. Don't copy partition when splitting succ edge from ENTRY. * gcc.dg/pr80747.c: New test. * gcc.dg/pr83512.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255971 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22 Backported from mainlinejakub
2017-12-21 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/83523 * tree-ssa-math-opts.c (is_widening_mult_p): Return false if for INTEGER_TYPE TYPE_OVERFLOW_TRAPS. (convert_mult_to_fma): Likewise. * g++.dg/tree-ssa/pr83523.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255970 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22 Backported from mainlinejakub
2017-12-21 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/83521 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Use gimple_build_assign without code on result of fold_build1 (VIEW_CONVERT_EXPR, ...), as it might not create a VIEW_CONVERT_EXPR. * gcc.dg/pr83521.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255969 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22 Backported from mainlinejakub
2017-12-19 Jakub Jelinek <jakub@redhat.com> PR ipa/82801 PR ipa/83346 * ipa-inline.c (flatten_remove_node_hook): New function. (ipa_inline): Keep only nodes with flatten attribute at the end of the array in the order from ipa_reverse_postorder, only walk that portion of array for flattening, if there is more than one such node, temporarily register a removal hook and ignore removed nodes. * g++.dg/ipa/pr82801.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255968 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-22Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255964 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-21 PR target/83467uros
* config/i386/i386.md (*ashl<mode>3_mask): Add operand constraints to operand 2. (*<shift_insn><mode>3_mask): Ditto. (*<rotate_insn><mode>3_mask): Ditto. testsuite/ChangeLog: PR target/83467 * gcc.target/i386/pr83467-1.c: New test. * gcc.target/i386/pr83467-2.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255956 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-212017-12-21 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig
Backport from trunk PR fortran/83436 * gfortran.dg/internal_readwrite_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255940 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-21Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255908 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-20Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255847 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-19 Backport from mainlineamker
2017-11-15 Bin Cheng <bin.cheng@arm.com> PR tree-optimization/82726 PR tree-optimization/70754 * tree-predcom.c (order_drefs_by_pos): New function. (combine_chains): Move code setting has_max_use_after to... (try_combine_chains): ...here. New parameter. Sort combined chains according to position information. (tree_predictive_commoning_loop): Update call to above function. (update_pos_for_combined_chains, pcom_stmt_dominates_stmt_p): New. 2017-11-15 Bin Cheng <bin.cheng@arm.com> PR tree-optimization/82726 Revert 2017-01-23 Bin Cheng <bin.cheng@arm.com> PR tree-optimization/70754 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE. (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert combined stmt before it if not NULL. (combine_chains): Process refs reversely and compute dominance point for root ref. Revert 2017-02-23 Bin Cheng <bin.cheng@arm.com> PR tree-optimization/79663 * tree-predcom.c (combine_chains): Process refs in reverse order only for ZERO length chains, and add explaining comment. gcc/testsuite Backport from mainline 2017-11-15 Bin Cheng <bin.cheng@arm.com> PR tree-optimization/82726 * gcc.dg/tree-ssa/pr82726.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255828 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-19Add a tetst for PR middle-end/83471hjl
Backported from mainline PR middle-end/83471 * g++.dg/torture/pr83471.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255822 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-19 PR c++/83116mpolacek
* constexpr.c (cxx_eval_call_expression): Only look into constexpr_call_table if ctx->strict. * g++.dg/cpp1y/constexpr-83116.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255813 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-19RTEMS/PowerPC: Remove 64-bit soft-float multilibsh
gcc/ PR target/83387 * config/rs6000/t-rtems (MULTILIB_REQUIRED): Remove 64-bit soft-float multilib. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255810 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-19SPARC: Make sure that jump is to a label in errata workaroundsh
In some cases the jump could be to a return instruction and in those cases the next_active_insn() function tries to follow an invalid pointer which leads to a crash. This error did not manifest when using a 32-bit version of GCC which is why I did not detect it before. gcc/ * config/sparc/sparc.c (sparc_do_work_around_errata): Make sure the jump is to a label. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255808 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-19Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255794 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-18Daily bump.gccadmin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255770 138bc75d-0d04-0410-961f-82ee72b054a4
2017-12-17 Backport from mainlinedanglin
2017-12-03 John David Anglin <danglin@gcc.gnu.org> * config/pa/pa.c (pa_legitimate_address_p): For scaled indexing, require base operand is a REG_POINTER prior to reload on targets with non-equivalent space registers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@255762 138bc75d-0d04-0410-961f-82ee72b054a4