This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0 wierdness
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Finny Merrill <griever at t2n dot org>
- Cc: gcc at gnu dot org
- Date: Thu, 20 Dec 2001 13:22:43 -0800
- Subject: Re: 3.0 wierdness
- References: <20011220203423.A7461@daikokuya.demon.co.uk> <Pine.LNX.4.33.0112201456410.16282-100000@linux.ircd-net.org>
On Thu, Dec 20, 2001 at 02:59:50PM -0600, Finny Merrill wrote:
> On Thu, 20 Dec 2001, Neil Booth wrote:
>
> > Finny Merrill wrote:-
> >
> >
> > Your file doesn't have 703 lines; and preprocesses fine for me. So
> > something else is the real problem.
> >
> > Neil.
> >
> The file I pasted it from has 703 lines, and it only happens when gcc
> 3.0.x is combined with a version of glibc that defines printf as a macro
> but here's a different example:
>
> #include <stdio.h>
>
> int main() {
> #define TEST "blah"
> #define print_foo(x) puts(x)
>
> print_foo(TEST);
> return 0;
> }
Compiles without error with my copy of gcc 3.0. Send the entire
703-line file that you know causes the problem. Otherwise we'll just
chase our tails all day.
zw