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

           Summary: Can't compile test code using unwind.h
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


[~]> clang -v
clang version 2.9 (trunk 120281)
Target: x86_64-unknown-linux-gnu
Thread model: posix

[~]> cat test.c
#include <unwind.h>

int main ()
{
    struct _Unwind_Exception exc;
    struct _Unwind_Context *context;
    _Unwind_GetCFA (context);

    return 0;
}

[~]> clang test.c   
In file included from test.c:1:
/usr/lib64/gcc/x86_64-suse-linux/4.5/include/unwind.h:43:46: error: unknown
machine mode '__unwind_word__'
typedef unsigned _Unwind_Word __attribute__((__mode__(__unwind_word__)));
                                             ^
/usr/lib64/gcc/x86_64-suse-linux/4.5/include/unwind.h:44:45: error: unknown
machine mode '__unwind_word__'                        
typedef signed _Unwind_Sword __attribute__((__mode__(__unwind_word__)));
                                            ^
2 errors generated.

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

Reply via email to