Trying to compile amaya 2.1 I get errors like this: ../../thotlib/unicode/ustring.c: In function `ustrcpy': ../../thotlib/unicode/ustring.c:380: void value not ignored as it ought to be ../../thotlib/unicode/ustring.c: In function `ustrdup': ../../thotlib/unicode/ustring.c:397: void value not ignored as it ought to be ../../thotlib/unicode/ustring.c: In function `ustrncpy': ../../thotlib/unicode/ustring.c:481: void value not ignored as it ought to be When I compile without -O it works fine. I get this behavior in egcs-1.1.2-12 on intel and egcs-1.1.2-12 & -13 on sparc, both with 6.0 (sparc with updated kernel). There is no problem with gcc-2.7.2.3-11 on my redhat 5.1 machine.
Please send the output of gcc -E on the file in question, combined with the exact command line (e.g "gcc -g -O foo.c") required to get the error. Incidentally, I would guess the difference between your two systems is because of different libraries rather than gcc2.7 vs. egcs. But send in the code and I'll have a look.
Created attachment 79 [details] Test case and further discussion from reporter
The glibc headers should fix this in the current rawhide version