This is the mail archive of the gcc-bugs@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]

[Bug optimization/11741] internal compiler error at gcse.c:5318


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-24 17:06:12
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-24 17:06 -------
Here is the reduced sources:
char* g_strdup (const char *str);

char *convert_label_with_ampersand (const char * _label, int * accelerator_key, int * underbar_pos)
{
    char *p;
    char *label = g_strdup (_label);
    for (p = label;; p++) {
        if (!*p)
            break;
        if (!p[1])
            break;
        if (*p == '&') {
            memcpy (p, p + 1, strlen (p));
            if (*p == '&')
                continue;
            *underbar_pos = (unsigned long) p - (unsigned long) label;
            *accelerator_key = *p;
            return label;
        }
    }
    return label;
}


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