[LLVMbugs] [Bug 1805] New: llvm-g++ emits trees for computed labels too late
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Nov 16 09:18:28 PST 2007
http://llvm.org/bugs/show_bug.cgi?id=1805
Summary: llvm-g++ emits trees for computed labels too late
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Consider the following easy testcase:
int baz(void*);
int foo() {
static void* bar[] = { &&bb1, &&bb2, &&bb3 };
switch (baz(bar)) {
case 1:
goto bb1;
case 2:
goto bb2;
default:
goto bb3;
}
bb1: return 1;
bb2: return 2;
bb3: return 3;
}
It works with both llvm-g++ and llvm-gcc for 4.0, works for llvm-gcc 4.2, but
not for llvm-g++ 4.2 :( Looks like some sort of "regression".
--
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