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: [tree-ssa] edge insertion/split problem


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



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