[LLVMbugs] [Bug 2497] New: llvm-gcc segfault

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 25 22:07:12 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2497

           Summary: llvm-gcc segfault
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


This happens with svn 52763 targeting ia32 hosted on Ubuntu Feisty.

[regehr at babel tmp32]$ llvm-gcc -O small.c
small.c:27: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

[regehr at babel tmp32]$ cat small.c
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
uint32_t g_6;
int32_t g_148;
int32_t
func_1 (void)
{
  int16_t l_4;
  uint32_t l_147;
  for (0; 1; l_147 -= 0)
    {
      int8_t l_152;
      if (g_148)
        {
          for (1; 1; --l_152)
            1;
        }
      if (l_4)
        l_4 = g_6;
      else
        {
          g_6 = 1;
        }
    }
}


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list