[LLVMbugs] [Bug 3987] New: clang generates invalid assembly for Objective C code in 64 bit mode

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Apr 14 12:27:00 PDT 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: llvmbugs at cs.uiuc.edu


$ 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.



More information about the llvm-bugs mailing list