[Bug driver/13087] New: [3.4 Regression] cannot compile all files at once with executable as output
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Nov 17 17:50:00 GMT 2003
This statement is no longer true for executables from <http://gcc.gnu.org/onlinedocs/gcc/
Overall-Options.html#Overall%20Options>, or invoke.texi:
If you specify -o when compiling more than one input file, or you are producing an executable file
as output, all the source files on the command line will be compiled at once.
Do the following for a test case:
gcc test3.c test2.c -O3 -o test
otool -tv test (or the equivant on your target)
And see that main calls f and does not inline it instead.
test2.c:
int f(){}
test3.c:
int main(){f();}
--
Summary: [3.4 Regression] cannot compile all files at once with
executable as output
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: driver
AssignedTo: geoffk at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13087
More information about the Gcc-bugs
mailing list