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

           Summary: error: unknown machine mode 'V8QI' is an unclear
                    warning from clang
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


When compiling...

    typedef int v8qi __attribute__ ((mode(V8QI)));

in clang, the compilation fails with the cryptic error message...

[MacPro:~] howarth% clang -c unclear_warning.c
unclear_warning.c:1:38: error: unknown machine mode 'V8QI'
    typedef int v8qi __attribute__ ((mode(V8QI)));
                                     ^
1 error generated.

whereas llvm-gcc produces the very helpful warning...

[MacPro:~] howarth% llvm-gcc -c unclear_warning.c
unclear_warning.c:1: warning: specifying vector types with __attribute__
((mode)) is deprecated
unclear_warning.c:1: warning: use __attribute__ ((vector_size)) instead

that properly identifies the origin of the compilation failure in clang. Clang
should be enhanced
to provide similar warnings for fully depreciated attributes like mode.

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