public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13665] New: Compiler gets internal error on valid code
@ 2004-01-13  2:04 gcc-bugzilla at gcc dot gnu dot org
  2004-01-13  2:10 ` [Bug optimization/13665] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-01-13  2:04 UTC (permalink / raw)
  To: gcc-bugs


    Compiler main pass gets internal compiler error on supplied test case, which is
    stripped down from real code in the winsup sources.

Environment:
System: Linux fred.ninemoons.com 2.4.22-1.2140.nptl #1 Tue Jan 6 20:20:25 EST 2004 i686 athlon i386 GNU/Linux
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-mingw32
configured with: /src/sourceware/gcc/gcc/configure -v --target=i686-pc-mingw32 --prefix=/usr/local/sourceware --enable-languages=c,c++

How-To-Repeat:

    $ cat /tmp/bug6.i
    typedef long long long long;
    typedef unsigned long long uintmax_t;
    int* __attribute__((__cdecl__)) _errno(void);
     
    long long
    strtoimax (nptr, endptr, base)
         register const char * __restrict__ nptr;
         char ** __restrict__ endptr;
         register int base;
    {
      register unsigned long long accum;
      register int n;
      int toobig;
     
      for ( toobig = 0; n = (isdigit(*nptr) ? (*nptr) - '0' : isupper(*nptr) ? (*nptr) - 'A' + 10 : islower(*nptr) ? (*nptr) - 'a' + 10 : -1 ), ((n) >= 0 && (n) < (base)); ++nptr )
        if ( accum > (unsigned long long)(9223372036854775807LL / base + 2) )
          toobig = 1;
        else
          accum = base * accum + n;
      if ( endptr != ((void *)0) )
        *endptr = (char *)nptr;
    }
    
    $ ./cc1 -O2 /tmp/bug6.i
    /tmp/bug6.i:1: warning: useless keyword or type name in empty declaration
    /tmp/bug6.i:1: warning: empty declaration
     strtoimax
     
    Analyzing compilation unit
    Performing intraprocedural optimizations
    Assembling functions:
     strtoimax
     
    /tmp/bug6.i: In function `strtoimax':
    /tmp/bug6.i:22: internal compiler error: virtual array alias sets[6]: element 4294967294 out of bounds in get_alias_set_entry, at alias.c:217
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: Compiler gets internal error on valid code
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fnf at ninemoons dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-mingw32


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


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

* [Bug optimization/13665] [3.4 Regression] Compiler gets internal error on valid code
  2004-01-13  2:04 [Bug c/13665] New: Compiler gets internal error on valid code gcc-bugzilla at gcc dot gnu dot org
@ 2004-01-13  2:10 ` pinskia at gcc dot gnu dot org
  2004-01-13 20:50 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-13  2:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-13 02:10 -------
Jan I think this is caused by your patch to the aliasing code, could you have a look?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
          Component|c                           |optimization
           Keywords|                            |ice-on-valid-code
            Summary|Compiler gets internal error|[3.4 Regression] Compiler
                   |on valid code               |gets internal error on valid
                   |                            |code
   Target Milestone|---                         |3.4.0
            Version|3.4                         |3.4.0


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


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

* [Bug optimization/13665] [3.4 Regression] Compiler gets internal error on valid code
  2004-01-13  2:04 [Bug c/13665] New: Compiler gets internal error on valid code gcc-bugzilla at gcc dot gnu dot org
  2004-01-13  2:10 ` [Bug optimization/13665] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2004-01-13 20:50 ` pinskia at gcc dot gnu dot org
  2004-01-13 21:23 ` kazu at cs dot umass dot edu
  2004-01-14 13:59 ` zlomek at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-13 20:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-13 20:50 -------
I can confirm this on i686-pc-openbsd3.1, it is a regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |hubicka at gcc dot gnu dot
                   |dot org                     |org
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-13 20:50:40
               date|                            |


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


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

* [Bug optimization/13665] [3.4 Regression] Compiler gets internal error on valid code
  2004-01-13  2:04 [Bug c/13665] New: Compiler gets internal error on valid code gcc-bugzilla at gcc dot gnu dot org
  2004-01-13  2:10 ` [Bug optimization/13665] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2004-01-13 20:50 ` pinskia at gcc dot gnu dot org
@ 2004-01-13 21:23 ` kazu at cs dot umass dot edu
  2004-01-14 13:59 ` zlomek at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-01-13 21:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2004-01-13 21:23 -------
Reduced to:

void
foo (const char * __restrict__ p, char ** __restrict__ q)
{
  if (*p)
    ;
  *q = 0;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kazu at cs dot umass dot edu


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


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

* [Bug optimization/13665] [3.4 Regression] Compiler gets internal error on valid code
  2004-01-13  2:04 [Bug c/13665] New: Compiler gets internal error on valid code gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-01-13 21:23 ` kazu at cs dot umass dot edu
@ 2004-01-14 13:59 ` zlomek at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: zlomek at gcc dot gnu dot org @ 2004-01-14 13:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zlomek at gcc dot gnu dot org  2004-01-14 13:59 -------
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01234.html

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


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


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

end of thread, other threads:[~2004-01-14 13:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13  2:04 [Bug c/13665] New: Compiler gets internal error on valid code gcc-bugzilla at gcc dot gnu dot org
2004-01-13  2:10 ` [Bug optimization/13665] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-01-13 20:50 ` pinskia at gcc dot gnu dot org
2004-01-13 21:23 ` kazu at cs dot umass dot edu
2004-01-14 13:59 ` zlomek at gcc dot gnu dot 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).