https://llvm.org/bugs/show_bug.cgi?id=24706
Bug ID: 24706
Summary: clang generate wrong WORD mode for x32
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
[hjl@gnu-6 bin]$ cat /tmp/i.c
typedef unsigned int gcc_word __attribute__((mode(word)));
int foo[8 == sizeof(gcc_word) ? 1 : -1];
[hjl@gnu-6 bin]$ ./clang -S -mx32 /tmp/i.c
/tmp/i.c:3:9: error: 'foo' declared as an array with a negative size
int foo[8 == sizeof(gcc_word) ? 1 : -1];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[hjl@gnu-6 bin]$ gcc -S -mx32 /tmp/i.c
[hjl@gnu-6 bin]$
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs