aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2015-06-03re PR middle-end/66375 (wrong code at -O2 and -O3 on x86_64-linux-gnu)Richard Biener4-26/+48
2015-06-03 Richard Biener <rguenther@suse.de> PR tree-optimization/66375 * tree-scalar-evolution.c (follow_ssa_edge_binary): First add to the evolution before following SSA edges. * gcc.dg/torture/pr66375.c: New testcase. From-SVN: r224060
2015-06-03tree-ssa-loop-ivopts.c (dump_iv): New parameter.Bin Cheng2-9/+12
* tree-ssa-loop-ivopts.c (dump_iv): New parameter. (dump_use, dump_cand, find_induction_variables): Pass new argument to dump_iv. (record_use): Preserve the ssa name information in IV. From-SVN: r224058
2015-06-03genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as NO_MODE_TEST.Richard Sandiford2-10/+53
gcc/ * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as NO_MODE_TEST. (add_mode_tests): Don't add mode tests if the predicate only accepts scalar constant integers. Otherwise, allow the mode of "op" to be VOIDmode if the predicate does accept such integers. From-SVN: r224056
2015-06-03pr65447.c: Increase searching number.Bin Cheng2-2/+6
gcc/testsuite * gcc.dg/tree-ssa/pr65447.c: Increase searching number. Also fix date mis-match in ChangeLog. From-SVN: r224055
2015-06-02re PR target/66258 (compiling a stdarg function with arch +nofp generates an ↵Jim Wilson2-5/+16
ICE) gcc/ PR target/66258 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT. (aarch64_secondary_reload): Likewise (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY to !TARGET_FLOAT. (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs): Likewise. From-SVN: r224054
2015-06-03Daily bump.GCC Administrator1-1/+1
From-SVN: r224053
2015-06-02re PR target/65768 (sub-optimimal code for constant Uses in loop)Kugan Vivekanandarajah4-1/+37
gcc/ChangeLog: 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org> Zhenqiang Chen <zhenqiang.chen@linaro.org> PR target/65768 * cprop.c (try_replace_reg): Check cost of constants before propagating. gcc/testsuite/ChangeLog: 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org> PR target/65768 * gcc.target/arm/maskdata.c: Remove -fno-gcse. Co-Authored-By: Zhenqiang Chen <zhenqiang.chen@linaro.org> From-SVN: r224048
2015-06-02Add the PR number that I forgot in m y previous commit.Steven G. Kargl2-0/+2
From-SVN: r224044
2015-06-02simplify.c (gfc_simplify_reshape): Convert assert into returning NULL, which ↵Steven G. Kargl4-2/+31
triggers an error condition. 2015-06-02 Steven G. Kargl <kargl@gcc.gnu.org> * simplify.c (gfc_simplify_reshape): Convert assert into returning NULL, which triggers an error condition. 2015-06-02 Steven G. Kargl <kargl@gcc.gnu.org> * gfortran.dg/reshape_7.f90: New test. From-SVN: r224043
2015-06-02rs6000-modes.def (IFmode): Define IFmode to provide access to the IBM ↵Michael Meissner6-0/+122
extended double floating point mode... 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com> * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to provide access to the IBM extended double floating point mode if long double is IEEE 128-bit floating point. (KFmode): Define KFmode to provide access to IEEE 128-bit floating point if long double is the IBM extended double type. * config/rs6000/rs6000.opt (-mfloat128-none): New switches to enable adding IEEE 128-bit floating point support. (-mfloat128-software): Likewise. (-mfloat128-sw): Likewise. * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow 128-bit floating point types to occupy any register if -mlong-double-64. Do not allow use of IFmode/KFmode unless -mfloat128-software is enabled. (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug support. (rs6000_option_override_internal): Add -mfloat128-* support. (rs6000_init_builtins): Setup __ibm128 and __float128 type modes. * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128 and float128 type nodes. (ieee128_float_type_node): Likewise. (ibm128_float_type_node): Likewise. From-SVN: r224042
2015-06-02PR c/66220: Fix false positive from -Wmisleading-indentationDavid Malcolm4-8/+70
gcc/c-family/ChangeLog: PR c/66220: * c-indentation.c (should_warn_for_misleading_indentation): Use expand_location rather than expand_location_to_spelling_point. Don't warn if the guarding statement is more indented than the next/body stmts. gcc/testsuite/ChangeLog: PR c/66220: * c-c++-common/Wmisleading-indentation.c (fn_35): New. (fn_36): New. From-SVN: r224041
2015-06-02Avoid unnecessary work when -Wmisleading-indentation isn't enabledDavid Malcolm2-0/+11
gcc/c-family/ChangeLog: * c-indentation.c (warn_for_misleading_indentation): Bail out immediately if -Wmisleading-indentation isn't enabled. From-SVN: r224040
2015-06-02* g++.dg/warn/Wsystem-headers1.C: Use extern "C".Jason Merrill1-1/+1
From-SVN: r224038
2015-06-02cp-tree.h (init_error): Remove declaration.Patrick Palka4-14/+11
* cp-tree.h (init_error): Remove declaration. * error.c (scratch_pretty_printer): Rename to ... (actual_pretty_printer): ... this. (cxx_pp): Constify and update accordingly. (init_error): Remove definition. * lex.c (cxx_init): Do not call init_error. From-SVN: r224037
2015-06-02re PR target/49551 (tentative declaration after definition and ↵Prathamesh Kulkarni4-0/+23
-fdata-sections cause ICE in C front-end.) 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> PR c/49551 * c-decl.c (merge_decls): Merge DECL_COMMON. * gcc.dg/pr49551.c: New test-case. From-SVN: r224033
2015-06-02[AArch64][PR 66136] rewrite geniterators.sh in awkSzabolcs Nagy2-20/+52
2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com> PR target/66136 * config/aarch64/geniterators.sh: Rewrite in awk. From-SVN: r224031
2015-06-02Pool allocator fallout: fix uninialized class members.Martin Liska2-4/+8
* alloc-pool.h (pool_allocator::pool_allocator): Set implicit values to avoid -Wmaybe-uninitialized errors. From-SVN: r224030
2015-06-02re PR debug/65549 (crash in htab_hash_string with -flto -g)Richard Biener4-3/+193
2015-06-02 Richard Biener <rguenther@suse.de> PR debug/65549 * dwarf2out.c (lookup_context_die): New function. (resolve_addr): Avoid forcing a full DIE for the target of a DW_TAG_GNU_call_site during late compilation. Instead create a stub DIE without a type if we have a context DIE present. * g++.dg/lto/pr65549_0.C: New testcase. From-SVN: r224029
2015-06-02[PR libgomp/65742, PR middle-end/66332] XFAIL acc_on_device compile-time ↵Thomas Schwinge2-1/+15
evaluation The OpenACC 2.0a specification mandates differently, but we currently do get a library call in the host code. PR libgomp/65742 PR middle-end/66332 gcc/testsuite/ * c-c++-common/goacc/acc_on_device-2.c: XFAIL for C, too. From-SVN: r224028
2015-06-02mangle-regparm.C (dg-do): Fix x86_32 target selector.Uros Bizjak2-1/+5
* g++.dg/abi/mangle-regparm.C (dg-do): Fix x86_32 target selector. From-SVN: r224026
2015-06-02re PR c++/61683 (decltype-specifier not accepted as mem-initializer-id)Paolo Carlini4-11/+34
/cp 2015-06-02 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61683 * parser.c (cp_parser_mem_initializer): Allow for decltype-specifier. /testsuite 2015-06-02 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61683 * g++.dg/cpp0x/decltype-mem-initializer1.C: New. From-SVN: r224022
2015-06-02df-scan.c (df_scan_start_dump): Add space between regno and regname.Uros Bizjak2-18/+33
* df-scan.c (df_scan_start_dump): Add space between regno and regname. From-SVN: r224021
2015-06-02re PR tree-optimization/48052 (loop not vectorized if index is "unsigned int")Bin Cheng9-61/+397
PR tree-optimization/48052 * cfgloop.h (struct control_iv): New. (struct loop): New field control_ivs. * tree-ssa-loop-niter.c : Include "stor-layout.h". (number_of_iterations_lt): Set no_overflow information. (number_of_iterations_exit): Init control iv in niter struct. (record_control_iv): New. (estimate_numbers_of_iterations_loop): Call record_control_iv. (loop_exits_before_overflow): New. Interface factored out of scev_probably_wraps_p. (scev_probably_wraps_p): Factor loop niter related code into loop_exits_before_overflow. (free_numbers_of_iterations_estimates_loop): Free control ivs. * tree-ssa-loop-niter.h (free_loop_control_ivs): New. gcc/testsuite/ChangeLog PR tree-optimization/48052 * gcc.dg/tree-ssa/scev-8.c: New. * gcc.dg/tree-ssa/scev-9.c: New. * gcc.dg/tree-ssa/scev-10.c: New. * gcc.dg/vect/pr48052.c: New. From-SVN: r224020
2015-06-02gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if the ↵Eric Botcazou4-3/+14
target doesn't belong to the current... * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if the target doesn't belong to the current function. From-SVN: r224019
2015-06-02vect-outer-simd-1.c: Remove cleanup-tree-dump directive.Uros Bizjak2-1/+4
* gcc.dg/vect/vect-outer-simd-1.c: Remove cleanup-tree-dump directive. From-SVN: r224018
2015-06-02re PR middle-end/66345 (internal compiler error: Segmentation fault)Marek Polacek4-1/+22
PR middle-end/66345 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if get_maxval_strlen does not produce an INTEGER_CST. * gcc.dg/torture/pr66345.c: New test. From-SVN: r224016
2015-06-02constraints.md: Use lower-case names in match_code.Richard Sandiford3-9/+14
gcc/ * config/arc/constraints.md: Use lower-case names in match_code. * config/mmix/constraints.md: Likewise. From-SVN: r224014
2015-06-02re PR tree-optimization/65961 (ice in vect_is_simple_use_1 with -O3)Richard Biener5-39/+78
2015-06-02 Richard Biener <rguenther@suse.de> PR tree-optimization/65961 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus check and clarify dump message. (vect_build_slp_tree): If all children are built up from scalars build up the parent from scalars instead. * tree-vect-stmts.c (vect_is_simple_use): Cleanup. * gcc.dg/torture/pr65961.c: New testcase. From-SVN: r224013
2015-06-02re PR other/65366 (gdbhooks.py is incompatible with Python3)Jan Kratochvil2-32/+38
PR other/65366 * gdbhooks.py: Use int(...) instead of long(...). Use print(...) instead of print ... . From-SVN: r224012
2015-06-02vsx.md (vsx_extract_v4sf): Revert accidental 2014-08-11 change.Alan Modra2-4/+9
* config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental 2014-08-11 change. From-SVN: r224010
2015-06-02re PR testsuite/52563 (FAIL: gcc.dg/tree-ssa/scev-[3,4].c ↵Bin Cheng9-139/+209
scan-tree-dump-times optimized "&a" 1) PR tree-optimization/52563 PR tree-optimization/62173 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields. (alloc_iv, set_iv): New parameter. (determine_biv_step): Delete. (find_bivs): Inline original determine_biv_step. Pass new argument to set_iv. (idx_find_step): Use no_overflow information for conversion. * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let resolve_mixers handle folded_casts. (instantiate_scev_name): Change bool parameter to bool pointer. (instantiate_scev_poly, instantiate_scev_binary): Ditto. (instantiate_array_ref, instantiate_scev_not): Ditto. (instantiate_scev_3, instantiate_scev_2): Ditto. (instantiate_scev_1, instantiate_scev_r): Ditto. (instantiate_scev_convert, ): Change parameter. Pass argument to chrec_convert_aggressive. (instantiate_scev): Change argument. (resolve_mixers): New parameter and set it. (scev_const_prop): New argument. * tree-scalar-evolution.h (resolve_mixers): New parameter. * tree-chrec.c (convert_affine_scev): Call chrec_convert instead of chrec_conert_1. (chrec_convert): New parameter. Move definition below. (chrec_convert_aggressive): New parameter and set it. Call convert_affine_scev. * tree-chrec.h (chrec_convert): New parameter. (chrec_convert_aggressive): Ditto. gcc/testsuite/ChangeLog PR tree-optimization/52563 PR tree-optimization/62173 * gcc.dg/tree-ssa/scev-3.c: Remove xfail. * gcc.dg/tree-ssa/scev-4.c: Ditto. From-SVN: r224009
2015-06-01re PR c++/65942 ([C++14] cannot use std::function as comparator in algorithms)Jason Merrill4-2/+21
PR c++/65942 * decl2.c (mark_used): Don't always instantiate constexpr fns. * constexpr.c (cxx_eval_call_expression): Instantiate them here. From-SVN: r224008
2015-06-01re PR c++/44282 (fastcall is not mangled at all)Jason Merrill6-7/+112
PR c++/44282 gcc/cp/ * mangle.c (attr_strcmp): New. (write_CV_qualifiers_for_type): Also write out attributes that affect type identity. (write_type): Strip all attributes after writing qualifiers. libiberty/ * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor extended qualifier. From-SVN: r224007
2015-06-02Daily bump.GCC Administrator1-1/+1
From-SVN: r224006
2015-06-01gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.Eric Botcazou9-16/+85
* gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size. * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove the LHS of a no-return call if its type has variable size. * tree-cfgcleanup.c (fixup_noreturn_call): Likewise. * tree-cfg.c (verify_gimple_call): Accept these no-return calls. From-SVN: r223997
2015-06-01read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.Andreas Tobler3-12/+18
2015-06-01 Andreas Tobler <andreast@gcc.gnu.org> * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL. * config.in: Regenerate. From-SVN: r223996
2015-06-01tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow consecutive ↵Yuri Rumyantsev4-3/+92
accesses within outer-loop with force_vectorize for... gcc/ * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow consecutive accesses within outer-loop with force_vectorize for references with zero step in inner-loop. gcc/testsuite/ * gcc.dg/vect/vect-outer-simd-1.c: New test. From-SVN: r223993
2015-06-01Makefile.in: Pick up gcov-dump dependencies from gcc/ directory rather than ↵Vidya Praveen2-1/+6
from gcc/build... 2015-06-01 Vidya Praveen <vidyapraveen@arm.com> * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory rather than from gcc/build directory. From-SVN: r223992
2015-06-01Fix Changelog entry.Martin Liska1-1/+1
From-SVN: r223988
2015-06-01re PR target/65697 (__atomic memory barriers not strong enough for __sync ↵Matthew Wahab9-0/+142
builtins) PR target/65697 * gcc.target/aarch64/sync-comp-swap.c: New. * gcc.target/aarch64/sync-comp-swap.x: New. * gcc.target/aarch64/sync-op-acquire.c: New. * gcc.target/aarch64/sync-op-acquire.x: New. * gcc.target/aarch64/sync-op-full.c: New. * gcc.target/aarch64/sync-op-full.x: New. * gcc.target/aarch64/sync-op-release.c: New. * gcc.target/aarch64/sync-op-release.x: New. From-SVN: r223986
2015-06-01re PR target/65697 (__atomic memory barriers not strong enough for __sync ↵Matthew Wahab2-2/+23
builtins) PR target/65697 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check for __sync memory models, emit initial loads and final barriers as appropriate. From-SVN: r223984
2015-06-01re PR target/65697 (__atomic memory barriers not strong enough for __sync ↵Matthew Wahab2-1/+37
builtins) PR target/65697 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New. (aarch64_split_atomic_op): Check for __sync memory models, emit appropriate initial loads and final barriers. From-SVN: r223983
2015-06-01thumb-ltu.c (foo): Predefined.Alex Velenko2-0/+8
2015-06-01 Alex Velenko <Alex.Velenko@arm.com> * gcc.target/arm/thumb-ltu.c (foo): Predefined. (bar): Predefined. From-SVN: r223982
2015-06-01Fix Makefile dependencies.Vidya Praveen2-1/+6
* Makefile.in: Fix gcov dependencies that should not point to a build folder. From-SVN: r223981
2015-06-01re PR tree-optimization/66349 (ICE on valid code at -O1, -O2 and -O3 on ↵Richard Biener4-0/+84
x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195) 2015-06-01 Richard Biener <rguenther@suse.de> PR tree-optimization/66349 PR tree-optimization/66352 PR tree-optimization/66357 * gcc.dg/torture/pr66357.c: New testcase. * gcc.dg/torture/pr66349.c: Likewise. * gfortran.fortran-torture/compile/pr66352.f90: Likewise. From-SVN: r223980
2015-06-01revert: re PR middle-end/66314 (ice in verify_loop_structure)Richard Biener4-50/+26
2015-06-01 Richard Biener <rguenther@suse.de> Revert 2015-05-29 Richard Biener <rguenther@suse.de> PR tree-optimization/66314 * tree-ssa-threadupdate.c (create_block_for_threading): Add parameter that says which loop the new block belongs to. (ssa_create_duplicates): Blocks duplicated for the threaded path belong to the loop of the thread destination. * gcc.dg/asan/pr66314.c: New testcase. From-SVN: r223979
2015-06-01Fix pool_allocator fallback.Martin Liska2-0/+6
* sched-deps.c: Include pool-alloc.h before cselib.h header file is included. From-SVN: r223978
2015-06-01tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken functions.Richard Biener4-6/+19
2015-06-01 Richard Biener <rguenther@suse.de> * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken functions. * gcc.dg/ipa/ipa-pta-1.c: Adjust. From-SVN: r223977
2015-06-01* sv.po: Update.Joseph Myers2-363/+244
From-SVN: r223975
2015-06-01Small pool-allocator fallback.Martin Liska2-1/+6
* alloc-pool.h: Add ATTRIBUTE_UNUSED for a function local variabled. From-SVN: r223974