This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
The following code is miscompiled (no error with -O2 -fPIC or without -fPIC): int xargc; int iargcx() { return (xargc); } int main(int argc, char **argv) { xargc=argc; return (iargcx()); } The function "iargcx" is responsible for the problem. Command line: gcc -O3 -fPIC file.c, gcc configured with: ./configure --prefix=/usr --enable-languages=c --host=i386-slackware-linux --disable-libgcj --disable-nls
This is a dup of bug 10877 which means you have to have a newer binutils. *** This bug has been marked as a duplicate of 10877 ***