[Bug tree-optimization/30744] New: ICE in compare_values, at tree-vrp.c:466

gkatsi at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 9 11:22:00 GMT 2007


The following causes an ICE
$ gcc -v
Using built-in specs.
Target: i386-apple-darwin8.8.1
Configured with: ../configure --prefix=/Users/gkatsi/pkgs/gcc-4.2.pre
--enable-languages=c,c++ --enable-__cxa_atexit
Thread model: posix
gcc version 4.2.0 20070209 (prerelease)
$ cat tt2.c
typedef struct {
  unsigned long unique;
} G;

void r(G* n)
{
  unsigned long p;
  if (((G *) ((void *)((~(unsigned long)(p))))) != ((void *)0)) {
    ((G *) ((void *)((~(unsigned long)(p)))))->unique = n->unique;
  }
}
$ gcc -O2 -c tt2.c
tt2.c: In function 'r':
tt2.c:6: internal compiler error: in compare_values, at tree-vrp.c:466
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It also happens on i686-pc-linux-gnu with gcc version 4.2.0 20070207


-- 
           Summary: ICE in compare_values, at tree-vrp.c:466
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gkatsi at gmail dot com
 GCC build triplet: i386-apple-darwin8.8.1
  GCC host triplet: i386-apple-darwin8.8.1
GCC target triplet: i386-apple-darwin8.8.1


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



More information about the Gcc-bugs mailing list