[tree-ssa] edge insertion/split problem
law@redhat.com
law@redhat.com
Tue Jun 17 02:22:00 GMT 2003
In message <1055806645.9233.458.camel@p4>, Andrew MacLeod writes:
>On Mon, 2003-06-16 at 19:29, law@redhat.com wrote:
>> In message <1055795716.8783.439.camel@p4>, Andrew MacLeod writes:
>
>> > Actually, maybe that is the easiest way to do it. We add an ELSE block
>> >on the fallthrough edge from a COND_EXPR if one doesn't exist. If a
>> >FALLTHRU block exists for a SWITCH, that means there is no default case
>> >right? So we can turn any code on that edge into a DEFAULT case... n'est
>> >pas? Then no farting around with goto's.
>> >
>> >DO I have to fudge much crap to do that?. I suppose the last case in the
>> >switch might need a 'break' goto inserted.
>> Unknown. Rather than making it the last case, I'd make it the first
>> case and have an explicit break at the end of the default. That saves
>> you from having to muck around with the code for any of the other
>> case values.
>>
>
>Oh, isn't there an ordering on the cases?
Unknown. I wouldn't be surprised if they are ordered based on what order
they appear in the source.
Jeff
More information about the Gcc
mailing list