TARGET_SCHED_PROLOG defined twice
Marcin Dalecki
martin@dalecki.de
Wed Oct 18 13:46:00 GMT 2006
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
More information about the Gcc
mailing list