[Bug tree-optimization/51481] [4.7 Regression] ice: dead STMT in EH table

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 9 09:07:00 GMT 2011


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu.org

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-09 09:01:29 UTC ---
The following fails with -O -fexceptions -fipa-cp -fipa-cp-clone:

typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
extern struct _IO_FILE *stderr;
extern __const unsigned short int **__ctype_b_loc (void) 
     __attribute__ ((__nothrow__)) __attribute__ ((__const));
struct abcsym {
    unsigned short colnum;
    int linenum;
};
struct SYMBOL {
    struct abcsym as;
};
typedef struct SYMBOL *INFO[26];
extern INFO info;
void error(int sev,     struct SYMBOL *s,     char *fmt, ...);
void bug(char *msg, int fatal)
{
  error(1, 0, "Internal error: %s.", msg);
}
void error(int sev,     struct SYMBOL *s,     char *fmt, ...)
{
  va_list args;
  static struct SYMBOL *t;
  if (t != info['T' - 'A'])
    {
      char *p;
      t = info['T' - 'A'];
      while ((*__ctype_b_loc ())[(int) (((unsigned char) *p))])
        p++;
    }
  __builtin_fprintf(stderr, sev == 0 ? "Warning " : "Error ");
  if (s != 0)
      __builtin_fprintf(stderr, "in line %d.%d", s->as.linenum, s->as.colnum);
  __builtin_va_end(args);
}



More information about the Gcc-bugs mailing list