------- Comment #1 from rguenth at gcc dot gnu dot org 2010-08-18 14:23 ------- (In reply to comment #0) > In some cases, one might need to check for the unsave_math_optimization flag > before changing, e.g., "2+(a-2)" to "a" - or rather "(a)".
The whole point of PAREN_EXPR in the middle-end is to avoid transforming 2 + (a - 2) even _with_ -funsafe-math-optimizations / -ffast-math! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45318