diff options
author | Artjoms Sinkarovs <artyom.shinkaroff@gmail.com> | 2011-08-10 14:44:02 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-08-10 14:44:02 +0000 |
commit | 0e3a99ae913c732f015b0dcfecb85d3236cc142f (patch) | |
tree | 1a68ab24120fe0d7e02fe83b3b5e700f8d676001 /gcc/builtins.c | |
parent | 0eb778344e8c1d4e9da37a098bceef7201283432 (diff) | |
download | gcc-0e3a99ae913c732f015b0dcfecb85d3236cc142f.zip gcc-0e3a99ae913c732f015b0dcfecb85d3236cc142f.tar.gz gcc-0e3a99ae913c732f015b0dcfecb85d3236cc142f.tar.bz2 |
c-typeck.c (scalar_to_vector): New function.
2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
* c-typeck.c (scalar_to_vector): New function. Try scalar to
vector conversion.
(stv_conv): New enum for scalar_to_vector return type.
(build_binary_op): Adjust.
* doc/extend.texi: Description of scalar to vector expansion.
c-family/
* c-common.c (unsafe_conversion_p): New function. Check if it is
unsafe to convert an expression to the type.
(conversion_warning): Adjust, use unsafe_conversion_p.
* c-common.h (unsafe_conversion_p): New function declaration.
testsuite/
* gcc.c-torture/execute/scal-to-vec1.c: New test.
* gcc.c-torture/execute/scal-to-vec2.c: New test.
* gcc.c-torture/execute/scal-to-vec3.c: New test.
* gcc.dg/scal-to-vec1.c: New test.
* gcc.dg/scal-to-vec2.c: New test.
From-SVN: r177622
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions