Re: Switch case ordering

2010-09-09 Thread Paulo J. Matos
Richard Henderson writes: > On 09/08/2010 02:25 PM, Paulo J. Matos wrote: >> Should I discuss it with someone? > > Almost certainly. How about everyone? I would post your progress > to gcc-patches and ask for comments. I will try to get something into gcc-patches soon. Thanks. -- PMatos

Re: Switch case ordering

2010-09-08 Thread Richard Henderson
On 09/08/2010 02:25 PM, Paulo J. Matos wrote: > To submit a patch for a new pass for review, is there any due date for > inclusion on the next version? Yes, I recall seeing a message about this. http://gcc.gnu.org/ml/gcc/2010-08/msg00477.html > Should I discuss it with someone? Almost certain

Re: Switch case ordering

2010-09-08 Thread Paulo J. Matos
On Wed, Sep 8, 2010 at 3:47 PM, Richard Henderson wrote: > Yes, you can assume this. > > It happens in sort_case_labels, initially called by gimplify_switch_expr. > > Great, thanks. To submit a patch for a new pass for review, is there any due date for inclusion on the next version? Should I disc

Re: Switch case ordering

2010-09-08 Thread Richard Henderson
On 09/08/2010 07:15 AM, Paulo J. Matos wrote: > 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 h