Switch case ordering

Paulo J. Matos pocmatos@gmail.com
Wed Sep 8 14:15:00 GMT 2010


Hello,

I have noticed that at least in GCC4.3 the switch cases are ordered
somewhere in a pass, since they arrive at expand pass ordered in
increasing order. 

Can anyone tell me if I can assume this always to happen and where this
is happening? I couldn't find any reference to this in the internal
docs.

Cheers,
-- 
PMatos



More information about the Gcc mailing list