[LLVMbugs] [Bug 958] NEW: case branch tables: as complains "complex expression, absolute segment assumed"
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Oct 19 15:20:29 PDT 2006
http://llvm.org/bugs/show_bug.cgi?id=958
Summary: case branch tables: as complains "complex expression,
absolute segment assumed"
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: blocker
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: scottm at aero.org
Not sure if the problem is with the assembler or if it is a gcc frontend issue.
However, for gcc/config/darwin-crt3.c:run_routines as well as numerous messages
from compiling gcc/unwind-dw2-fde.c, it's clear that case statements are a
problem. I've attached a patch to work around this issue for the time being to
get a working front end, but clearly this will be an issue.
The version of as installed on my Mac OS 10.4.8 system reports itself as "Apple
Computer, Inc. version cctools-590.18.obj~10, GNU assembler version 1.38" (which
may be the problem, but it's also an issue on 10.3.9 systems too.)
The as statements look like:
LBB8_8: ;bb17
; ...
LBB8_11: ;bb22
; ...
blr
.align 2
.set L8_0_set_8,LBB8_8-LJTI8_0 ; "complex expression, absolute segment
assumed"
.set L8_0_set_11,LBB8_11-LJTI8_0 ; "complex expression, absolute segment
assumed"
LJTI8_0:
.long L8_0_set_8
.long L8_0_set_11
.long L8_0_set_8
.long L8_0_set_11
.long L8_0_set_8
.long L8_0_set_11
------- 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