http://llvm.org/bugs/show_bug.cgi?id=3987
Summary: clang generates invalid assembly for Objective C code in
64 bit mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: MacOS X
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
$ cat test.m
#import <Foundation/Foundation.h>
@protocol Foo
@end
@interface Test : NSObject <Foo>
@end
@implementation Test
@end
If this code is compiled with clang in 64 bit mode 'as' complains:
$ clang -m64 test.m
/tmp/cc-USvXbC.s:27:FATAL:symbol: l_OBJC_LABEL_PROTOCOL_$_Foo can't be a
weak_definition (currently only supported in section of type coalesced)
The code assembles fine in 32 bit mode.
(I don't know much Objective C so the test case might be reduced further. I've
extracted this from transmission)
I'm using OS X 10.5.6 (intel) and clang/llvm r69067.
$ as -v
Apple Inc version cctools-698~13, GNU assembler version 1.38
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs