diff options
author | Marek Polacek <polacek@redhat.com> | 2014-11-28 09:06:48 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-11-28 09:06:48 +0000 |
commit | 541e35a6a3f8ca2d9877ea6c477e765e1d0a9497 (patch) | |
tree | 4f8a839fa82870468359fe7d2e0ca156c9cfa4ef /gcc/omp-low.c | |
parent | 7e015fcefe33eded9a565e7e2ad3da11952249ae (diff) | |
download | gcc-541e35a6a3f8ca2d9877ea6c477e765e1d0a9497.zip gcc-541e35a6a3f8ca2d9877ea6c477e765e1d0a9497.tar.gz gcc-541e35a6a3f8ca2d9877ea6c477e765e1d0a9497.tar.bz2 |
re PR c/63862 (C frontend converts shift-count to int while standard wants integer promotions)
PR c/63862
c-family/
* c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
to op1_utype.
* c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
expression to unsigned_type_node.
c/
* c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
convert the right operand to integer type.
cp/
* typeck.c (cp_build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
convert the right operand to integer type.
testsuite/
* gcc.c-torture/execute/shiftopt-1.c: Don't XFAIL anymore.
* c-c++-common/ubsan/shift-7.c: New test.
From-SVN: r218142
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions