This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug and fix for cpp


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]