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

* [Bug c/53262] ICE compiling busybox 1.19.3 with gcc 4.7.0
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-07 11:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |i?86-*-*

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-07 11:15:15 UTC ---
Works for me on x86_64 with -m32.


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

* [Bug middle-end/53262] ICE compiling busybox 1.19.3 with gcc 4.7.0
  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 ` ncahill_alt at yahoo dot com
  2012-05-08 10:20 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ncahill_alt at yahoo dot com @ 2012-05-07 18:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from ncahill_alt at yahoo dot com 2012-05-07 17:54:44 UTC ---
Unfortunately, this is no longer happening for me.  I have made system changes
today but no changes to gcc at all.  But now the test passes just fine.  So
there is no longer any problem.  If it happens again, I'll be sure to report
that.  But yeah, it works.  It can only really be because of a difference in
the layout of the /dev folder.  But there is now no problem.

Please mark this as presumed working.  Thanks.

Neil Cahill.


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

* [Bug middle-end/53262] ICE compiling busybox 1.19.3 with gcc 4.7.0
  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
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-08 10:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-08 10:16:41 UTC ---
Fixed then.


^ 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).