re PR testsuite/86649 (g++.dg/tree-ssa/pr19476-1.C fails starting with r262928)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Jul 2018 10:24:00 +0000 (12:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Jul 2018 10:24:00 +0000 (12:24 +0200)
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
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C
gcc/testsuite/g++.dg/tree-ssa/pr19476-5.C
gcc/testsuite/g++.dg/tree-ssa/pr19476-6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tree-ssa/pr19476-7.C [new file with mode: 0644]
libgomp/ChangeLog

index 3f4283fd739277885e9ab271376c580d25523f7a..cf93d5f2a06c9bb34d8f8d7be2f2990979386e24 100644 (file)
        * 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.
 
 
 2018-06-07  Carl Love  <cel@us.ibm.com>
 
-       * 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  <ni1d@arrl.net>
 
 2018-06-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
-       * 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  <rguenther@suse.de>
 
        * graphite-sese-to-poly.c (extract_affine): Avoid unneded
 
 2018-06-04  Carl Love  <cel@us.ibm.com>
 
-       * gcc/config/rs6000/vsx.md (first_match_index_<mode>): Calculate index
+       * config/rs6000/vsx.md (first_match_index_<mode>): Calculate index
        using natural element order.  Use gen_lshrsi3 instead of gen_ashrsi3
        as it is slightly cheaper.
        (first_match_or_eos_index_<mode>):
        Calculate index using natural order.
        (define_insn vclzlsbb): Change to define_insn vclzlsbb_<mode>.
        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  <kelvin@gcc.gnu.org>
 
 2018-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
-       * 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  <kelvin@gcc.gnu.org>
 
        * doc/extend.texi (PowerPC AltiVec Built-in Functions): Remove
 2018-05-23  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
 
        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  <segher@kernel.crashing.org>
        * 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  <tom@codesourcery.com>
        * 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.
        '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
        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.
 2018-04-16  Olga Makhotina  <olga.makhotina@intel.com>
 
        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,
        (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  <paolo.carlini@oracle.com>
 2018-04-10  Segher Boessenkool  <segher@kernel.crashing.org>
 
        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.
 
 2018-02-27  Martin Sebor  <msebor@redhat.com>
 
        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  <msebor@redhat.com>
 
        * 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  <jakub@redhat.com>
 
index 382574e8588c9ca78b99e5c5ebcdd6ff85301486..a723a528ea610b20aeb80c86bb1a2291bb1ebf17 100644 (file)
@@ -1,3 +1,11 @@
+2018-07-24  Jakub Jelinek  <jakub@redhat.com>
+
+       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  <cel@us.ibm.com>
 
        PR 86591
 2018-07-20  Martin Sebor  <msebor@redhat.com>
 
        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.
 
        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  <rguenther@suse.de>
 
 
        * gcc.target/i386/funcspec-56.inc: Test arch=tremont.
 
+2018-06-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * 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  <jakub@redhat.com>
 
        PR tree-optimization/69615
        PR tree-optimization/86062
        * g++.dg/tree-ssa/pr86062.C: New testcase.
 
+2018-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * gcc.target/msp430/function-attributes-4.c: New test.
+       * gcc.target/msp430/static-interrupts.c: New test.
+
 2018-06-05  Steve Ellcey  <sellcey@cavium.com>
 
        PR target/79924
 
 2018-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
 
-       * 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  <cel@us.ibm.com>
+
        * 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,
 2018-04-16  Olga Makhotina  <olga.makhotina@intel.com>
 
        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  <paolo.carlini@oracle.com>
            Jason Merrill  <jason@redhat.com>
        PR c++/85258
        * g++.dg/parse/error61.C: New test.
 
-2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
-
-       * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
-       * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
-
 2018-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
 
        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  <cesar@codesourcery.com>
-
-       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  <jakub@redhat.com>
 
        PR target/85328
 2018-03-27  Cesar Philippidis  <cesar@codesourcery.com>
 
        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  <rguenther@suse.de>
 
 2018-03-23  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR inline-asm/85030
-       * testsuite/gcc.target/i386/pr85030.c: New.
+       * gcc.target/i386/pr85030.c: New.
 
 2018-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
 
        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  <thomas.preudhomme@arm.com>
 
index c65401412cfe203cc90c7fe51fd7a9442c913395..25867185648e38d76e967cef0a7b2336ac163072 100644 (file)
@@ -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 <new>.
@@ -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" } } */
index c12089a63c5b9d289ae07eeda71ecbc42b8d533c..72c8986ca9e8835634c16ef9ca49dfda40ce7b25 100644 (file)
@@ -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 <new>.
@@ -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 (file)
index 0000000..f6b06c9
--- /dev/null
@@ -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 <new>.
+#include <new>
+
+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 (file)
index 0000000..38624f2
--- /dev/null
@@ -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 <new>.
+
+int g(){
+  return 42 + (0 == new int[50]);
+}
+
+/* { dg-final { scan-tree-dump     "return 42" "evrp" } } */
index baa675d61bed8179559b9e5bb82d645a7154e88e..c285a99ddac81fcdaf3fd9c2ebb4562790d5b8d2 100644 (file)
        * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
        test from gfortran.dg to here.
 
+2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
+       * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
+
+2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
+
+       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  <tom@codesourcery.com>
 
        PR target/85204