------- Comment #4 from tkoenig at gcc dot gnu dot org  2010-03-01 19:27 -------
This now causes an ICE:

i...@linux-fd1f:/tmp> cat haha.c
#define ONE     while (b())
#define TEN     ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE
#define HUN     TEN TEN TEN TEN TEN TEN TEN TEN TEN TEN
#define THOU    HUN HUN HUN HUN HUN HUN HUN HUN HUN HUN

void foo()
{
  /* 1,000 nested whiles.  */
  THOU
  a();
}
i...@linux-fd1f:/tmp> gcc -O3 haha.c
haha.c: In Funktion »foo«:
haha.c:6:6: interner Compiler-Fehler: in compute_antic, bei tree-ssa-pre.c:2557
Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein;
bearbeiten Sie die Quellen zunächst mit einem Präprozessor, wenn es
dienlich ist.
Fehler in der deutschen Übersetzung sind an
translation-team...@lists.sourceforge.net zu melden.

Gehen Sie gemäß den Hinweisen in <http://gcc.gnu.org/bugs.html> vor.

Backtrace:

Breakpoint 1, fancy_abort (file=0xd791f0 "../../trunk/gcc/tree-ssa-pre.c",
line=2557,
    function=0xd799ed "compute_antic") at ../../trunk/gcc/diagnostic.c:728
728     {
(gdb) up
#1  0x00000000008ab23c in compute_antic () at
../../trunk/gcc/tree-ssa-pre.c:2557
2557          gcc_assert (num_iterations < 500);

The gcc_assert appears to be triggered for this case was introduced
by jakub:

118169    dberlin       }
137036      jakub #ifdef ENABLE_CHECKING
118821    dberlin       /* Theoretically possible, but *highly* unlikely.  */
137036      jakub       gcc_assert (num_iterations < 500);
137036      jakub #endif
 81764   dnovillo     }


Resetting to P3 for new triage, as this is now ice-on-valid-code.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot
                   |                            |org, tkoenig at gcc dot gnu
                   |                            |dot org
           Keywords|                            |ice-on-valid-code
           Priority|P2                          |P3


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

Reply via email to