This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TARGET_SCHED_PROLOG defined twice



On 2006-10-18, at 12:15, Steven Bosscher wrote:


On 10/18/06, Marcin Dalecki <martin@dalecki.de> wrote:
Looking at rs6000.opt I have found that the above command line switch
variable is defined TWICE:

msched-prolog
Target Report Var(TARGET_SCHED_PROLOG) Init(1)
Schedule the start and end of the procedure

msched-epilog
Target Undocumented Var(TARGET_SCHED_PROLOG) VarExists

This appears of course to be wrong.

The latter probably ought to be TARGET_SCHED_EPILOG, if that exists, eh?

Actually the second of the two is marked as Undocumented and hidden silent option.
Most likely it was used during the compiler backend development for optimization testing.
The best solution appears to be just to delete it, since it will give proper meaning to the
msched-prolog, because as it is the first option may well alias the second due to
different variable preinitalization and link order.


Apparently we also don't have test cases to actually verify that the
proper forms of these options are accepted and have the desired
effect...

Marcin Dalecki




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]