* [patch, testsuite] Check for pic support on tests that use -fPIC
@ 2012-12-12 17:52 Steve Ellcey
0 siblings, 0 replies; only message in thread
From: Steve Ellcey @ 2012-12-12 17:52 UTC (permalink / raw)
To: gcc-patches
I think this patch qualifies as obvious so I will check it in later today if
I don't get any objections. These two tests use the -fPIC flag but do not
check for pic support. Tested on mips-mti-elf.
Steve Ellcey
sellcey@mips.com
2012-12-12 Steve Ellcey <sellcey@mips.com>
* gcc.dg/pr55150-2.c: Add pic support check.
* gcc.dg/lto/pr54709_0.c: Ditto.
diff --git a/gcc/testsuite/gcc.dg/lto/pr54709_0.c b/gcc/testsuite/gcc.dg/lto/pr54709_0.c
index 7e38bd4..f3db5dc 100644
--- a/gcc/testsuite/gcc.dg/lto/pr54709_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr54709_0.c
@@ -1,5 +1,6 @@
/* { dg-lto-do link } */
/* { dg-require-visibility "hidden" } */
+/* { dg-require-effective-target fpic } */
/* { dg-extra-ld-options { -shared } } */
/* { dg-lto-options { { -fPIC -fvisibility=hidden -flto } } } */
diff --git a/gcc/testsuite/gcc.dg/pr55150-2.c b/gcc/testsuite/gcc.dg/pr55150-2.c
index 48dbb53..1be769d 100644
--- a/gcc/testsuite/gcc.dg/pr55150-2.c
+++ b/gcc/testsuite/gcc.dg/pr55150-2.c
@@ -1,5 +1,6 @@
/* PR middle-end/55150 */
/* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
/* { dg-options "-Os -g -fPIC" } */
typedef unsigned char DES_cblock[8];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-12 17:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-12 17:52 [patch, testsuite] Check for pic support on tests that use -fPIC Steve Ellcey
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).