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]

bug and fix for cpp


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]