[LLVMbugs] [Bug 22695] New: [SPARC64] clang 3.6 error: unknown directive ".xword"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 25 06:47:01 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22695

            Bug ID: 22695
           Summary: [SPARC64] clang 3.6 error: unknown directive ".xword"
           Product: libraries
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: Sparc
          Assignee: unassignedbugs at nondot.org
          Reporter: markus at oberhumer.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

It seems there are still some issues with the sparc integrated as:

$ cat test.c

static const long table[] = { 2, 3, 5, 7 };

long foo(int a) { return table[a]; }

// EOF


$ clang-3.6.0rc4 -target sparc64-linux-gnu -Wall -W -O2 -save-temps -c test.c
[... driver warnings about floating point, see bug 22489 ...]
test.s:24:2: error: unknown directive
        .xword  2                       ! 0x2
        ^
test.s:25:2: error: unknown directive
        .xword  3                       ! 0x3
        ^
test.s:26:2: error: unknown directive
        .xword  5                       ! 0x5
        ^
test.s:27:2: error: unknown directive
        .xword  7                       ! 0x7
        ^


Interestingly it works when *NOT* using -save-temps (which makes me wonder
what -save-temps actually does):

$ clang-3.6.0rc4 -target sparc64-linux-gnu -Wall -W -O2 -c test.c
clang: warning: unknown platform, assuming -mfloat-abi=soft
'+soft-float' is not a recognized feature for this target (ignoring feature)
'+soft-float' is not a recognized feature for this target (ignoring feature)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150225/82944593/attachment.html>


More information about the llvm-bugs mailing list