From ffb164c7df6931b92cf2ad2ef4bd102cec8e6be3 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 24 Jul 2018 12:24:00 +0200 Subject: [PATCH] re PR testsuite/86649 (g++.dg/tree-ssa/pr19476-1.C fails starting with r262928) PR testsuite/86649 * g++.dg/tree-ssa-/pr19476-1.C: Check dom2 dump instead of ccp1. * g++.dg/tree-ssa-/pr19476-5.C: Likewise. * g++.dg/tree-ssa-/pr19476-6.C: New test. * g++.dg/tree-ssa-/pr19476-7.C: New test. From-SVN: r262942 --- gcc/ChangeLog | 53 +++++++++----------- gcc/testsuite/ChangeLog | 59 +++++++++++++---------- gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C | 6 +-- gcc/testsuite/g++.dg/tree-ssa/pr19476-5.C | 4 +- gcc/testsuite/g++.dg/tree-ssa/pr19476-6.C | 16 ++++++ gcc/testsuite/g++.dg/tree-ssa/pr19476-7.C | 11 +++++ libgomp/ChangeLog | 11 +++++ 7 files changed, 99 insertions(+), 61 deletions(-) create mode 100644 gcc/testsuite/g++.dg/tree-ssa/pr19476-6.C create mode 100644 gcc/testsuite/g++.dg/tree-ssa/pr19476-7.C diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f4283fd739..cf93d5f2a06 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -376,7 +376,7 @@ * config/aarch64/predicates.md (aarch64_mem_pair_lanes_operand): Use new enum value 'ADDR_QUERY_LDP_STP_N', don't hardcode mode and use 'true' rather than '1'. - * gcc/config/aarch64/constraints.md (Uml): Likewise. + * config/aarch64/constraints.md (Uml): Likewise. (Uml): Rename to Umn. (Umq): Remove. @@ -5072,7 +5072,7 @@ 2018-06-07 Carl Love - * gcc/config/rs6000/vsx.md (vextract_fp_from_shorth, + * config/rs6000/vsx.md (vextract_fp_from_shorth, vextract_fp_from_shortl): Add BE support. 2018-06-07 Paul Koning @@ -5104,14 +5104,9 @@ 2018-06-07 Jozef Lawrynowicz - * gcc/config/msp430/msp430.c (msp430_mcu_name): Set the "i" in the + * config/msp430/msp430.c (msp430_mcu_name): Set the "i" in the symbol defined for msp430i* devices to be lower case. - gcc/testsuite/gcc.target/msp430/ - * msp430i-device-symbol.c: New test. - * msp430f-device-symbol.c: New test. - * msp430.h: New test header file. - 2018-06-07 Richard Biener * graphite-sese-to-poly.c (extract_affine): Avoid unneded @@ -5135,7 +5130,7 @@ 2018-06-04 Carl Love - * gcc/config/rs6000/vsx.md (first_match_index_): Calculate index + * config/rs6000/vsx.md (first_match_index_): Calculate index using natural element order. Use gen_lshrsi3 instead of gen_ashrsi3 as it is slightly cheaper. (first_match_or_eos_index_): @@ -5146,9 +5141,9 @@ Calculate index using natural order. (define_insn vclzlsbb): Change to define_insn vclzlsbb_. for BE and LE modes. - * gcc/config/rs6000/rs6000-c.c: Rename P9V_BUILTIN_VCLZLSBB, + * config/rs6000/rs6000-c.c: Rename P9V_BUILTIN_VCLZLSBB, P9V_BUILTIN_VCLZLSBB_V16QI. - * gcc/config/rs6000/rs6000-builtin.def: Make VCLZLSBB mode + * config/rs6000/rs6000-builtin.def: Make VCLZLSBB mode specific. 2018-06-06 Kelvin Nilsen @@ -5245,13 +5240,9 @@ 2018-06-06 Jozef Lawrynowicz - * gcc/config/msp430/msp430.c (msp430_attr): Allow interrupt handlers + * config/msp430/msp430.c (msp430_attr): Allow interrupt handlers to be static and remove check on interrupt attribute name. - gcc/testsuite/gcc.target/msp430/ - * function-attributes-4.c: New test. - * static-interrupts.c: New test. - 2018-06-05 Kelvin Nilsen * doc/extend.texi (PowerPC AltiVec Built-in Functions): Remove @@ -6622,7 +6613,7 @@ 2018-05-23 Jozef Lawrynowicz PR target/78849 - * gcc/tree.c (build_common_tree_nodes): Dont set TYPE_SIZE for __intN + * tree.c (build_common_tree_nodes): Dont set TYPE_SIZE for __intN types. 2018-05-23 Segher Boessenkool @@ -8527,15 +8518,15 @@ * config/rs6000/sysv4.h: Remove Xilinx FP support. * config/rs6000/t-rs6000: Ditto. * config/rs6000/t-xilinx: Delete. - * gcc/config/rs6000/titan.md: Adjust for fp_type removal. - * gcc/config/rs6000/vsx.md: Remove Xilinx FP support. + * config/rs6000/titan.md: Adjust for fp_type removal. + * config/rs6000/vsx.md: Remove Xilinx FP support. (VStype_simple): Delete. (VSfptype_simple, VSfptype_mul, VSfptype_div, VSfptype_sqrt): Delete. * config/rs6000/xfpu.h: Delete. * config/rs6000/xfpu.md: Delete. * config/rs6000/xilinx.h: Delete. * config/rs6000/xilinx.opt: Delete. - * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Remove + * doc/invoke.texi (RS/6000 and PowerPC Options): Remove -msingle-float, -mdouble-float, -msimple-fpu, -mfpu=, and -mxilinx-fpu. 2018-05-04 Tom de Vries @@ -8927,7 +8918,7 @@ * config/microblaze/microblaze.opt: add new option -mpic-data-text-rel. * config/microblaze/microblaze-protos.h (microblaze_constant_address_p): Add declaration. - * gcc/config/microblaze/microblaze.h (microblaze_constant_address_p): + * config/microblaze/microblaze.h (microblaze_constant_address_p): CONSTANT_ADDRESS_P definition to microblaze_constant_address_p. * config/microblaze/microblaze.c (TARGET_PIC_DATA_TEXT_REL): New addressing mode for data-text relative position indepenedent code. @@ -8948,7 +8939,7 @@ 'TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC' to disable address diff vector table in case of TARGET_PIC_DATA_TEXT_REL. (expand_pic_symbol_ref): Add handling for 'UNSPEC_TEXT'. - * gcc/config/microblaze/microblaze.md (TARGET_PIC_DATA_TEXT_REL): + * config/microblaze/microblaze.md (TARGET_PIC_DATA_TEXT_REL): Add new macros 'UNSPEC_TEXT', 'UNSPEC_SET_TEXT' + add rule for setting r20 in function prologue + exclude function calls from 'UNSPEC_PLT' in case of data text @@ -8962,7 +8953,7 @@ of addr diff vector generation. * target.def (TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC): Add target hook definition. - * targhooks.h, gcc/targhooks.c (TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC): + * targhooks.h, targhooks.c (TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC): Add default function for generate_pic_addr_diff_vec -> flag_pic. * doc/invoke.texi (Add new pic option): Add new microblaze pic option for data text relative. @@ -9797,10 +9788,10 @@ 2018-04-16 Olga Makhotina PR target/84331 - * gcc/config.gcc: Support "skylake". - * gcc/config/i386/i386-c.c (ix86_target_macros_internal): Handle + * config.gcc: Support "skylake". + * config/i386/i386-c.c (ix86_target_macros_internal): Handle PROCESSOR_SKYLAKE. - * gcc/config/i386/i386.c (m_SKYLAKE): Define. + * config/i386/i386.c (m_SKYLAKE): Define. (processor_target_table): Add "skylake". (ix86_option_override_internal): Add "skylake". (get_builtin_code_for_version): Handle PROCESSOR_SKYLAKE, @@ -9808,7 +9799,7 @@ (get_builtin_code_for_version): Fix priority for PROCESSOR_ICELAKE_CLIENT, PROCESSOR_ICELAKE_SERVER, PROCESSOR_SKYLAKE-AVX512. - * gcc/config/i386/i386.h (processor_costs): Define TARGET_SKYLAKE. + * config/i386/i386.h (processor_costs): Define TARGET_SKYLAKE. (processor_type): Add PROCESSOR_SKYLAKE. 2018-04-16 Paolo Carlini @@ -10088,7 +10079,7 @@ 2018-04-10 Segher Boessenkool PR target/85287 - * gcc/config/rs6000/rs6000.md (allocate_stack): Put the residual size + * config/rs6000/rs6000.md (allocate_stack): Put the residual size for stack clash protection in a register whenever we need it to be in a register. @@ -12847,8 +12838,8 @@ 2018-02-27 Martin Sebor PR c++/83871 - * gcc/doc/invoke.texi (-Wmissing-attributes): New option. - * gcc/print-tree.c (print_node): Handle DECL_UNINLINABLE. + * doc/invoke.texi (-Wmissing-attributes): New option. + * print-tree.c (print_node): Handle DECL_UNINLINABLE. 2018-02-27 Martin Sebor @@ -14824,7 +14815,7 @@ * config/arc/predicates.md (compact_store_memory_operand): Check for uncached memory accesses. (nonvol_nonimm_operand): Likewise. - * gcc/doc/extend.texi (ARC Type Attribute): New subsection. + * doc/extend.texi (ARC Type Attribute): New subsection. 2018-01-31 Jakub Jelinek diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 382574e8588..a723a528ea6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2018-07-24 Jakub Jelinek + + PR testsuite/86649 + * g++.dg/tree-ssa-/pr19476-1.C: Check dom2 dump instead of ccp1. + * g++.dg/tree-ssa-/pr19476-5.C: Likewise. + * g++.dg/tree-ssa-/pr19476-6.C: New test. + * g++.dg/tree-ssa-/pr19476-7.C: New test. + 2018-07-23 Carl Love PR 86591 @@ -22,10 +30,10 @@ 2018-07-20 Martin Sebor PR middle-end/82063 - * gcc/testsuite/c-c++-common/pr68657-1.c: Adjust. - * gcc/testsuite/c-c++-common/pr68657-2.c: Same. - * gcc/testsuite/c-c++-common/pr68657-3.c: Same. - * gcc/testsuite/c-c++-common/pr68833-1.c: Same. + * c-c++-common/pr68657-1.c: Adjust. + * c-c++-common/pr68657-2.c: Same. + * c-c++-common/pr68657-3.c: Same. + * c-c++-common/pr68833-1.c: Same. * gcc.dg/Walloc-size-larger-than-16.c: Same. * gcc.dg/Walloca-larger-than.c: New test. * gcc.dg/Walloca-larger-than-2.c: New test. @@ -39,11 +47,11 @@ PR tree-optimization/86613 PR tree-optimization/86611 - * gcc/testsuite/c-c++-common/Warray-bounds-2.c: Undefine macros and + * c-c++-common/Warray-bounds-2.c: Undefine macros and prune duplicate warnings. - * gcc/testsuite/gcc.dg/Warray-bounds-31.c: Xfail test cases with + * gcc.dg/Warray-bounds-31.c: Xfail test cases with data-model-dependencies. - * gcc/testsuite/gcc.dg/Warray-bounds-32.c: Ditto. + * gcc.dg/Warray-bounds-32.c: Ditto. 2018-07-20 Richard Biener @@ -2517,6 +2525,12 @@ * gcc.target/i386/funcspec-56.inc: Test arch=tremont. +2018-06-07 Jozef Lawrynowicz + + * gcc.target/msp430/msp430i-device-symbol.c: New test. + * gcc.target/msp430/msp430f-device-symbol.c: New test. + * gcc.target/msp430/msp430.h: New test header file. + 2018-06-07 Jakub Jelinek PR tree-optimization/69615 @@ -2584,6 +2598,11 @@ PR tree-optimization/86062 * g++.dg/tree-ssa/pr86062.C: New testcase. +2018-06-06 Jozef Lawrynowicz + + * gcc.target/msp430/function-attributes-4.c: New test. + * gcc.target/msp430/static-interrupts.c: New test. + 2018-06-05 Steve Ellcey PR target/79924 @@ -4152,10 +4171,11 @@ 2018-05-04 Pekka Jääskeläinen - * testsuite/brig.dg/test/gimple/smoke_test.hsail: Fix the test + * brig.dg/test/gimple/smoke_test.hsail: Fix the test to match the currently produced gimple. 2018-05-04 Carl Love + * gcc.target/powerpc/vsx-vector-6.h (foo): Add test for vec_max, vec_trunc. * gcc.target/powerpc/vsx-vector-6-le.c (dg-final): Update xvcmpeqdp, @@ -4873,7 +4893,7 @@ 2018-04-16 Olga Makhotina PR target/84331 - * gcc/testsuite/gcc.target/i386/funcspec-56.inc: Test arch=skylake. + * gcc.target/i386/funcspec-56.inc: Test arch=skylake. 2018-04-16 Paolo Carlini Jason Merrill @@ -4973,23 +4993,12 @@ PR c++/85258 * g++.dg/parse/error61.C: New test. -2018-04-12 Cesar Philippidis - - * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346. - * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise. - 2018-04-12 Kelvin Nilsen PR target/85347 * gcc.target/powerpc/vec-ldl-1.c: Change dejagnu directives to specify -mvsx on gcc command line. -2018-04-12 Cesar Philippidis - - PR middle-end/84955 - * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test. - * testsuite/libgomp.oacc-fortran/pr84955.f90: New test. - 2018-04-12 Jakub Jelinek PR target/85328 @@ -5675,8 +5684,8 @@ 2018-03-27 Cesar Philippidis PR target/85056 - * testsuite/gcc.target/nvptx/pr85056.c: New test. - * testsuite/gcc.target/nvptx/pr85056a.c: New test. + * gcc.target/nvptx/pr85056.c: New test. + * gcc.target/nvptx/pr85056a.c: New test. 2018-03-27 Richard Biener @@ -5809,7 +5818,7 @@ 2018-03-23 Vladimir Makarov PR inline-asm/85030 - * testsuite/gcc.target/i386/pr85030.c: New. + * gcc.target/i386/pr85030.c: New. 2018-03-23 Kyrylo Tkachov @@ -7447,9 +7456,9 @@ 2018-02-22 Steve Ellcey PR target/83335 - * gcc/testsuite/gcc.target/aarch64/asm-2.c: Add dg-error for + * gcc.target/aarch64/asm-2.c: Add dg-error for ILP32 mode. - * gcc/testsuite/gcc.target/aarch64/asm-4.c: New test. + * gcc.target/aarch64/asm-4.c: New test. 2018-02-22 Thomas Preud'homme diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C b/gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C index c65401412cf..25867185648 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-ccp1 -fdelete-null-pointer-checks" } */ +/* { dg-options "-O -fdump-tree-dom2 -fdelete-null-pointer-checks" } */ /* { dg-skip-if "" keeps_null_pointer_checks } */ // See pr19476-5.C for a version without including . @@ -12,5 +12,5 @@ int g(){ return 42 + (0 == new int[50]); } -/* { dg-final { scan-tree-dump "return 42" "ccp1" } } */ -/* { dg-final { scan-tree-dump-not "return 33" "ccp1" } } */ +/* { dg-final { scan-tree-dump "return 42" "dom2" } } */ +/* { dg-final { scan-tree-dump-not "return 33" "dom2" } } */ diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr19476-5.C b/gcc/testsuite/g++.dg/tree-ssa/pr19476-5.C index c12089a63c5..72c8986ca9e 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr19476-5.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr19476-5.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-ccp1 -fdelete-null-pointer-checks" } */ +/* { dg-options "-O -fdump-tree-dom2 -fdelete-null-pointer-checks" } */ /* { dg-skip-if "" keeps_null_pointer_checks } */ // See pr19476-1.C for a version that includes . @@ -8,4 +8,4 @@ int g(){ return 42 + (0 == new int[50]); } -/* { dg-final { scan-tree-dump "return 42" "ccp1" } } */ +/* { dg-final { scan-tree-dump "return 42" "dom2" } } */ diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr19476-6.C b/gcc/testsuite/g++.dg/tree-ssa/pr19476-6.C new file mode 100644 index 00000000000..f6b06c93c14 --- /dev/null +++ b/gcc/testsuite/g++.dg/tree-ssa/pr19476-6.C @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-evrp -fdelete-null-pointer-checks" } */ +/* { dg-skip-if "" keeps_null_pointer_checks } */ + +// See pr19476-7.C for a version without including . +#include + +int f(){ + return 33 + (0 == new(std::nothrow) int); +} +int g(){ + return 42 + (0 == new int[50]); +} + +/* { dg-final { scan-tree-dump "return 42" "evrp" } } */ +/* { dg-final { scan-tree-dump-not "return 33" "evrp" } } */ diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr19476-7.C b/gcc/testsuite/g++.dg/tree-ssa/pr19476-7.C new file mode 100644 index 00000000000..38624f2bac3 --- /dev/null +++ b/gcc/testsuite/g++.dg/tree-ssa/pr19476-7.C @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-evrp -fdelete-null-pointer-checks" } */ +/* { dg-skip-if "" keeps_null_pointer_checks } */ + +// See pr19476-6.C for a version that includes . + +int g(){ + return 42 + (0 == new int[50]); +} + +/* { dg-final { scan-tree-dump "return 42" "evrp" } } */ diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index baa675d61be..c285a99ddac 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -619,6 +619,17 @@ * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified test from gfortran.dg to here. +2018-04-12 Cesar Philippidis + + * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346. + * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise. + +2018-04-12 Cesar Philippidis + + PR middle-end/84955 + * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test. + * testsuite/libgomp.oacc-fortran/pr84955.f90: New test. + 2018-04-05 Tom de Vries PR target/85204 -- 2.30.2