[LLVMbugs] [Bug 10235] New: error: unknown machine mode 'V8QI' is an unclear warning from clang
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 30 17:39:46 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list