public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, testsuite] Fix g++.dg/pr67989.C test failure when running with -march or -mcpu
@ 2016-01-05  7:37 Thomas Preud'homme
  2016-01-05 10:47 ` Kyrill Tkachov
  0 siblings, 1 reply; 14+ messages in thread
From: Thomas Preud'homme @ 2016-01-05  7:37 UTC (permalink / raw)
  To: gcc-patches, Richard Earnshaw, Ramana Radhakrishnan, Kyrylo Tkachov

Hi,

g++.dg/pr67989.C passes -march=armv4t to gcc when compiling which fails if 
RUNTESTFLAGS passes -mcpu or -march with a different value. This patch adds a 
dg-skip-if directive to skip the test when such a thing happens.

ChangeLog entry is as follows:


*** gcc/testsuite/ChangeLog ***

2015-12-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>

        * g++.dg/pr67989.C: Skip test if already running it with -mcpu or 
        -march with different value.


diff --git a/gcc/testsuite/g++.dg/pr67989.C b/gcc/testsuite/g++.dg/pr67989.C
index 
90261c450b4b9429fb989f7df62f3743017c7363..61be8e172a96df5bb76f7ecd8543dadf825e7dc7 
100644
--- a/gcc/testsuite/g++.dg/pr67989.C
+++ b/gcc/testsuite/g++.dg/pr67989.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-std=c++11 -O2" } */
+/* { dg-skip-if "do not override -mcpu" { arm*-*-* } { "-march=*" "-mcpu=*" } 
{ "-march=armv4t" } } */
 /* { dg-additional-options "-marm -march=armv4t" { target arm*-*-* } } */
 
 __extension__ typedef unsigned long long int uint64_t;


Is this ok for stage3?

Best regards,

Thomas

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-01-27 20:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05  7:37 [PATCH, testsuite] Fix g++.dg/pr67989.C test failure when running with -march or -mcpu Thomas Preud'homme
2016-01-05 10:47 ` Kyrill Tkachov
2016-01-05 10:52   ` Richard Earnshaw (lists)
2016-01-05 10:56     ` Kyrill Tkachov
2016-01-07  7:35   ` Thomas Preud'homme
2016-01-07  9:15     ` Kyrill Tkachov
2016-01-07 10:26       ` Richard Earnshaw (lists)
2016-01-08  9:33         ` Thomas Preud'homme
2016-01-11 15:57           ` Bernd Schmidt
2016-01-12  7:55             ` Thomas Preud'homme
2016-01-13 17:39               ` Bernd Schmidt
2016-01-18  3:33                 ` Thomas Preud'homme
2016-01-27  6:35                   ` Thomas Preud'homme
2016-01-27 20:04                     ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).