This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/52883] New: ICE in simplify_const_unary_operation, at simplify-rtx.c:1464


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

             Bug #: 52883
           Summary: ICE in simplify_const_unary_operation, at
                    simplify-rtx.c:1464
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: regehr@cs.utah.edu
                CC: chenyang@cs.utah.edu


[regehr@dyson r2]$ current-gcc -c -O small.c
small.c: In function 'fn2':
small.c:21:1: internal compiler error: in simplify_const_unary_operation, at
simplify-rtx.c:1464
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


[regehr@dyson r2]$ cat small.c 
int a, b, d, e, f, i, j, k, l, m;
unsigned c;
int g[] = { }
          , h[0];
int
fn1 () {
  return 0;
}
void
fn2 () {
  c = 0;
  e = 0;
  for (;; e = 0)
    if (f > j) {
      k = fn1 ();
      l = (d || k) * b;
      m = l * a;
      h[0] = m <= i;
    } else
      i = g[c];
}


[regehr@dyson r2]$ current-gcc -v
Using built-in specs.
COLLECT_GCC=current-gcc
COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r186167-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --with-libelf=/usr/local --enable-lto
--prefix=/home/regehr/z/compiler-install/gcc-r186167-install
--program-prefix=r186167- --enable-languages=c,c++
Thread model: posix
gcc version 4.8.0 20120405 (experimental) (GCC)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]