diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-09 14:51:09 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-09 14:51:09 +0000 |
commit | 7c8344365f5915917fa82cab8d9f0d1565f4b62f (patch) | |
tree | 9860db1553f003a5d248886e9631536f697cf020 /Makefile.def | |
parent | e94644293b12944cfd638494dd58586673531213 (diff) | |
download | gcc-7c8344365f5915917fa82cab8d9f0d1565f4b62f.tar.gz |
PR c/48418
* c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
and is either negative or bigger or equal to type precision
of the first operand.
* typeck.c (cp_build_binary_op): For LSHIFT_EXPR and RSHIFT_EXPR,
call maybe_constant_value for the negative or too big shift
count warnings.
* c-c++-common/pr48418.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'Makefile.def')
0 files changed, 0 insertions, 0 deletions