------- Comment #3 from pinskia at gcc dot gnu dot org 2008-03-12 06:28 ------- (In reply to comment #2) > 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.
Why do you think it will not work well with LTO? The instrumentation and annotation already happens at the same place which is why the same options are required. They just happen after some inlining and other early optimization to make sure the profiling does not get too slow. -- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35544