[Bug middle-end/35544] Error with -fprofile-use

2008-03-12 Thread xinliangli at gmail dot com
--- Comment #11 from xinliangli at gmail dot com 2008-03-13 06:20 --- (In reply to comment #10) > Subject: Re: New: Error with -fprofile-use > > xinliangli at gmail dot com wrote: > > In the following example, profile data generated by -O0 binary run can not > > be > > used for profi

[Bug middle-end/35544] Error with -fprofile-use

2008-03-12 Thread wilson at tuliptree dot org
--- Comment #10 from wilson at tuliptree dot org 2008-03-13 06:02 --- Subject: Re: New: Error with -fprofile-use xinliangli at gmail dot com wrote: > In the following example, profile data generated by -O0 binary run can not be > used for profile-use at -O2. This is either a bug or de

[Bug middle-end/35544] Error with -fprofile-use

2008-03-12 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2008-03-12 10:08 --- GCC inserts code to update counters inline. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/35544] Error with -fprofile-use

2008-03-12 Thread xinliangli at gmail dot com
--- Comment #8 from xinliangli at gmail dot com 2008-03-12 07:17 --- (In reply to comment #5) > For reference see: > http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01205.html > http://gcc.gnu.org/ml/gcc-patches/2005-03/msg00200.html > http://gcc.gnu.org/ml/gcc/2005-12/msg00215.html > > An

[Bug middle-end/35544] Error with -fprofile-use

2008-03-12 Thread xinliangli at gmail dot com
--- Comment #7 from xinliangli at gmail dot com 2008-03-12 07:12 --- (In reply to comment #6) > I should note that when GCC emits the annotations for profiling, it actually > emits the counter updates and all and other optimizations don't need to know > about them except if they want to

[Bug middle-end/35544] Error with -fprofile-use

2008-03-11 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2008-03-12 06:52 --- I should note that when GCC emits the annotations for profiling, it actually emits the counter updates and all and other optimizations don't need to know about them except if they want to know the information about w

[Bug middle-end/35544] Error with -fprofile-use

2008-03-11 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-03-12 06:50 --- For reference see: http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01205.html http://gcc.gnu.org/ml/gcc-patches/2005-03/msg00200.html http://gcc.gnu.org/ml/gcc/2005-12/msg00215.html And most likely a couple others too.

[Bug middle-end/35544] Error with -fprofile-use

2008-03-11 Thread xinliangli at gmail dot com
--- Comment #4 from xinliangli at gmail dot com 2008-03-12 06:40 --- (In reply to comment #3) > (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

[Bug middle-end/35544] Error with -fprofile-use

2008-03-11 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug middle-end/35544] Error with -fprofile-use

2008-03-11 Thread xinliangli at gmail dot com
--- 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 a

[Bug middle-end/35544] Error with -fprofile-use

2008-03-11 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-03-12 06:04 --- This is by design, you need to use the same options for -fprofile-use as you do for -fprofile-generate. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -