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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-03-31 14:46:11 
UTC ---
A small testcase:

[hjl@gnu-16 bld]$ cat x.c
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c)              (('a' <= (c) && (c) <= 'i')               ||
('j' <= (c) && (c) <= 'r')                   || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
      || toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
[hjl@gnu-16 bld]$ gcc -g -O2 -c -fprofile-use x.c
x.c: In function \u2018main\u2019:
x.c:19:1: note: file /export/gnu/import/git/gcc-test-profile/bld/x.gcda not
found, execution counts estimated
x.c:11:1: internal compiler error: in get_loop_body, at cfgloop.c:831
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-16 bld]$

Reply via email to