From 6d158d9a6bc15a0b1bf97cc434b64c7d72f524ff Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 30 Apr 2015 22:22:51 +0200 Subject: [PATCH] devirt-28a.C: Require LTO effective target. * g++.dg/ipa/devirt-28a.C: Require LTO effective target. * g++.dg/ext/sync-4.C (dg-additional-options): Use -march=pentium for 32bit x86 targets. * gcc.dg/pr36504.c (dg-additional-options): Use -march=i686 -msse for 32bit x86 targets. * gcc.dg/pr39455.c (dg-additional-options): Ditto. * gcc.dg/pr45352-1.c (dg-additional-options): Ditto. * gcc.dg/pr63914.c (dg-additional-options): Use -msse for 32bit x86 targets. From-SVN: r222656 --- gcc/testsuite/ChangeLog | 12 ++++++++++++ gcc/testsuite/g++.dg/ext/sync-4.C | 1 + gcc/testsuite/g++.dg/ipa/devirt-28a.C | 1 + gcc/testsuite/gcc.dg/pr36504.c | 1 + gcc/testsuite/gcc.dg/pr39455.c | 1 + gcc/testsuite/gcc.dg/pr45352-1.c | 1 + gcc/testsuite/gcc.dg/pr63914.c | 1 + 7 files changed, 18 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aa0123502c7..d0da860a062 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2015-04-29 Uros Bizjak + + * g++.dg/ipa/devirt-28a.C: Require LTO effective target. + * g++.dg/ext/sync-4.C (dg-additional-options): Use -march=pentium + for 32bit x86 targets. + * gcc.dg/pr36504.c (dg-additional-options): Use -march=i686 -msse + for 32bit x86 targets. + * gcc.dg/pr39455.c (dg-additional-options): Ditto. + * gcc.dg/pr45352-1.c (dg-additional-options): Ditto. + * gcc.dg/pr63914.c (dg-additional-options): Use -msse + for 32bit x86 targets. + 2015-04-30 Marek Polacek PR tree-optimization/63551 diff --git a/gcc/testsuite/g++.dg/ext/sync-4.C b/gcc/testsuite/g++.dg/ext/sync-4.C index 24bc6639991..47aa1e38d57 100644 --- a/gcc/testsuite/g++.dg/ext/sync-4.C +++ b/gcc/testsuite/g++.dg/ext/sync-4.C @@ -1,6 +1,7 @@ /* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu* powerpc*-*-darwin* *-*-darwin[912]* } } */ /* { dg-require-effective-target sync_long_long_runtime } */ /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */ +/* { dg-additional-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ /* Verify that the builtin functions are correctly marked as trapping when using -fnon-call-exceptions. */ diff --git a/gcc/testsuite/g++.dg/ipa/devirt-28a.C b/gcc/testsuite/g++.dg/ipa/devirt-28a.C index 65d5fcdf3e2..b6786eb4ea4 100644 --- a/gcc/testsuite/g++.dg/ipa/devirt-28a.C +++ b/gcc/testsuite/g++.dg/ipa/devirt-28a.C @@ -1,6 +1,7 @@ // PR c++/58678 // { dg-options "-O3 -flto -shared -fPIC -Wl,--no-undefined" } // { dg-do link { target { { gld && fpic } && shared } } } +// { dg-require-effective-target lto } struct A { virtual ~A(); diff --git a/gcc/testsuite/gcc.dg/pr36504.c b/gcc/testsuite/gcc.dg/pr36504.c index dbcf76648bf..b3db30f4f5c 100644 --- a/gcc/testsuite/gcc.dg/pr36504.c +++ b/gcc/testsuite/gcc.dg/pr36504.c @@ -1,6 +1,7 @@ /* PR tree-optimization/36504 */ /* { dg-do compile } */ /* { dg-options "-O3 -fprefetch-loop-arrays -w" } */ +/* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ struct A { struct { int a; } b[8]; }; struct B { int c; int d; }; diff --git a/gcc/testsuite/gcc.dg/pr39455.c b/gcc/testsuite/gcc.dg/pr39455.c index 8e8c67034f2..ffd1f9edde3 100644 --- a/gcc/testsuite/gcc.dg/pr39455.c +++ b/gcc/testsuite/gcc.dg/pr39455.c @@ -1,6 +1,7 @@ /* PR tree-optimization/39455 */ /* { dg-do compile } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ +/* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ void foo (char *x, unsigned long y, unsigned char *z) diff --git a/gcc/testsuite/gcc.dg/pr45352-1.c b/gcc/testsuite/gcc.dg/pr45352-1.c index 2183f0eea00..ea8d0472553 100644 --- a/gcc/testsuite/gcc.dg/pr45352-1.c +++ b/gcc/testsuite/gcc.dg/pr45352-1.c @@ -1,5 +1,6 @@ /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ /* { dg-options "-O3 -fschedule-insns -fschedule-insns2 -fselective-scheduling2 -fsel-sched-pipelining -funroll-loops -fprefetch-loop-arrays" } */ +/* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ void main1 (float *pa, float *pc) { diff --git a/gcc/testsuite/gcc.dg/pr63914.c b/gcc/testsuite/gcc.dg/pr63914.c index a6b21686421..8bf18b3df2c 100644 --- a/gcc/testsuite/gcc.dg/pr63914.c +++ b/gcc/testsuite/gcc.dg/pr63914.c @@ -2,6 +2,7 @@ /* { dg-options "-O2 -ffast-math" } */ /* { dg-prune-output "non-standard ABI extension" } */ /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ +/* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ typedef float __m128 __attribute__ ((__vector_size__ (16))); __m128 a, d, e; -- 2.30.2