aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2017-03-21omp-offload.c: translation fixes (PR translation/80001)David Malcolm2-6/+22
gcc/ChangeLog: PR translation/80001 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics more amenable to translation. (oacc_loop_auto_partitions): Likewise. From-SVN: r246326
2017-03-21re PR tree-optimization/80109 (ICE in get_range_info, at tree-ssanames.c:375)Marek Polacek4-4/+38
PR tree-optimization/80109 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info on INTEGRAL_TYPE_P. * gcc.dg/Walloca-14.c: New test. Co-Authored-By: Martin Sebor <msebor@redhat.com> From-SVN: r246325
2017-03-21re PR target/80125 (r246297 causes segfault in reg_used_between_p())Jakub Jelinek4-5/+47
PR target/80125 * combine.c (can_combine_p): Revert the 2017-03-20 change, only check reg_used_between_p between insn and one of succ or succ2 depending on if succ is artificial insn not inserted into insn stream. * gcc.target/powerpc/pr80125.c: New test. Co-Authored-By: Segher Boessenkool <segher@kernel.crashing.org> From-SVN: r246323
2017-03-21re PR fortran/69498 (ICE on disjunct cases with displaced or incomplete ↵Nicolas Koenig2-0/+9
embedded statement) 2017-03-18 Nicolas Koenig <koenigni@student.ethz.ch> PR fortran/69498 * decl.c (add_hidden_procptr_result): Fixed Refs count of the created "ppr@" symbol. 2017-03-18 Nicolas Koenig <koenigni@student.ethz.ch> PR fortran/69498 * gfortran.dg/unexp_attribute.f90: New test From-SVN: r246322
2017-03-21Document gcov-dump and fix installation of gcov-tool (PR gcov-profile/80081).Martin Liska4-2/+112
2017-03-21 Martin Liska <mliska@suse.cz> PR gcov-profile/80081 * Makefile.in: Add gcov-dump and fix installation of gcov-tool. * doc/gcc.texi: Include gcov-dump stuff. * doc/gcov-dump.texi: New file. From-SVN: r246321
2017-03-21Apply temporary fix for PR rtl-optimization/79150.Toma Tabacu2-0/+9
gcc/ PR rtl-optimization/79150 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the conditional jump, if the jump is the last insn of the loop. From-SVN: r246320
2017-03-21re PR tree-optimization/79908 (ICE in gimplify_expr (gimplify.c:12155) ↵Bill Schmidt4-4/+34
gimplification failed) [gcc] 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com> Richard Biener <rguenth@suse.com> PR tree-optimization/79908 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has been cast away, use force_gimple_operand to construct the side effects. [gcc/testsuite] 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com> Richard Biener <rguenther@suse.de> PR tree-optimization/79908 * gcc.dg/torture/pr79908.c: New file. Co-Authored-By: Richard Biener <rguenth@suse.com> Co-Authored-By: Richard Biener <rguenther@suse.de> From-SVN: r246319
2017-03-21Fix failing overflow-1.c for avrSenthil Kumar Selvaraj2-6/+17
The test assumes 32 bit ints, and expects a constant in the dump that is only valid for 32 bit ints. Fix by explicitly specifying __UINT32_TYPE__. gcc/testsuite/ 2017-03-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * gcc.dg/tree-ssa/overflow-1.c: Use __UINT32_TYPE__ for targets with sizeof(int) < 4. From-SVN: r246318
2017-03-21Fix another profiledbootstrap warning (PR libfortran/79956).Martin Liska2-1/+7
2017-03-21 Martin Liska <mliska@suse.cz> PR libfortran/79956 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable to NULL. From-SVN: r246317
2017-03-21Fix dg-error for a testMartin Liska2-1/+6
2017-03-21 Martin Liska <mliska@suse.cz> * gcc.target/i386/pr65044.c: Add '.' in order to catch apostrophes. From-SVN: r246316
2017-03-21re PR plugins/80094 (GCC plugin hash table corruption on hash table ↵Brad Spengler2-5/+27
expansion (>10 plugins) on GCC 4.5+) 2017-03-21 Brad Spengler <spender@grsecurity.net> PR plugins/80094 * plugin.c (htab_hash_plugin): New function. (add_new_plugin): Use it and adjust. (parse_plugin_arg_opt): Adjust. (init_one_plugin): Likewise. From-SVN: r246315
2017-03-21re PR tree-optimization/80032 (C++ excessive stack usage (no stack reuse))Richard Biener4-8/+140
2017-03-21 Richard Biener <rguenther@suse.de> PR tree-optimization/80032 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter, if set force the cleanup to happen unconditionally. (gimplify_target_expr): Push inserted clobbers with force_uncond to avoid them being removed by control-dependent DCE. * g++.dg/opt/pr80032.C: New testcase. From-SVN: r246314
2017-03-21re PR tree-optimization/80122 (__builtin_va_arg_pack() and ↵Richard Biener5-4/+71
__builtin_va_arg_pack_len() does not work correctly) 2017-03-21 Richard Biener <rguenther@suse.de> PR tree-optimization/80122 * tree-inline.c (copy_bb): Do not expans va-arg packs or va_arg_pack_len when the inlined call stmt requires pack expansion itself. * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *. * gcc.dg/torture/pr80122.c: New testcase. From-SVN: r246313
2017-03-21Skip gcc.dg/pic-2.c and gcc.dg/pie-2.c for MIPS.Toma Tabacu3-0/+7
gcc/testsuite/ * gcc.dg/pic-2.c: Skip for MIPS. * gcc.dg/pie-2.c: Skip for MIPS. From-SVN: r246311
2017-03-21re PR c++/77752 (ICE on C++ code on x86_64-linux-gnu (internal compiler ↵Paolo Carlini5-4/+30
error: Segmentation fault, build_list_conv, implicit_conversion)) /cp 2017-03-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/77752 * name-lookup.c (pushtag_1): Add check for bogus, non template, std::initializer_list. /testsuite 2017-03-21 Paolo Carlini <paolo.carlini@oracle.com> PR c++/77752 * g++.dg/cpp0x/initlist97.C: New. * g++.dg/cpp0x/initlist85.C: Update. From-SVN: r246310
2017-03-21re PR sanitizer/78158 (Strange data race detection with thread sanitizer)Jakub Jelinek2-8/+12
PR sanitizer/78158 * tsan.c (instrument_builtin_call): If the memory model argument is not a constant, assume it is valid. From-SVN: r246306
2017-03-21re PR middle-end/67338 (fold-const sanitizer runtime error in roundup_loc)Jakub Jelinek4-1/+14
PR c/67338 * fold-const.c (round_up_loc): Negate divisor in unsigned type to avoid UB. * gcc.dg/pr67338.c: New test. From-SVN: r246305
2017-03-21Fix CL.Marek Polacek1-1/+1
From-SVN: r246304
2017-03-21re PR c++/35878 ([LWG 2302] Useless NULL pointer check when constructing object)Jakub Jelinek6-10/+30
PR c++/35878 * init.c (std_placement_new_fn_p, build_new_1): Formatting fixes. * g++.dg/init/pr35878_1.C: Rewrite directives to scan optimized dump instead of assembler. * g++.dg/init/pr35878_2.C: Likewise. * g++.dg/init/pr35878_3.C: Likewise. From-SVN: r246303
2017-03-21re PR c/80097 (internal compiler error in c_fully_fold_internal with std=c89 ↵Jakub Jelinek4-2/+25
and -fsanitize=float-divide-by-zero) PR c/80097 * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around optional COMPOUND_EXPR with ubsan instrumentation. * gcc.dg/ubsan/pr80097.c: New test. From-SVN: r246302
2017-03-21re PR c++/35878 ([LWG 2302] Useless NULL pointer check when constructing object)Ville Voutilainen5-1/+86
gcc/ PR c++/35878 * cp/init.c (std_placement_new_fn_p): New. (build_new_1): Call it. testsuite/ PR c++/35878 * g++.dg/init/pr35878_1.C: New. * g++.dg/init/pr35878_2.C: Likewise. * g++.dg/init/pr35878_3.C: Likewise. From-SVN: r246301
2017-03-21Daily bump.GCC Administrator1-1/+1
From-SVN: r246300
2017-03-21combine: Fix 79910Segher Boessenkool2-0/+11
If the dest of an I0 or I1 is used in an insn before I2, as can happen in various uncommon cases, and we manage to do the combination, the set is moved to I2, which is wrong. Don't allow combining the insns in this case. PR rtl-optimization/79910 * combine.c (can_combine_p): Do not allow combining an I0 or I1 if its dest is used by an insn before I2 (other than the combined insns themselves, which are properly handled already). From-SVN: r246297
2017-03-21Revert:Segher Boessenkool2-137/+16
2017-03-17 Bernd Schmidt <bschmidt@redhat.com> * combine.c (record_used_regs): New static function. (try_combine): Handle situations where there is an additional instruction between I2 and I3 which needs to have a LOG_LINK updated. Revert: 2017-03-17 Jim Wilson <jim.wilson@linaro.org> * combine.c (try_combine): Delete redundant i1 test. Call prev_nonnote_nondebug_insn instead of prev_nonnote_insn. From-SVN: r246296
2017-03-20* de.po, fr.po: Update.Joseph Myers3-1673/+1474
From-SVN: r246295
2017-03-20re PR target/80083 (libgomp doacross2.f90 regtest fails with -mcpu=power9 -O1)Aaron Sawdey2-1/+7
2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com> PR target/80083 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for alternatives 13/14. From-SVN: r246293
2017-03-20PR c++/80096 - ICE with C++17 non-type auto.Jason Merrill3-0/+18
* pt.c (tsubst): Delay tsubst of type of template non-type parameter. From-SVN: r246292
2017-03-20PR c++/79519 - ICE with deleted template friend.Jason Merrill3-2/+18
* decl.c (grokdeclarator): Complain about misplaced function definition using =, as well. From-SVN: r246291
2017-03-20re PR tree-optimization/80054 (ICE in verify_ssa with -O3 ↵Bill Schmidt4-4/+76
-march=broadwell/skylake-avx512) [gcc] 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR tree-optimization/80054 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail the optimization if a PHI or any of its arguments is not dominated by the candidate's basis. Use gphi* rather than gimple* as appropriate. (replace_profitable_candidates): Clean up a gimple* variable that should be a gphi* variable. [gcc/testsuite] 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR tree-optimization/80054 * g++.dg/torture/pr80054.C: New file. From-SVN: r246290
2017-03-20PR c++/79640 - infinite recursion with generic lambda.Jason Merrill3-0/+24
* pt.c (tsubst_copy) [VAR_DECL]: Register the dummy instantiation before substituting its initializer. From-SVN: r246289
2017-03-20PR c++/52477 - Wrong initialization order __attribute__((constructor)) vs ↵Martin Sebor2-1/+10
static data access * doc/extend.texi (attribute constructor): Document present limitation. From-SVN: r246288
2017-03-20re PR target/79963 (vec_eq_any extracts wrong CR bit when compiling with ↵Kelvin Nilsen9-4/+30
-mcpu=power9) gcc/testsuite/ChangeLog: 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org> PR target/79963 * gcc.target/powerpc/vsu/vec-any-eq-10.c: Add scan-assembler directive to assure selection of proper bit using rlwinm insn. * gcc.target/powerpc/vsu/vec-any-eq-14.c: Likewise. * gcc.target/powerpc/vsu/vec-any-eq-7.c: Likewise. * gcc.target/powerpc/vsu/vec-any-eq-8.c: Likewise. * gcc.target/powerpc/vsu/vec-any-eq-9.c: Likewise. gcc/ChangeLog: 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org> PR target/79963 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and __POWER9_VECTOR__ #ifdef control, change template definition to use Power9-specific built-in function. (vec_any_eq): Likewise. * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used to control outcomes from this test. (vector_ae_<mode>p): For VEC_F modes, likewise. From-SVN: r246287
2017-03-20i386.c (ix86_function_regparm): Save an extra register for -fsplit-stack ↵Ian Lance Taylor2-2/+13
with DECL_STATIC_CHAIN. * config/i386/i386.c (ix86_function_regparm): Save an extra register for -fsplit-stack with DECL_STATIC_CHAIN. From-SVN: r246286
2017-03-20re PR fortran/39239 (Reject SAVEd variables EQUIVALENCEd to a COMMON)Nicolas Koenig1-0/+1
2017-03-12 Nicolas Koenig <koenigni@student.ethz.ch> PR fortran/39239 * symbol.c (check_conflict): report an error if an EQUIVALENCE variable is BIND(C). 2017-03-12 Nicolas Koenig <koenigni@student.ethz.ch> PR fortran/39239 * gfortran.dg/equiv_constraint_bind_c.f90: New test. From-SVN: r246284
2017-03-20RISC-V: Don't prefer FP_REGS for integersPalmer Dabbelt2-13/+6
On RISC-V we can't store integers in floating-point registers as this is forbidden by the ISA. We've always disallowed this, but we were setting the preferred mode to FP_REGS for some integer modes. This caused the LRA to blow up with some hard to read error messages. This patch removes the prefered mode hook, as the right thing to do here is nothing. Thanks to Kito for finding the bug, and mpf for the fix. See also <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79912>. PR target/79912 From-SVN: r246283
2017-03-20Use more conservative fences on RISC-VPalmer Dabbelt3-2/+9
The RISC-V memory model is still in the process of being formally specified, so for now we're going to be safe and add the I/O bits to userspace fences because there's no way to know if userspace is touching memory-mapped I/O regions at compile time. This will have no impact on existing microarchitecutres because they treat all fences conservatively. gcc/ChangeLog: 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com> * config/riscv/riscv.c (riscv_print_operand): Use "fence iorw,ow". * config/riscv/sync.mc (mem_thread_fence_1): Use "fence iorw,iorw". From-SVN: r246282
2017-03-20Disable test inapplicable to RISC-VPalmer Dabbelt1-1/+1
The test is coupled to the branch cost model. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/ssa-thread-14.c: Adjust target selector. From-SVN: r246281
2017-03-20PR c++/80059 - ICE with noexcept and __transaction_atomicMarek Polacek5-0/+41
PR c++/80059 - ICE with noexcept and __transaction_atomic * except.c (build_must_not_throw_expr): Call instantiate_non_dependent_expr_sfinae. * g++.dg/tm/pr80059-2.C: New test. * g++.dg/tm/pr80059.C: New test. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r246279
2017-03-20re PR sanitizer/80063 (gcc/asan.c: PVS-Studio: Incorrect Block Delimitation ↵Marek Polacek2-4/+11
(CWE-483)) PR sanitizer/80063 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0). From-SVN: r246278
2017-03-20re PR tree-optimization/80113 (ICE in set_var_live_on_entry at ↵Richard Biener2-5/+15
tree-ssa-live.c:1018) 2017-03-20 Richard Biener <rguenther@suse.de> PR tree-optimization/80113 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not allocate extra SSA name for PHI def. (add_close_phis_to_outer_loops): Likewise. (add_close_phis_to_merge_points): Likewise. (copy_loop_close_phi_args): Likewise. (copy_cond_phi_nodes): Likewise. From-SVN: r246277
2017-03-20MPX: fix PR middle-end/79753Martin Liska4-5/+31
2017-03-20 Martin Liska <mliska@suse.cz> PR middle-end/79753 * tree-chkp.c (chkp_build_returned_bound): Do not build returned bounds for a LHS that's not a BOUNDED_P type. 2017-03-20 Martin Liska <mliska@suse.cz> PR middle-end/79753 * gcc.target/i386/mpx/pr79753.c: New test. From-SVN: r246276
2017-03-20Fix *_CST ICEs connected to MPX.Martin Liska5-0/+39
2017-03-20 Martin Liska <mliska@suse.cz> PR target/79769 PR target/79770 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST, COMPLEX_CST and VECTOR_CST. 2017-03-20 Martin Liska <mliska@suse.cz> PR target/79769 PR target/79770 * g++.dg/pr79769.C: New test. * gcc.target/i386/mpx/pr79770.c: New test. From-SVN: r246275
2017-03-20S/390: PR78857: Don't use load and test if result is live.Andreas Krebbel5-2/+71
The FP load and test instruction should not be used for a comparison if the target operand is being used afterwards. It unfortunately turns SNaNs into QNaNs. gcc/ChangeLog: 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> PR target/78857 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the target operand. A new splitter adds the clobber statement in case the target operand is dead anyway. gcc/testsuite/ChangeLog: 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> PR target/78857 * gcc.target/s390/load-and-test-fp-1.c: New test. * gcc.target/s390/load-and-test-fp-2.c: New test. From-SVN: r246274
2017-03-19PR c++/80084 - wrong C++17 decomposition by reference of parameter.Jason Merrill3-3/+30
* decl.c (cp_finish_decomp): Don't pull out the DECL_INITIAL of a reference decomposition. From-SVN: r246273
2017-03-19PR c++/80077 - error with constexpr and -fno-elide-constructors.Jason Merrill3-2/+15
* constexpr.c (cxx_eval_call_expression): Set ctx->call while expanding trivial constructor. From-SVN: r246272
2017-03-20Daily bump.GCC Administrator1-1/+1
From-SVN: r246271
2017-03-19install.texi (Specific): No longer refer to age-old versions of binutils and ↵Gerald Pfeifer2-5/+5
glibc. * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer to age-old versions of binutils and glibc. From-SVN: r246266
2017-03-19Kill my doppelg\"angerSegher Boessenkool2-3/+4
* doc/contrib.texi (Contributors): Remove duplicate entry for myself. From-SVN: r246265
2017-03-19Daily bump.GCC Administrator1-1/+1
From-SVN: r246264
2017-03-18* doc/contrib.texi (Contributors): Add Segher Boessenkool.Gerald Pfeifer2-0/+8
From-SVN: r246260