[LLVMbugs] [Bug 856] NEW: ICE returning register var from static function

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jul 31 18:28:23 PDT 2006


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

           Summary: ICE returning register var from static function
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca


This code ICEs:

  static int foo() {
    register int i;
    return i;
  }

with the error:

  bug.c: In function ‘foo’:
  bug.c:2: internal compiler error: in lhd_set_decl_assembler_name, at
langhooks.c:193
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://llvm.org/bugs> for instructions.

Removing either static from foo() or register from i will work around the ICE.
Note that this is also used in the case where regparm is on.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list