[Bug rtl-optimization/27735] ice with -O3 on legal code [unswitch]

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 23 04:13:00 GMT 2006



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-05-23 04:12 -------
Reduced testcase:
void set_color(void);
void xml_colorize_line(unsigned int *p, int state)
{
    int c;
    switch(state) 
    {
        case 1:
            goto parse_tag;
        case 2:
            goto parse_comment;
    }
    for(;;) 
    {
        c = *p;  
        if (c == '<' && state == 0) 
        {
parse_comment: ;
            while (*p != '\n') 
                state = 3;
parse_tag: ;
            while (*p != '\n') 
                state = 0;
            set_color();
        }
        else
            p++;
    }
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-23 04:12:58
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27735



More information about the Gcc-bugs mailing list