From 281ff779cc1efadd5004248e7de6ef3cfc8c30df Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 12 Oct 2017 09:22:12 +0200 Subject: [PATCH] re PR sanitizer/82353 (runtime ubsan crash) PR target/82353 * gcc.target/i386/i386.exp (tests): Revert the '.C' extension change. * gcc.target/i386/pr82353.C: Moved to ... * g++.dg/ubsan/pr82353.C: ... here. Restrict to i?86/x86_64 && lp64. From-SVN: r253672 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/{gcc.target/i386 => g++.dg/ubsan}/pr82353.C | 2 +- gcc/testsuite/gcc.target/i386/i386.exp | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) rename gcc/testsuite/{gcc.target/i386 => g++.dg/ubsan}/pr82353.C (96%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a2daea4d8bd..c0d873daf0f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-10-12 Jakub Jelinek + + PR target/82353 + * gcc.target/i386/i386.exp (tests): Revert the '.C' extension change. + * gcc.target/i386/pr82353.C: Moved to ... + * g++.dg/ubsan/pr82353.C: ... here. Restrict to i?86/x86_64 && lp64. + 2017-10-11 Uros Bizjak * gcc.target/i386/387-ficom-2.c: New test. diff --git a/gcc/testsuite/gcc.target/i386/pr82353.C b/gcc/testsuite/g++.dg/ubsan/pr82353.C similarity index 96% rename from gcc/testsuite/gcc.target/i386/pr82353.C rename to gcc/testsuite/g++.dg/ubsan/pr82353.C index 309bff764a4..a967cefa9cb 100644 --- a/gcc/testsuite/gcc.target/i386/pr82353.C +++ b/gcc/testsuite/g++.dg/ubsan/pr82353.C @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ /* { dg-options "-O2 -std=c++11 -fsanitize=undefined -fno-sanitize-recover=undefined -w -fdump-rtl-reload" } */ extern unsigned long tf_2_var_1, tf_2_var_21; diff --git a/gcc/testsuite/gcc.target/i386/i386.exp b/gcc/testsuite/gcc.target/i386/i386.exp index 1dc37cdac12..eae253192ad 100644 --- a/gcc/testsuite/gcc.target/i386/i386.exp +++ b/gcc/testsuite/gcc.target/i386/i386.exp @@ -445,7 +445,7 @@ if [runtest_file_p $runtests $srcdir/$subdir/vect-args.c] { } # Everything else. -set tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] +set tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] set tests [prune $tests $srcdir/$subdir/vect-args.c] # Main loop. -- 2.30.2