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

           Summary: internal compiler error: in gen_lsm_tmp_name, at
                    tree-ssa-loop-im.c:2048
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: reg...@cs.utah.edu
                CC: arthur.j.odw...@gmail.com


[regehr@gamow tmp040]$ current-gcc -Ofast small.c

small.c: In function 'main':
small.c:40:5: internal compiler error: in gen_lsm_tmp_name, at
tree-ssa-loop-im.c:2048
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

[regehr@gamow tmp040]$ current-gcc -v

Using built-in specs.
COLLECT_GCC=current-gcc
COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r176182-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.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-r176182-install
--program-prefix=r176182- --enable-languages=c,c++
Thread model: posix
gcc version 4.7.0 20110711 (experimental) (GCC) 

[regehr@gamow tmp040]$ cat small.c


int safe_14 (int si1, int si2) {
  return 0;
}

struct S0 {
  int f5;
};

struct S1 {
};

int g_60[100];
int g_61;
int g_62;
struct S0 g_74;
int g_104;
struct S1 g_660;

int func_75 (struct S0 *p_78) {
 lbl_126:
  for (; 0;)
    goto lbl_126;
  return 0;
}

struct S0 *func_80 (void) {
  int l_90;
  for (l_90 = 0; l_90 <= 4; l_90 += 1)
    for (; g_74.f5 <= 0; g_74.f5 = 1)
      {
    int i;
    for (i = 0; i < 4; i++)
      for (g_104 = 0; g_104; g_104 = 1)
        {
        }
      }
  return 0;
}

int main (void) {
  for (g_61 = 0; g_61 <= 0; g_61 += 1) {
    for (; g_62; g_62 -= 0) {
      long *l_132 = 0;
      safe_14 (g_60[g_61] = 0, func_75 (func_80 ())), *l_132 = (func_80 (), 0);
    }
  }
  return 0;
}

Reply via email to