This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix-header coredump fix
- To: gcc-patches at gcc dot gnu dot org
- Subject: fix-header coredump fix
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 11 Dec 2000 18:20:27 +0000
This fixes it for the moment; a better fix is coming up.
Neil.
* fix-header.c: Macro expansion is not a file buffer.
Index: fix-header.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fix-header.c,v
retrieving revision 1.57
diff -u -p -r1.57 fix-header.c
--- fix-header.c 2000/12/11 07:45:16 1.57
+++ fix-header.c 2000/12/11 18:19:37
@@ -652,7 +652,7 @@ read_scan_file (in_fname, argc, argv)
/* Scan the macro expansion of "getchar();". */
cpp_push_buffer (scan_in, getchar_call, sizeof(getchar_call) - 1,
- BUF_FILE, in_fname);
+ BUF_BUILTIN, in_fname);
for (;;)
{
cpp_token t;