diff options
| author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-09 18:38:04 +0000 |
|---|---|---|
| committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-09 18:38:04 +0000 |
| commit | 672d914b6dc4a0fc7889a877bfbace81ab852491 (patch) | |
| tree | 4f384af8342874e6f72150b4b11a160bb03fa4be /libjava/classpath/java/text/AttributedCharacterIterator.java | |
| parent | e81447c7adc2b9a581985b9c0544821357f628cf (diff) | |
| download | ppe42-gcc-672d914b6dc4a0fc7889a877bfbace81ab852491.tar.gz ppe42-gcc-672d914b6dc4a0fc7889a877bfbace81ab852491.zip | |
gcc/
* c-common.c (c_fully_fold_internal): Issue a warning if a binary
operation overflows. Likewise non-cast unary arithmetic.
If one arm of a conditional expression is always taken,
inhibit evaluation warnings for the other arm. Likewise inhibit
evaluation warnings for the second && or || operand if the first
operand is enough to determine the result.
* c-typeck.c (build_conditional_expr): Apply the same inhibition
rules here.
(build_binary_op): Prevent duplicate evaluation warnings.
gcc/testsuite/
* gcc.dg/overflow-warn-8.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150594 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/java/text/AttributedCharacterIterator.java')
0 files changed, 0 insertions, 0 deletions

