Patchwork [testsuite] Obvious patch for gcc.dg/pr56396.c

login
register
mail settings
Submitter Steve Ellcey
Date March 1, 2013, 3:57 p.m.
Message ID <a21519f5-866b-4b78-8c33-f5f5145f5275@BAMAIL02.ba.imgtec.org>
Download mbox | patch
Permalink /patch/224404/
State New
Headers show

Comments

Steve Ellcey - March 1, 2013, 3:57 p.m.
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.
Jakub Jelinek - March 1, 2013, 4:02 p.m.
On Fri, Mar 01, 2013 at 07:57:12AM -0800, Steve Ellcey  wrote:
> 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.
> 
> 2013-03-01  Steve Ellcey  <sellcey@mips.com>
> 
> 	* gcc.dg/pr56396.c: Require pic support.

Ok, thanks.

> --- 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; };

	Jakub

Patch

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; };