public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53262] New: ICE compiling busybox 1.19.3 with gcc 4.7.0
@ 2012-05-07 10:11 ncahill_alt at yahoo dot com
  2012-05-07 11:18 ` [Bug c/53262] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ncahill_alt at yahoo dot com @ 2012-05-07 10:11 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53262
           Summary: ICE compiling busybox 1.19.3 with gcc 4.7.0
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ncahill_alt@yahoo.com


This code produces an internal compiler error with gcc 4.7.0.  Build it with
this command: gcc -O2 -o a a.c.

This is gcc built from the original 4.7.0 source, x86 32-bit.

**** a.c ******
typedef unsigned int size_t;
enum { 
 _ISalnum = 1  
};
extern __const unsigned short int **__ctype_b_loc (void) __attribute__
((__nothrow__)) __attribute__ ((__const));

void parse_config_file(char *map, size_t len) {
  char *end_3 = map + len - 3;
  char *end_7 = map + len - 7;
  char *p = map;
  char *q;
  int off;
  for (; p <= end_3; p++) {
    if (!(((*__ctype_b_loc ())[(int) ((*p))] & (unsigned short int) _ISalnum)
|| *p == '_'))    continue;
    if (p < end_7 && p[6] == '_') {
      if (!memcmp(p, "CONFIG", 6)) goto conf7;
    }
    continue;

    conf7: off = 7;
    for (q = p; q < end_3+3; q++) {}
    if (q != p) {
      use_config(p, q-p);
    }
  }
}

***** end a.c ****

a.c: In function 'parse_config_file':
a.c:28:10: internal compiler error: Segmentation fault


Thank you.
Neil Cahill.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-08 10:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-07 10:11 [Bug c/53262] New: ICE compiling busybox 1.19.3 with gcc 4.7.0 ncahill_alt at yahoo dot com
2012-05-07 11:18 ` [Bug c/53262] " rguenth at gcc dot gnu.org
2012-05-07 18:39 ` [Bug middle-end/53262] " ncahill_alt at yahoo dot com
2012-05-08 10:20 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).