On Wed, Sep 1, 2010 at 11:11 AM, Paulo J. Matos <pocma...@gmail.com> wrote: > Richard Guenther <richard.guent...@gmail.com> writes: > >>> >>> I'd kinda hope that doing the optimization at the tree level means >>> expand_case >>> doesn't have to handle both types. The tree code converts sparse case >>> ranges >>> to explicit conditionals (or a switch on a compact perfect hash), so >>> anything >>> left to RTL expansion must be a jump table. >> > > You are right, I haven't thought about it but it does make sense. If I > want to provide a patch for this, would it be ok if its a patch against > gcc 4.4.4, or would it be better if its against the latest 4.5.1? Is > there any policy regarding this?
Patches should be submitted against SVN trunk head as this is a new feature and thus will not go on the 4.4 or 4.5 branches. Richard.