Re: [C PATCH] Avoid nested C_MAYBE_CONST_EXPR in build_binary_op (PR c/48742)

2011-04-26 Thread Joseph S. Myers
On Tue, 26 Apr 2011, Jakub Jelinek wrote: > 2011-04-26 Jakub Jelinek > > PR c/48742 > * c-typeck.c (build_binary_op): Don't wrap arguments if > int_operands is true. > > * gcc.c-torture/compile/pr48742.c: New test. OK. -- Joseph S. Myers jos...@codesourcery.com

[C PATCH] Avoid nested C_MAYBE_CONST_EXPR in build_binary_op (PR c/48742)

2011-04-26 Thread Jakub Jelinek
Hi! As discussed in the PR, build_binary_op was calling c_wrap_maybe_const which added one C_MAYBE_CONST_EXPR to GT_EXPR operand, then the whole GT_EXPR has been enclosed into another C_MAYBE_CONST_EXPR because int_operands has been true. Fixed thusly, bootstrapped/regtested on x86_64-linux and i