[cfe-commits] [PATCH] bools in vector_size attribute causes crash
Roland Leißa
leissa at cs.uni-saarland.de
Wed Apr 25 18:36:30 PDT 2012
now marked with [PATCH] in subject
--
Roland
----- Forwarded Message -----
From: "Roland Leißa" <leissa at cs.uni-saarland.de>
To: cfe-commits at cs.uiuc.edu
Sent: Dienstag, 24. April 2012 17:38:53
Subject: [cfe-commits] bools in vector_size attribute causes crash
Hi all,
this simple program currently causes a crash:
typedef bool bxmm __attribute__ ((vector_size(16)));
typedef float fxmm __attribute__ ((vector_size(16)));
bxmm f(fxmm a, fxmm b) {
return a < b;
}
The reason for this is, that actually bools are not allowed to be declared as gcc-vectors. (At least gcc does not allow this).
The attached patch fixes this issue by emitting an error message when using bools in gcc-vectors.
This was tested on current trunk. I guess that current 3.1 branch has the same problem but I didn't look it up/tried it.
--
Roland
_______________________________________________
cfe-commits mailing list
cfe-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector_size_bool_patch.diff
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120426/5584ca22/attachment.bin>
More information about the cfe-commits
mailing list