Agreed, but if I understood NewB correctly his problem occurs by compiling main.c
as posted (no linking). In this case I don't see it being a problem with prototypes
but then again, I didn't have my morning cup of coffee yet

I am not too fond of "-fweb -frename-registers -fgcse-after-reload" in your CFLAGS, but
I am not sure if it is related to your problem at all. Hard to tell.

As mentioned, the entire, compilable source would help. Nobody can try to reproduce the problem with only fragments of the code.

You can try to have a look at the preprocessed source by running "gcc -Wall -ansi main.c -E -o main.i" and then look at the file main.i for the error. (Or put that file somewhere where we can see it, but note that it might be a bit long for posting on the forum).

Edit: Disregard the following, I see you already tried 4.1.1 in the first post. Finally, I see that gcc-4.1.1-r3 is the latest stable gcc, so I guess 4.1.2 is masked. Did you try the latest stable version? Maybe it's a problem with 4.1.2.