]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
struct-layout-encoding-1_generate.c (switchfiles): Fix fprintf's by adding srcdir...
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 19 Jan 2006 16:57:43 +0000 (16:57 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 19 Jan 2006 16:57:43 +0000 (08:57 -0800)
2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>

        * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c (switchfiles):
        Fix fprintf's by adding srcdir or removing it.

From-SVN: r109970

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c

index bc23ccb9e38c8e75216a215a5ff445f31d9b5f14..f39f40f89ad1ce3f3d1637a6671c3fa52afd0757 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c (switchfiles):
+       Fix fprintf's by adding srcdir or removing it.
+
 2006-01-19  Diego Novillo  <dnovillo@redhat.com>
 
        * testsuite/gcc.dg/gomp/for-13.c: Use -fdump-tree-ompexp.
index 31f328ee9a9917839d26e32159a51685ed78e2cf..4b5d5c6dae72afaa27500b9504d19ee76768c9fa 100644 (file)
@@ -230,13 +230,13 @@ switchfiles (int fields)
     {
       fprintf (outfile, "\
 /* { dg-do run { xfail *-*-* } } */\n\
-/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n");
+/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir);
     }
   else
     {
       fprintf (outfile, "\
 /* { dg-do run } */\n\
-/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n");
+/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir);
     }
   fprintf(outfile, "#include <objc/encoding.h> \n\
 #include \"struct-layout-1.h\"\n\
@@ -274,7 +274,7 @@ int main (void)\n\
       abort ();\n\
     }\n\
   exit (0);\n\
-}\n", srcdir, filecnt, filecnt);
+}\n", filecnt, filecnt);
   fclose (outfile);
   sprintf (destptr, "t%03d_test.h", filecnt);
   outfile = fopen (destbuf, "w");