diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-04 21:45:41 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-04 21:45:41 +0000 |
commit | c44afe236f0730770ee0bdecddd7da1c5af78568 (patch) | |
tree | 09a78feaae42dbb50fdaf694eca604caa1029b35 /gcc/testsuite/gcc.dg/h8300-ice2.c | |
parent | 47df1c9677402c981e86b840fac7588edad95afc (diff) | |
download | gcc-c44afe236f0730770ee0bdecddd7da1c5af78568.tar.gz |
* c-common.c (binary_op_error): Do not allow NOP_EXPR.
(c_common_truthvalue_conversion): Handle NOP_EXPR the same as
CONVERT_EXPR.
(check_function_arguments_recurse): Allow both NOP_EXPR and
CONVERT_EXPR but check conversions preserve precision.
* c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
but check conversions preserve precision.
(build_unary_op): Don't allow NOP_EXPR. Use gcc_unreachable () in
default case.
testsuite:
* gcc.dg/format/cast-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108020 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/h8300-ice2.c')
0 files changed, 0 insertions, 0 deletions