aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2006-01-19 16:57:43 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2006-01-19 08:57:43 -0800
commitd103fa240f8cd5cbde8329a390e7b7430c4b5b1a (patch)
tree64781f44b05dce27b238b48b7164a1b2a37e39c0 /gcc/testsuite
parent50674e968a56527fa78d2fa78651276e696b64fd (diff)
downloadgcc-d103fa240f8cd5cbde8329a390e7b7430c4b5b1a.zip
gcc-d103fa240f8cd5cbde8329a390e7b7430c4b5b1a.tar.gz
gcc-d103fa240f8cd5cbde8329a390e7b7430c4b5b1a.tar.bz2
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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bc23ccb..f39f40f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c b/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c
index 31f328e..4b5d5c6 100644
--- a/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c
+++ b/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c
@@ -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");