This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi, Currently both the C and C++ allow binary bitwise operations on the vector float types. This does not make sense as the standard does not allow it for floating point types, vector types should follow what is allowed for the base types also. This patch disallows binary bitwise operations on vector float types like what is done for floating point types. OK? Bootstrapped and tested on i386-apple-darwin8.10 with no regressions. Thanks, Andrew Pinski ChangeLog: * c-typeck.c (build_binary_op): Disallow vector float types with BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR. cp/ChangeLog: * typeck.c (build_binary_op): Disallow vector float types with BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR. testsuite/ChangeLog: * gcc.dg/vector-2.c: New test. * g++.dg/ext/vector8.C: New test.
Attachment:
fixpr30428.diff.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |