------- Comment #2 from xinliangli at gmail dot com 2008-03-12 06:24 ------- (In reply to comment #1) > This is by design, you need to use the same options for -fprofile-use as you > do > for -fprofile-generate. >
This model won't work well when -O4 (ipo) is in place. If instrumentation and annotation happens at the same phase in the compiler pipeline, I don't see a reason why such restriction is needed. David -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35544