aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-03-30Forward-port gcc.target/i386/avx-vextractf128-256-5.c from 5 branch (PR ↵Rainer Orth2-0/+25
testsuite/70356) Forward-port from 5 branch 2016-03-30 Jakub Jelinek <jakub@redhat.com> PR testsuite/70356 * gcc.target/i386/avx-vextractf128-256-5.c: Move dg-require-effective-target after dg-do. 2015-12-30 Kirill Yukhin <kirill.yukhin@intel.com> * gcc.target/i386/avx-vextractf128-256-5.c: New test. From-SVN: r234580
2016-03-30Update OpenACC test casesThomas Schwinge77-1112/+7134
gcc/testsuite/ * c-c++-common/goacc/combined-directives.c: Clean up dg-* directives. * c-c++-common/goacc/loop-clauses.c: Likewise. * g++.dg/goacc/template.C: Likewise. * gfortran.dg/goacc/combined-directives.f90: Likewise. * gfortran.dg/goacc/loop-1.f95: Likewise. * gfortran.dg/goacc/loop-5.f95: Likewise. * gfortran.dg/goacc/loop-6.f95: Likewise. * gfortran.dg/goacc/loop-tree-1.f90: Likewise. * c-c++-common/goacc-gomp/nesting-1.c: Update. * c-c++-common/goacc-gomp/nesting-fail-1.c: Likewise. * c-c++-common/goacc/clauses-fail.c: Likewise. * c-c++-common/goacc/parallel-1.c: Likewise. * c-c++-common/goacc/reduction-1.c: Likewise. * c-c++-common/goacc/reduction-2.c: Likewise. * c-c++-common/goacc/reduction-3.c: Likewise. * c-c++-common/goacc/reduction-4.c: Likewise. * c-c++-common/goacc/routine-3.c: Likewise. * c-c++-common/goacc/routine-4.c: Likewise. * c-c++-common/goacc/routine-5.c: Likewise. * c-c++-common/goacc/tile.c: Likewise. * g++.dg/goacc/template.C: Likewise. * gfortran.dg/goacc/combined-directives.f90: Likewise. * c-c++-common/goacc/nesting-1.c: Move dg-error test cases into... * c-c++-common/goacc/nesting-fail-1.c: ... this file. Update. * c-c++-common/goacc/kernels-1.c: Update. Incorporate... * c-c++-common/goacc/kernels-empty.c: ... this file, and... * c-c++-common/goacc/kernels-eternal.c: ... this file, and... * c-c++-common/goacc/kernels-noreturn.c: ... this file. * c-c++-common/goacc/host_data-1.c: New file. Incorporate... * c-c++-common/goacc/use_device-1.c: ... this file. * c-c++-common/goacc/host_data-2.c: New file. Incorporate... * c-c++-common/goacc/host_data-5.c: ... this file, and... * c-c++-common/goacc/host_data-6.c: ... this file. * c-c++-common/goacc/loop-2-kernels.c: New file. * c-c++-common/goacc/loop-2-parallel.c: Likewise. * c-c++-common/goacc/loop-3.c: Likewise. * g++.dg/goacc/reference.C: Likewise. * g++.dg/goacc/routine-1.C: Likewise. * g++.dg/goacc/routine-2.C: Likewise. libgomp/ * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update. * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise. * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise. * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise. * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise. * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise. XFAIL. * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update. Incorporate... * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this file. * testsuite/libgomp.oacc-c++/template-reduction.C: New file. * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/private-variables.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise. * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise. * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise. * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this file... * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this file into... * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new file. Update. * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New file. * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to... * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: ... this new file. Update. * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to... * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: ... this new file. Update. * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New file. Incorporate... * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this file, and... * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this file, and... * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this file. * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file. Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com> Co-Authored-By: Chung-Lin Tang <cltang@codesourcery.com> Co-Authored-By: James Norris <jnorris@codesourcery.com> Co-Authored-By: Julian Brown <julian@codesourcery.com> Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com> Co-Authored-By: Tom de Vries <tom@codesourcery.com> From-SVN: r234575
2016-03-30tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic ↵Jan Hubicka5-6/+25
estimates here. * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic estimates here. * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also max_loop_iterations_int. (tree_unswitch_outer_loop): Likewise. * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise. * tree-vect-loop.c (vect_analyze_loop_2): Likewise. From-SVN: r234572
2016-03-30re PR target/70450 (Wrong code with -O0 and -O1.)Richard Biener4-2/+34
2016-03-30 Richard Biener <rguenther@suse.de> PR middle-end/70450 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage. * gcc.dg/torture/pr70450.c: New testcase. From-SVN: r234571
2016-03-30re PR target/70421 (wrong code with v16si vector and useless cast at -O ↵Jakub Jelinek5-2/+56
-mavx512f) PR target/70421 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order in gen_blendm expander. * gcc.dg/torture/pr70421.c: New test. * gcc.target/i386/avx512f-pr70421.c: New test. From-SVN: r234569
2016-03-30re PR target/62254 (gcc-4.9 ICEs on linux kernel zlib for armv3)Nick Clifton2-4/+23
PR target/62254 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the case where we are already provided with an SImode SUBREG. From-SVN: r234568
2016-03-30Properly check conflict between DRAP register and __builtin_eh_returnH.J. Lu1-3/+5
Since %ecx can't be used for both DRAP register and __builtin_eh_return, we need to check if crtl->drap_reg uses %ecx before using %ecx for __builtin_eh_return. PR target/70439 * config/i386/i386.c (ix86_expand_epilogue): Properly check conflict between DRAP register and __builtin_eh_return. From-SVN: r234559
2016-03-30Properly align stack in gcc.target/i386/cleanup-[12].cH.J. Lu2-6/+28
PR testsuite/70364 * gcc.target/i386/cleanup-1.c: Include <stddef.h>. (check): New function. (bar): Call check. (foo): Align stack to 16 bytes when calling bar. * gcc.target/i386/cleanup-2.c: Likewise. From-SVN: r234557
2016-03-30re PR middle-end/12392 (very long optimized compile)Michael Matz4-13/+52
2016-03-30 Michael Matz <matz@suse.de> Richard Biener <rguenther@suse.de> PR ipa/12392 * ipa-polymorphic-call.c (struct type_change_info): Change speculative to an unsigned allowing to limit the work we do. (csftc_abort_walking_p): New inline function.. (check_stmt_for_type_change): Limit the number of may-defs skipped for speculative devirtualization to max-speculative-devirt-maydefs. * params.def (max-speculative-devirt-maydefs): New param. * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document. Co-Authored-By: Richard Biener <rguenther@suse.de> From-SVN: r234546
2016-03-29re PR target/63890 (Compiling trivial program with -O -p leads to misaligned ↵Mike Stump2-1/+8
stack) PR target/63890 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling and TARGET_MACHO. * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1 From-SVN: r234545
2016-03-30PR tree-optimization/59124 (bogus -Warray-bounds warning)Patrick Palka4-0/+49
gcc/ChangeLog: PR tree-optimization/59124 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2). gcc/testsuite/ChangeLog: PR tree-optimization/59124 * gcc.dg/Warray-bounds-19.c: New test. From-SVN: r234544
2016-03-30Daily bump.GCC Administrator1-1/+1
From-SVN: r234542
2016-03-29tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.Jeff Law2-1/+6
* tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment. From-SVN: r234538
2016-03-29tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel to HOST_WIDE_INT.Jan Hubicka2-4/+9
* tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel to HOST_WIDE_INT. From-SVN: r234537
2016-03-29[Hurd] Specs maintenanceThomas Schwinge3-10/+8
gcc/ * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override. * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of gcrt0.o if linking dynamically. From-SVN: r234535
2016-03-29[Hurd, kFreeBSD] boehm-gc: Use mmap instead of brkSamuel Thibault3-2/+8
boehm-gc/ * configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*. * include/private/gcconfig.h [HURD && USE_MMAP]: Define USE_MMAP_ANON. From-SVN: r234534
2016-03-29prune.exp (escape_regex_chars): New.Zachary T Welch2-2/+28
2016-03-29 Zachary T Welch <zwelch@codesourcery.com> * lib/prune.exp (escape_regex_chars): New. (prune_file_path): Update to quote metcharacters for regexp. From-SVN: r234533
2016-03-29re PR lto/70283 (bogus vtable mismatch warnings)Jan Hubicka6-22/+64
PR ipa/70283 * ipa-devirt.c (methods_equal_p): New function. (compare_virtual_tables): Use it. * cgraph.h (symbol_table::symbol_suffix_separator): Declare. * cgraphclones.c (clone_function_name_1): Use symbol_table::symbol_suffix_separator. * coverage.c (build_var): Likewise. * symtab.c (symbol_table::symbol_suffix_separator): New. From-SVN: r234532
2016-03-29re PR rtl-optimization/70429 (Wrong code with -O1.)Jakub Jelinek4-0/+30
PR rtl-optimization/70429 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if mode != result_mode. * gcc.c-torture/execute/pr70429.c: New test. From-SVN: r234531
2016-03-29re PR c++/70353 (ICE on __PRETTY_FUNCTION__ in a constexpr function)Jason Merrill5-3/+30
PR c++/70353 gcc/ * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null. gcc/cp/ * decl.c (make_rtl_for_nonlocal_decl): Don't defer local statics in constexpr functions. From-SVN: r234530
2016-03-29re PR tree-optimization/70405 (-fcompare-debug failure with -mavx512f)Jakub Jelinek4-3/+30
PR tree-optimization/70405 * ssa-iterators.h (num_imm_uses): Add missing braces. * gcc.dg/pr70405.c: New test. From-SVN: r234529
2016-03-29re PR fortran/70397 (ice while allocating ultimate polymorphic)Andre Vehreschild6-1/+128
gcc/fortran/ChangeLog: 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/70397 * trans-expr.c (gfc_class_len_or_zero_get): Add function to return a constant zero tree, when the class to get the _len component from is not unlimited polymorphic. (gfc_copy_class_to_class): Use the new function. * trans.h: Added interface of new function gfc_class_len_or_zero_get. gcc/testsuite/ChangeLog: 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/70397 * gfortran.dg/unlimited_polymorphic_25.f90: New test. * gfortran.dg/unlimited_polymorphic_26.f90: New test. From-SVN: r234528
2016-03-29re PR rtl-optimization/68695 (Performance regression related to ssa patch / ↵Vladimir Makarov2-8/+44
ifcvt) 2016-03-29 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/68695 * ira-color.c (allocno_copy_cost_saving): New. (improve_allocation): Use it. From-SVN: r234527
2016-03-29add myself to MAINTAINERS listKelvin Nilsen2-0/+5
From-SVN: r234526
2016-03-29re PR target/70355 (ICE: in simplify_subreg_concatn, at lower-subreg.c:617 ↵Richard Henderson4-1/+36
with -funroll-loops -mavx512f) PR middle-end/70355 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs. From-SVN: r234524
2016-03-29[PR testsuite/64177] Audit Cilk Plus tests for CILK_NWORKERS=1Thomas Schwinge4-3/+51
PR testsuite/64177 gcc/testsuite/ * c-c++-common/cilk-plus/CK/spawning_arg.c (main): Call __cilkrts_set_param to set two workers. * c-c++-common/cilk-plus/CK/steal_check.c (main): Likewise. * g++.dg/cilk-plus/CK/catch_exc.cc (main): Likewise. From-SVN: r234523
2016-03-29Avoid ERROR in libgomp.oacc-c++/c++.exp in non-C++ configurationsThomas Schwinge2-0/+9
libgomp/ * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call set-torture-options. From-SVN: r234519
2016-03-29re PR middle-end/70424 (Pointer derived from integer gets reduced alignment)Richard Biener3-3/+12
2016-03-29 Richard Biener <rguenther@suse.de> PR middle-end/70424 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always use alignment returned by get_pointer_alignment_1 if it is bigger than BITS_PER_UNIT. * builtins.c (get_pointer_alignment_1): Do not return true for alignment extracted from SSA info. From-SVN: r234517
2016-03-29ft32.opt (mnodiv): New.James Bowman7-15/+108
* config/ft32/ft32.opt (mnodiv): New. * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV. * doc/invoke.texi (FT32 Options -mnodiv): New. * libgcc/config/ft32/lib1funcs.S (*divsi3, *modsi3): New. From-SVN: r234516
2016-03-29Daily bump.GCC Administrator1-1/+1
From-SVN: r234515
2016-03-28re PR bootstrap/70422 (Bootstrap comparison failure)Jason Merrill7-76/+108
PR c++/70422 PR c++/64266 PR c++/70353 * decl.c, pt.c, constexpr.c: Revert last patch. From-SVN: r234511
2016-03-28* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.Jason Merrill5-7/+11
From-SVN: r234508
2016-03-282016-03-28 Dominique d'Humieres <dominiq@lps.ens.fr>Dominique d'Humieres2-2/+6
g++.dg/ext/fnname5.C: Update the test for Darwin. From-SVN: r234504
2016-03-28STOP managed by external library when coarrays are usedAlessandro Fanfarillo7-3/+60
From-SVN: r234502
2016-03-28re PR target/70406 (ICE: in extract_insn, at recog.c:2287 (unrecognizable ↵Kirill Yukhin4-3/+26
insn) with -mtune=pentium2 -mavx512f) PR target/70406 gcc/ * config/i386/i386.md (define_split, andn): Fix modes. gcc/testsuite/ * gcc.target/i386/pr70406.c: New test. From-SVN: r234500
2016-03-28Daily bump.GCC Administrator1-1/+1
From-SVN: r234499
2016-03-27Fix typoEric Botcazou1-1/+1
From-SVN: r234496
2016-03-27decl.c (components_to_record): Add special case for single field with ↵Eric Botcazou4-0/+48
representation clause at offset 0. * gcc-interface/decl.c (components_to_record): Add special case for single field with representation clause at offset 0. From-SVN: r234494
2016-03-27Daily bump.GCC Administrator1-1/+1
From-SVN: r234493
2016-03-26re PR ipa/70366 (chromium fails to build with LTO due to segfault in ↵Richard Biener2-2/+10
ipa-inline-transform.c:inline_call) 2016-03-26 Richard Biener <rguenther@suse.de> Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> PR ipa/70366 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl) instead of TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl)) as 2nd argument to cl_optimization_restore(). Co-Authored-By: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> From-SVN: r234490
2016-03-26Daily bump.GCC Administrator1-1/+1
From-SVN: r234489
2016-03-25re PR target/70120 ([aarch64] -g causes Assembler messages: Error: unaligned ↵Richard Henderson8-0/+90
opcodes detected in executable segment) 2016-03-25 Richard Henderson <rth@redhat.com> PR target/70120 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New. * config/aarch64/aarch64-protos.h: Declare it. * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New. PR target/70120 * gcc.target/aarch64/pr70120-1.c: New. * gcc.target/aarch64/pr70120-2.c: New. * gcc.target/aarch64/pr70120-3.c: New. From-SVN: r234486
2016-03-25re PR c++/64266 (Can GCC produce local mergeable symbols for *.__FUNCTION__ ↵Jason Merrill7-101/+91
and *.__PRETTY_FUNCTION__ functions?) PR c++/64266 PR c++/70353 Core issue 1962 * decl.c (cp_fname_init): Decay the initializer to pointer. (cp_make_fname_decl): Set DECL_DECLARED_CONSTEXPR_P, DECL_VALUE_EXPR, DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P. Don't call cp_finish_decl. * pt.c (tsubst_expr) [DECL_EXPR]: Set DECL_VALUE_EXPR, DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P. Don't call cp_finish_decl. * constexpr.c (cxx_eval_constant_expression) [VAR_DECL]: Handle DECL_VALUE_EXPR. Co-Authored-By: Martin Liska <mliska@suse.cz> From-SVN: r234484
2016-03-25Adjust dg-do directive in mangle2.CPatrick Palka2-1/+7
gcc/testsuite/ChangeLog: PR c++/62212 * g++.dg/template/mangle2.C: The dg-do directive should be "compile" not "assemble". From-SVN: r234482
2016-03-25re PR preprocessor/69650 (ICE in linemap_line_start, at libcpp/line-map.c:803)Bernd Schmidt5-29/+39
PR lto/69650 * directives.c (do_linemarker): Test for file left but not entered here. * line-map.c (linemap_add): Not here. PR lto/69650 * gcc.dg/pr69650.c: New test. From-SVN: r234481
2016-03-25* g++.dg/ext/pr70290.C: Prune non-standard ABI.David Edelsohn2-0/+8
From-SVN: r234480
2016-03-25[RS6000] PR70052, ICE compiling _Decimal128 test caseAlan Modra6-12/+63
gcc/ PR target/70052 * config/rs6000/constraints.md (j): Simplify. * config/rs6000/predicates.md (easy_fp_constant): Exclude decimal float 0.D. * config/rs6000/rs6000.md (zero_fp): New mode_attr. (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64, mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j in all constraint alternatives. (movtd_64bit_nodm): Delete "j" constraint alternative. gcc/testsuite/ * gcc.dg/dfp/pr70052.c: New test. From-SVN: r234479
2016-03-25tree-ssa-propagate.c: Enhance docs for SSA_PROP_NOT_INTERESTING.Aldy Hernandez2-0/+7
* tree-ssa-propagate.c: Enhance docs for SSA_PROP_NOT_INTERESTING. From-SVN: r234478
2016-03-25* doc/extend.texi: Fix typo in documentation to pure attribute.Aldy Hernandez2-1/+5
From-SVN: r234477
2016-03-25re PR target/70319 (FAIL: gcc.dg/sso/q2.c -O1 -fno-inline execution test)John David Anglin2-2/+8
PR target/70319 * config/pa/pa.md (bswapdi2): Use a scratch register. From-SVN: r234475