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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to