support for __attribute__((mode())) with vector types #17827
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
enhancement
Improving things as opposed to bug fixing, e.g. new or missing feature
Extended Description
rkotler@mipssw006:
/rt-rk-4doug/tmp$ ~/llvmw/install/bin/clang ../tests-c/pr23135.c -std=gnu89 -lm../tests-c/pr23135.c:10:28: error: mode attribute only supported for integer
and floating-point types
typedef int attribute((mode(SI))) attribute((vector_size (8))) vecint;
^
../tests-c/pr23135.c:13:19: warning: excess elements in scalar initializer
vecint i = { 150, 100 };
^~~
../tests-c/pr23135.c:14:18: warning: excess elements in scalar initializer
vecint j = { 10, 13 };
^
../tests-c/pr23135.c:27:5: warning: implicitly declaring library function
'abort' with type 'void (void) attribute((noreturn))'
abort ();
^
../tests-c/pr23135.c:27:5: note: please include the header <stdlib.h> or
explicitly provide a declaration for 'abort'
../tests-c/pr23135.c:133:3: warning: implicitly declaring library function
'exit' with type 'void (int) attribute((noreturn))'
exit (0);
^
../tests-c/pr23135.c:133:3: note: please include the header <stdlib.h> or
explicitly provide a declaration for 'exit'
4 warnings and 1 error generated.
rkotler@mipssw006:~/rt-rk-4doug/tmp$
The text was updated successfully, but these errors were encountered: