Commit d103fa24 by Andrew Pinski Committed by Andrew Pinski

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

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
parent 50674e96
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> 2006-01-19 Diego Novillo <dnovillo@redhat.com>
* testsuite/gcc.dg/gomp/for-13.c: Use -fdump-tree-ompexp. * testsuite/gcc.dg/gomp/for-13.c: Use -fdump-tree-ompexp.
...@@ -230,13 +230,13 @@ switchfiles (int fields) ...@@ -230,13 +230,13 @@ switchfiles (int fields)
{ {
fprintf (outfile, "\ fprintf (outfile, "\
/* { dg-do run { xfail *-*-* } } */\n\ /* { dg-do run { xfail *-*-* } } */\n\
/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n"); /* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir);
} }
else else
{ {
fprintf (outfile, "\ fprintf (outfile, "\
/* { dg-do run } */\n\ /* { 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\ fprintf(outfile, "#include <objc/encoding.h> \n\
#include \"struct-layout-1.h\"\n\ #include \"struct-layout-1.h\"\n\
...@@ -274,7 +274,7 @@ int main (void)\n\ ...@@ -274,7 +274,7 @@ int main (void)\n\
abort ();\n\ abort ();\n\
}\n\ }\n\
exit (0);\n\ exit (0);\n\
}\n", srcdir, filecnt, filecnt); }\n", filecnt, filecnt);
fclose (outfile); fclose (outfile);
sprintf (destptr, "t%03d_test.h", filecnt); sprintf (destptr, "t%03d_test.h", filecnt);
outfile = fopen (destbuf, "w"); outfile = fopen (destbuf, "w");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment