This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug and fix for cpp
- To: bug-gcc at gnu dot org
- Subject: bug and fix for cpp
- From: Greg Wolodkin <greg at mathworks dot com>
- Date: Mon, 29 Nov 1999 15:30:52 -0500
- Cc: mkarr at mathworks dot com
Hi -
The following is a patch which fixes a bug we've seen in gcc 2.95.2,
tickled by some hairy macros. Included are two simple examples which
illustrate the bug, and a diff which fixes the problem.
* error1.c --- a source file that hits an internal error
* error2.c --- a source file that has garbage in preprocessor output
* cccp.c.diff --- changes to cccp.c (from gcc-2.95.2)
Mike Karr is responsible for the find and the fix -- I'm merely a
messenger.. the diff and the two c files can be found at
ftp://ftp.mathworks.com/outgoing/users/wolodkin/gcc/cpp_macro_bug.tar.gz
Let me know if we can do more.
Thanks!
Greg