aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2016-01-23Fix clobber removal in parloopsTom de Vries4-0/+31
2016-01-23 Tom de Vries <tom@codesourcery.com> PR tree-optimization/69426 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of removed clobber. * gcc.dg/autopar/pr69426.c: New test. From-SVN: r232767
2016-01-23PR c++/58109 - alignas() fails to compile with constant expressionMartin Sebor5-5/+112
PR c++/58109 - alignas() fails to compile with constant expression PR c++/69022 - attribute vector_size ignored with dependent bytes gcc/testsuite/ChangeLog: 2016-01-23 Martin Sebor <msebor@redhat.com> PR c++/58109 PR c++/69022 * g++.dg/cpp0x/alignas5.C: New test. * g++.dg/ext/vector29.C: Same. gcc/cp/ChangeLog: 2016-01-23 Martin Sebor <msebor@redhat.com> PR c++/58109 PR c++/69022 * decl2.c (is_late_template_attribute): Handle dependent argument to attribute align and attribute vector_size. From-SVN: r232766
2016-01-23tree-ssanames.c (release_free_names_and_compact_live_names): Replace "the ↵Jakub Jelinek12-15/+30
the" with "the" in the comments. * tree-ssanames.c (release_free_names_and_compact_live_names): Replace "the the" with "the" in the comments. * ipa-devirt.c (build_type_inheritance_graph, update_type_inheritance_graph): Likewise. * tree.c (build_function_type_list_1): Likewise. * cfgloopmanip.c (scale_loop_profile): Likewise. * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise. * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_paths): Likewise. * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise. * expr.c (convert_move): Likewise. * var-tracking.c (vt_stack_adjustments): Likewise. * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise. * tree-vrp.c (test_for_singularity): Likewise. From-SVN: r232765
2016-01-23tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR directly ↵Jakub Jelinek2-7/+8
instead of building a temporary tree. * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR directly instead of building a temporary tree. From-SVN: r232764
2016-01-23re PR bootstrap/69434 (bootstrap failed with --with-arch=corei7 ↵Jakub Jelinek2-1/+7
--with-cpu=corei7) PR bootstrap/69434 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h, remove <algorithm> include. From-SVN: r232763
2016-01-23chkp-strlen-2.c: Define _GNU_SOURCE.Uros Bizjak7-10/+26
* gcc.target/i386/chkp-strlen-2.c: Define _GNU_SOURCE. * gcc.target/i386/chkp-strlen-4.c: Move the definition of _GNU_SOURCE from compile flags to the source. * gcc.target/i386/chkp-stropt-12.c: Ditto. * gcc.target/i386/chkp-stropt-16.c: Ditto. * gcc.target/i386/chkp-stropt-4.c: Ditto. * gcc.target/i386/chkp-stropt-8.c: Ditto. From-SVN: r232762
2016-01-23Daily bump.GCC Administrator1-1/+1
From-SVN: r232760
2016-01-23re PR other/69432 (ICE in connect_traces, at dwarf2cfi.c with -O3 -m32 ↵Jakub Jelinek4-3/+88
-minline-stringops-dynamically) PR target/69432 * config/i386/i386.c: Include dojump.h. (expand_small_movmem_or_setmem, expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling fixes. (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early if dynamic_check != -1. * g++.dg/opt/pr69432.C: New test. From-SVN: r232754
2016-01-22Fix ChangeLog entry in wrong fileWilliam Schmidt2-5/+5
From-SVN: r232750
2016-01-22re PR c++/69392 (G++ can't capture 'this' pointer to templated type using ↵Jason Merrill3-9/+32
init-capture) PR c++/69392 * lambda.c (lambda_capture_field_type): Handle 'this' specially for init-capture, too. From-SVN: r232746
2016-01-22re PR tree-optimization/69347 (excessive compile time with -O2)Jeff Law2-48/+91
PR middle-end/69347 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of record_temporary_equivalences. Rewritten to avoid unnecessary calls into dominated_by_p. (cprop_into_successor_phis): Avoid unnecessary tests. From-SVN: r232745
2016-01-22pr63354c: Adjust target selector to include 32-bit targets testing an -m64 ↵Bill Schmidt2-1/+6
multilib. 2016-01-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.target/powerpc/pr63354c: Adjust target selector to include 32-bit targets testing an -m64 multilib. From-SVN: r232744
2016-01-22- fix a ChangeLog entryBernd Edlinger1-1/+1
From-SVN: r232743
2016-01-22re PR target/69416 (Nonsense rtl checking failure)Richard Henderson2-3/+10
PR target/69416 * config/aarch64/aarch64.md (UNSPEC_NZCV): New. (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it. From-SVN: r232737
2016-01-22system.h (string, algorithm): Include only conditionally.Michael Matz9-1/+28
* system.h (string, algorithm): Include only conditionally. (new): Include always under C++. * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM. * final.c (toplevel): Ditto. * ipa-chkp.c (toplevel): Define INCLUDE_STRING. * genconditions.c (write_header): Make gencondmd.c define INCLUDE_STRING. * mem-stats.h (mem_usage::print_dash_line): Don't use std::string. * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING. * common/config/aarch64/aarch64-common.c (toplevel): Ditto. From-SVN: r232736
2016-01-22pr63354.c: Restrict to Linux targets with 64-bit support.Bill Schmidt2-1/+7
2016-01-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.target/powerpc/pr63354.c: Restrict to Linux targets with 64-bit support. From-SVN: r232732
2016-01-22[Patch Obvious] gcc.dg/vect/bb-slp-pr68892.c requires vectorization of doublesJames Greenhalgh2-0/+5
gcc/testsuite/ * gcc.dg/vect/bb-slp-pr68892.c: Require vect_double. From-SVN: r232731
2016-01-22[multiple changes]Christian Bruel6-1/+85
2016-01-22 Christian Bruel <christian.bruel@st.com> PR target/68674 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed. // testsuite 2016-01-21 Christian Bruel <christian.bruel@st.com> PR target/68674 * gcc.target/i386/pr68674.c * gcc.target/aarch64/pr68674.c * gcc.target/arm/pr68674.c From-SVN: r232728
2016-01-22[ARM] Fix PR target/69403: Bug in thumb2_ior_scc_strict_it patternKyrylo Tkachov4-6/+50
PR target/69403 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to define_insn_and_split. Ensure operands[1] and operands[0] do not get assigned the same register. * gcc.c-torture/execute/pr69403.c: New test. From-SVN: r232727
2016-01-22ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.Kugan Vivekanandarajah2-3/+4
gcc/ChangeLog: 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org> * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr. From-SVN: r232725
2016-01-22missed : in logChristian Bruel1-1/+1
From-SVN: r232724
2016-01-222016-01-22 Christian Bruel <christian.bruel@st.com>Christian Bruel2-4/+5
* config/arm/arm-c.c (arm_pragma_target_parse) Remove warn_builtin_macro_redefined overwrite. From-SVN: r232723
2016-01-22ipa-inline.c (can_inline_edge_p): Back out overzealous check on ↵Eric Botcazou2-6/+7
flag_non_call_exceptions compatibility. * ipa-inline.c (can_inline_edge_p): Back out overzealous check on flag_non_call_exceptions compatibility. From-SVN: r232722
2016-01-22re PR c++/55843 (ICE after exceeding template instantiation depth)Paolo Carlini2-0/+32
2016-01-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/55843 * g++.dg/template/pr55843.C: New. From-SVN: r232721
2016-01-22[Testsuite] Fix PR66877Alan Lawrence2-1/+8
* gcc.dg/vect/vect-over-widen-3-big-array.c: Only look for 1 vect_recog_over_widening_pattern in dump if we have vect_widen_shift. From-SVN: r232720
2016-01-22re PR debug/66668 (FAIL: gcc.dg/debug/dwarf2/stacked-qualified-types-3.c ↵Jakub Jelinek2-12/+148
scan-assembler-times DIE \\([^\n]*\\) DW_TAG_(?:const|volatile|atomic|restrict)_type 8) PR debug/66668 * dwarf2out.c (add_child_die_after): New function. (dwarf_qual_info_t): New type. (dwarf_qual_info): New variable. (qualified_die_p): New function. (modified_type_die): For -fdebug-types-section, ensure canonical order of qualifiers. Put qualified DIEs adjacent to the corresponding non-qualified type DIE and search there for existing qualified DIEs. From-SVN: r232719
2016-01-22extend.texi (scalar_storage_order type attribute): Document restriction on ↵Eric Botcazou2-5/+14
type punning and aliasing, and remove future tense. * doc/extend.texi (scalar_storage_order type attribute): Document restriction on type punning and aliasing, and remove future tense. From-SVN: r232718
2016-01-22re PR testsuite/67489 (FAIL: gcc.target/powerpc/p8vector-builtin-8.c (test ↵Bill Schmidt2-1/+9
for excess errors)) 2016-01-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR testsuite/67489 * gcc.target/powerpc/p8vector-builtin-8.c: Remove { target int128 } from dg-do compile directive, and instead add { dg-require-effective-target int128 }. From-SVN: r232717
2016-01-22Daily bump.GCC Administrator1-1/+1
From-SVN: r232716
2016-01-21PR c/69405 - [6 Regression] ICE in c_tree_printer on an invalidMartin Sebor4-3/+132
PR c/69405 - [6 Regression] ICE in c_tree_printer on an invalid __atomic_fetch_add gcc/testsuite/ChangeLog: 2016-01-20 Martin Sebor <msebor@redhat.com> PR c/69405 * gcc.dg/sync-fetch.c: New test. gcc/c-family/ChangeLog: 2016-01-20 Martin Sebor <msebor@redhat.com> PR c/69405 * c-common.c (sync_resolve_size): Avoid printing diagnostic about an incompatible argument when the argument isn't a valid tree node. From-SVN: r232713
2016-01-21re PR target/69252 (gcc.dg/vect/vect-iv-9.c FAILs with -Os -fmodulo-sched ↵Jeff Law4-1/+45
-fmodulo-sched-allow-regmoves -fsched-pressure) PR target/69252 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new first stage. PR target/69252 * gcc.target/powerpc/pr69252.c: New test. From-SVN: r232712
2016-01-21[PATCH] [PR tree-optimization/69347] Fix memory consumption in threader & ↵Jeff Law3-5/+12
minor speed improvement PR middle-end/69347 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid useless call to record_temporary_equivalences. * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just allocate 10 slots in the bb_path vector and let it grow as needed. (fsm_find_control_statement_thread_paths): Similarly for the next_path vector. From-SVN: r232711
2016-01-21re PR fortran/65996 (gfortran ICE with -dH)Jerry DeLisle4-2/+34
2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/65996 * error.c (gfc_error): Save the state of abort_on_error and set it to false for buffered errors to allow normal processing. Restore the state before leaving. 2016-01-21 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/65996 gfortran.dg/pr65996.f90: New test. From-SVN: r232707
2016-01-21re PR c++/68810 (FAIL: g++.dg/cpp0x/constexpr-reinterpret1.C -- test for ↵Dominik Vogt2-4/+8
errors -- -m32) PR c++/68810 * g++.dg/cpp0x/constexpr-reinterpret1.C: Fix line number that is expected to generate an error. From-SVN: r232705
2016-01-21re PR c++/59281 (attribute((constructor)) accepts enum class as integer ↵Jason Merrill1-0/+5
constant) PR c++/59281 * g++.dg/ext/attr-constructor1.C: New. From-SVN: r232704
2016-01-21re PR c++/65687 (Inconsistent behavior for __attribute__((__deprecated__)) ↵Jason Merrill3-3/+24
between C and C++.) PR c++/65687 * decl.c (type_is_deprecated): Don't look into a typedef. From-SVN: r232703
2016-01-21re PR c++/40751 (G++ never packs typedef'd enums)Jason Merrill3-2/+16
PR c++/40751 PR c++/64987 * decl.c (copy_type_enum): Respect TYPE_USER_ALIGN. From-SVN: r232702
2016-01-21re PR c++/43407 (Specifying visibility attribute of C++0x enum class emits ↵Jason Merrill7-60/+133
warning) PR c++/43407 * decl.c (start_enum): Add attributes parameter. * parser.c (cp_parser_enum_specifier): Pass it. * pt.c (lookup_template_class_1): Pass it. * cp-tree.h: Adjust. From-SVN: r232701
2016-01-21Record configure regenerateDavid Edelsohn1-0/+1
From-SVN: r232698
2016-01-21configure.ac (gcc_cv_as_powerpc_mfcrf, [...]): Detangle.David Edelsohn3-8/+23
* configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive): Detangle. From-SVN: r232697
2016-01-21aix71.h (ASM_CPU_SPEC): Add entry for Power9.Pat Haugen3-0/+8
* config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9. * config/rs6000/driver-rs6000.c (struct asm_names): Likewise. From-SVN: r232694
2016-01-21Fix missed comment fix in last change.Bernd Schmidt1-3/+3
From-SVN: r232690
2016-01-21Fix PR66178, ICE due to misexpansion of constant expressions involving labels.Bernd Schmidt7-7/+56
PR middle-end/66178 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't drop EXPAND_INITIALIZER. * rtl.h (contains_symbolic_reference_p): Declare. * rtlanal.c (contains_symbolic_reference_p): New function. * simplify-rtx.c (simplify_binary_operation_1): Don't turn a subtraction into a NOT if symbolic constants are involved. testsuite/ PR middle-end/66178 gcc.dg/torture/pr66178.c: New test. From-SVN: r232689
2016-01-21re PR target/63354 (gcc -pg -mprofile-kernel creates unused stack frames on ↵Anton Blanchard5-0/+37
leaf functions on ppc64le) [gcc] 2016-01-21 Anton Blanchard <anton@samba.org> Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/63354 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New #define. * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New function. [gcc/testsuite] 2016-01-21 Anton Blanchard <anton@samba.org> Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/63354 * gcc.target/powerpc/pr63354.c: New test. Co-Authored-By: Bill Schmidt <wschmidt@linux.vnet.ibm.com> From-SVN: r232684
2016-01-21Issue wic prefetch instruction at call site. Ajit Agarwal4-0/+183
This optimization is enabled with microblaze target flag mxl-prefetch. From-SVN: r232683
2016-01-21Mark r20 as fixed. Mark r21 not fixed & allocatable in callee.Ajit Agarwal2-2/+8
From-SVN: r232682
2016-01-21re PR rtl-optimization/68920 (Undesirable if-conversion for a rarely taken ↵Yuri Rumyantsev2-1/+9
branch) gcc/ 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com> PR rtl-optimization/68920 * ifcvt.c (cond_move_process_if_block): Limit number of conditional moves. From-SVN: r232680
2016-01-21re PR rtl-optimization/68990 (wrong code at -O3 on x86_64-pc-linux-gnu in ↵Vladimir Makarov4-15/+70
32-bit mode.) 2016-01-21 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/68990 * lra-coalesce.c (lra_coalesce): Invalidate value for the result pseudo instead of inheritance ones. 2016-01-21 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/68990 * gcc.target/i386/pr68990: New. From-SVN: r232679
2016-01-21Fix typoDavid Edelsohn2-2/+0
From-SVN: r232675
2016-01-21re PR target/69129 (ICE in get_attr_got, at config/mips/mips.md:694 on ↵Nick Clifton4-8/+63
mips-linux-gnu) PR target/69129 PR target/69012 * config/mips/mips.c (mips_compute_frame_info): Initialise args_size and hard_frame_pointer_offset fields of the frame structure before calling mips_global_pointer. PR target/69129 * gcc.target/mips/pr69129.c: New. From-SVN: r232674