This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] edge insertion/split problem
- From: law at redhat dot com
- To: Andrew MacLeod <amacleod at redhat dot com>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Mon, 16 Jun 2003 18:26:45 -0600
- Subject: Re: [tree-ssa] edge insertion/split problem
- Reply-to: law at redhat dot com
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