This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug and fix for cpp
- To: mkarr at mathworks dot com
- Subject: Re: bug and fix for cpp
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Tue, 30 Nov 1999 11:55:31 -0500
- CC: Greg Wolodkin <greg at mathworks dot com>, bug-gcc at gnu dot org
- Organization: Cygnus Solutions Canada Ltd
- References: <199911292030.PAA19032@mojo.dhcp>
Hi Mike,
I can see that the patch is safe (i.e. it won't break anything), but I need to
understand why it is necessary. Can you point out where in the existing code
problems arise with your test cases? I assume that the free_ptr on the input
stack is freed at some point where it is still needed.
Thanks,
Dave
Greg Wolodkin wrote:
> 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