[Bug c/35634] [avr] result of char promotion comes out of CHAR_MIN/MAX

2008-03-19 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-03-19 10:26 --- To quote the standard (6.5.4.1/2): "The expression ++E is equivalent to (E+=1). See the discussions of additive operators and compound assignment for information on constraints, types, side effects, and CONVERSIONS

[Bug c/35634] [avr] result of char promotion comes out of CHAR_MIN/MAX

2008-03-19 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-03-19 10:23 --- This is a bug in the C frontend which does the increment on type char, not on the promoted type (I noticed that while fixing bitfield issues as well), code in question is in build_unary_op() and this way since foreve