[PATCH] Fix complex {*,/} real or real * complex handling in C FE (PR c/49644)
Joseph S. Myers
joseph@codesourcery.com
Thu Jul 7 15:00:00 GMT 2011
On Thu, 7 Jul 2011, Jakub Jelinek wrote:
> Hi!
>
> For MULT_EXPR and TRUNC_DIV_EXPR, both sides of COMPLEX_EXPR contain
> a copy of the non-complex operand, which means its side-effects can be
> evaluated twice. For PLUS_EXPR/MINUS_EXPR they appear just in one of
> the operands and thus it works fine as is.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux,
> ok for trunk/4.6?
OK, but I think you need a similar patch for the C++ front end as well.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list