This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, testsuite] Obvious patch for gcc.dg/pr56396.c
- From: "Steve Ellcey " <sellcey at imgtec dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <jakub at redhat dot com>, <rguenther at suse dot de>
- Date: Fri, 1 Mar 2013 07:57:12 -0800
- Subject: [patch, testsuite] Obvious patch for gcc.dg/pr56396.c
I am going to check in this testsuite patch as an obvious fix. We should make
sure a platform supports PIC before compiling with the -fpic flag.
Steve Ellcey
sellcey@imgtec.com
2013-03-01 Steve Ellcey <sellcey@mips.com>
* gcc.dg/pr56396.c: Require pic support.
diff --git a/gcc/testsuite/gcc.dg/pr56396.c b/gcc/testsuite/gcc.dg/pr56396.c
index d2ec8fa..160545b 100644
--- a/gcc/testsuite/gcc.dg/pr56396.c
+++ b/gcc/testsuite/gcc.dg/pr56396.c
@@ -1,5 +1,6 @@
/* PR tree-optimization/56396 */
/* { dg-do compile } */
+/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fpic -g" } */
struct S { char *s; int z; };