This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
New bug in cpp, bogus macro redefinition warnings
- To: zack at wolery dot cumb dot org
- Subject: New bug in cpp, bogus macro redefinition warnings
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 1 Mar 2000 11:24:37 -0500 (EST)
- Cc: egcs-bugs at egcs dot cygnus dot com
Bootstrapping last night's snapshot on sparc-sun-solaris2.7 exposed a
new bug in cpp. I get large amounts of macro redefinition warnings
(~1200) from the system headers.
They come from macros defined to the same value more than once, but
one instance is followed by a comment. E.g. you can see what I mean
in the following two line file.
> #define FOO 10 /* sdf */
> #define FOO 10
(Perhaps you want to install this as a test case.)
With last night's "gcc version 2.96 20000229 (experimental)", it gives:
> foo.c:2:14: warning: `FOO' redefined
> foo.c:1:11: warning: this is the location of the previous definition
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions