re PR preprocessor/15067 (Minor glitch in the source of cpp.)
authorPer Bothner <per@bothner.com>
Fri, 23 Apr 2004 01:41:04 +0000 (18:41 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 23 Apr 2004 01:41:04 +0000 (18:41 -0700)
* cppinit.c (cpp_read_main_file):  Return NULL rather than false.
Fixes PR preprocessor/15067.

From-SVN: r81068

gcc/ChangeLog
gcc/cppinit.c

index 2a805a2fdba874160ce07f2c4de0c9366e8604b3..e75c903e5df8f0d62fbb8b5405c1b25f4ba2df5e 100644 (file)
@@ -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
index a6da0b69b6f6186727d81ff6682260068a891b5d..84fa520953bafb0c1231f6a5963463ab91079d6e 100644 (file)
@@ -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);