This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
About the gcc profile optimization
- From: "Chen Ken" <chenken at mprc dot pku dot edu dot cn>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 1 May 2003 16:33:04 +0800
- Subject: About the gcc profile optimization
When I am now using gcc to learn something about profile optimization,
I found while using gcc with the option -fprofile-arcs to get the .da file,
and with the -fbranch-probabilities option to recompile the program.
sometimes the error below may be printed (sometimes it do not happen,
seems depending on different system and computer, but it did happen
frequently. For example, you can add -O or -O2 option with the profile
optimization by yourself to compile some other programs, soon you will
find the error.).
Is this a bug of gcc? Can I get rid of it?
Thanks for your help. If you know something about this, please let me
know as soon as possible.
$ gcc -O2 -fbranch-arcs -o compress compress.c
$ ./compress sourcefile
$ gcc -O2 -fbranch-probabilities -o compress compress.c
/usr/include/sys/stat.h: At top level:
/usr/include/sys/stat.h:367: .da file contents not exhausted
yours sincerely,
Chen Ken
Microprocessor Research & Development Center, Peking University
Tel: +86(010)62765828 ext. 872
chenken@mprc.pku.edu.cn