aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/cpp/trad/include.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1ddbda0..a5a2d1d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-19 Ben Elliston <bje@au.ibm.com>
+
+ * gcc.dg/cpp/trad/include.c: #include stdlib.h instead of stdio.h,
+ as newlib's stdio.h uses non-traditional cpp constructs.
+
2006-12-18 Brooks Moses <brooks.moses@codesourcery.com>
* gfortran.dg/advance.f90: Renamed to advance_1.f90
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/include.c b/gcc/testsuite/gcc.dg/cpp/trad/include.c
index 9ca184b..ada8178 100644
--- a/gcc/testsuite/gcc.dg/cpp/trad/include.c
+++ b/gcc/testsuite/gcc.dg/cpp/trad/include.c
@@ -4,6 +4,6 @@
/* { dg-do preprocess } */
-#define __STDC__ 1 /* Stop complaints about non-ISO compilers. */
-#define stdio 1
-#include <stdio.h> /* { dg-bogus "o such file or directory" } */
+#define __STDC__ 1 /* Stop complaints about non-ISO compilers. */
+#define stdlib 1
+#include <stdlib.h> /* { dg-bogus "o such file or directory" } */