GCC problem with using "-fprofile-arcs"
Wei.Feng@sybase.com
Wei.Feng@sybase.com
Thu Feb 17 15:36:00 GMT 2005
Hi, there:
I tried using the "-fprofile-arcs" and "-fbranch-probabilities" to build a
profile based optimized binary, but got some complain about the .da files.
The OS: Red Hat Enterprise Linux WS release 3 (Taroon Update 3) Kernel
2.4.21-20.ELsmp on an x86_64
The GCC: gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
I use "-fprofile-arcs' to compile and build the instrumented binary,
command is sth. like:
gcc -c -pipe -m64 -fno-omit-frame-pointer -fprofile-arcs -p -O -D... -I...
-o treeprint.o treeprint.c
Then run the binary, more than 900 .da file created. (A big application)
Finally, use "-fbranch-probabilities" to build again, most of the files
got success, only 5 failed. Command is sth. like:
gcc -c -pipe -m64 -fno-omit-frame-pointer -fbranch-probabilities -p -O
-D... -I... -o treeprint.o treeprint.c
The fail message is:
/usr/include/bits/sigset.h: At top level:
/usr/include/bits/sigset.h:119: .da file contents not exhausted
...failed Cc treeprint.o ...
I wonder if this is a known issue of GCC (A Bug)?
Or there are some limitations of using "-fprofile-arcs"?
Such as you can not combine it with "-O", "-O2" etc. Or you can not have
"goto" in the source files etc.?
Thanks
Wei
More information about the Gcc-help
mailing list