aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-04-22 18:41:04 -0700
committerPer Bothner <bothner@gcc.gnu.org>2004-04-22 18:41:04 -0700
commit3092d0fc1bf706c5038eaddc3510ff84c914b8c7 (patch)
tree4d50def74b62aa06385e6dcb928498fb28e88807 /gcc
parent671cb9934365376f15020a184245c1c0a8761127 (diff)
downloadgcc-3092d0fc1bf706c5038eaddc3510ff84c914b8c7.zip
gcc-3092d0fc1bf706c5038eaddc3510ff84c914b8c7.tar.gz
gcc-3092d0fc1bf706c5038eaddc3510ff84c914b8c7.tar.bz2
re PR preprocessor/15067 (Minor glitch in the source of cpp.)
* cppinit.c (cpp_read_main_file): Return NULL rather than false. Fixes PR preprocessor/15067. From-SVN: r81068
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cppinit.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2a805a2..e75c903 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-22 Per Bothner <per@bothner.com>
+
+ * cppinit.c (cpp_read_main_file): Return NULL rather than false.
+ Fixes PR preprocessor/15067.
+
2004-04-23 Andreas Schwab <schwab@suse.de>
* config/ia64/ia64intrin.h: Add intermediate cast to void * to
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index a6da0b6..84fa520 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -471,7 +471,7 @@ cpp_read_main_file (cpp_reader *pfile, const char *fname)
pfile->main_file
= _cpp_find_file (pfile, fname, &pfile->no_search_path, false);
if (_cpp_find_failed (pfile->main_file))
- return false;
+ return NULL;
_cpp_stack_file (pfile, pfile->main_file, false);