[llvm-commits] llvm-gcc on PPC without TARGET_MACHO defined
Nick Lewycky
nicholas at mxc.ca
Sun Nov 4 11:43:20 PST 2007
In llvm-gcc 4.0, "rs6000_output_mi_thunk" in
gcc/config/rs6000/rs6000.c fails to compile unless TARGET_MACHO is
defined. The problem is this block of code:
/* This JMP is in a coalesced section, and Mach-O forbids us to
directly reference anything else in a coalesced section; if
our target gets coalesced away, the linker (static or
dynamic) won't know where to send our JMP. Ergo, force a
stub. */
label_decl = add_compiler_branch_island (function, line_number);
which isn't protected by an "#if TARGET_MACHO". I've been working around
the problem using the attached patch, which simply defines
"branch_island_list" whether TARGET_MACHO is attached or not. Is this
the correct fix?
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: branch-island-list.patch
Type: text/x-diff
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20071104/06d5d2b1/attachment.patch>
More information about the llvm-commits
mailing list