From: Jakub Jelinek Date: Mon, 7 Nov 2016 13:07:32 +0000 (+0100) Subject: re PR middle-end/71529 ([CHKP] ICE in expand_expr_real_1) X-Git-Tag: basepoints/gcc-8~3344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a98152285e49156026d0b70bacfe562a6f9d3ac2;p=thirdparty%2Fgcc.git re PR middle-end/71529 ([CHKP] ICE in expand_expr_real_1) PR middle-end/71529 * gcc.target/i386/pr71529.C: Moved to ... * g++.dg/opt/pr71529.C: ... here. New test. Guard for i?86/x86_64. PR target/64411 * gcc.target/i386/pr64411.C: Moved to ... * g++.dg/opt/pr64411.C: ... here. New test. Guard for i?86/x86_64 lp64. PR target/65105 * gcc.target/i386/pr65105-4.C: Moved to ... * g++.dg/opt/pr65105-4.C: ... here. New test. Guard for i?86/x86_64. Run into compile test rather than execute test. From-SVN: r241903 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 06798a9a1761..716e6e23500e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,19 @@ +2016-11-07 Jakub Jelinek + + PR middle-end/71529 + * gcc.target/i386/pr71529.C: Moved to ... + * g++.dg/opt/pr71529.C: ... here. New test. Guard for i?86/x86_64. + + PR target/64411 + * gcc.target/i386/pr64411.C: Moved to ... + * g++.dg/opt/pr64411.C: ... here. New test. Guard for i?86/x86_64 + lp64. + + PR target/65105 + * gcc.target/i386/pr65105-4.C: Moved to ... + * g++.dg/opt/pr65105-4.C: ... here. New test. Guard for i?86/x86_64. + Run into compile test rather than execute test. + 2016-11-07 Richard Biener PR target/78229 diff --git a/gcc/testsuite/gcc.target/i386/pr64411.C b/gcc/testsuite/g++.dg/opt/pr64411.C similarity index 67% rename from gcc/testsuite/gcc.target/i386/pr64411.C rename to gcc/testsuite/g++.dg/opt/pr64411.C index 55858fb48ebd..122b9eec414e 100644 --- a/gcc/testsuite/gcc.target/i386/pr64411.C +++ b/gcc/testsuite/g++.dg/opt/pr64411.C @@ -1,5 +1,6 @@ -/* { dg-do compile } */ -/* { dg-options "-Os -mcmodel=medium -fPIC -fschedule-insns -fselective-scheduling" } */ +// PR target/64411 +// { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } +// { dg-options "-Os -mcmodel=medium -fPIC -fschedule-insns -fselective-scheduling" } typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.target/i386/pr65105-4.C b/gcc/testsuite/g++.dg/opt/pr65105-4.C similarity index 61% rename from gcc/testsuite/gcc.target/i386/pr65105-4.C rename to gcc/testsuite/g++.dg/opt/pr65105-4.C index 9acf368e1fcc..d79ba1abab0b 100644 --- a/gcc/testsuite/gcc.target/i386/pr65105-4.C +++ b/gcc/testsuite/g++.dg/opt/pr65105-4.C @@ -1,6 +1,6 @@ -/* PR target/pr65105 */ -/* { dg-do run { target { ia32 } } } */ -/* { dg-options "-O2 -march=slm" } */ +// PR target/65105 +// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } +// { dg-options "-O2 -march=slm" } struct s { long long l1, l2, l3, l4, l5; diff --git a/gcc/testsuite/g++.dg/opt/pr71529.C b/gcc/testsuite/g++.dg/opt/pr71529.C new file mode 100644 index 000000000000..148527f00c42 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/pr71529.C @@ -0,0 +1,22 @@ +// PR middle-end/71529 +// { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } +// { dg-options "-fcheck-pointer-bounds -mmpx -O2" } + +class c1 +{ + public: + virtual ~c1 (); +}; + +class c2 +{ + public: + virtual ~c2 (); +}; + +class c3 : c1, c2 { }; + +int main (int, char **) +{ + c3 obj; +} diff --git a/gcc/testsuite/gcc.target/i386/pr71529.C b/gcc/testsuite/gcc.target/i386/pr71529.C deleted file mode 100644 index 3169101e1a75..000000000000 --- a/gcc/testsuite/gcc.target/i386/pr71529.C +++ /dev/null @@ -1,22 +0,0 @@ -/* PR71529 */ -/* { dg-do compile { target { ! x32 } } } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */ - -class c1 -{ - public: - virtual ~c1 (); -}; - -class c2 -{ - public: - virtual ~c2 (); -}; - -class c3 : c1, c2 { }; - -int main (int, char **) -{ - c3 obj; -}