re PR c/33192 (__imag operator drops side effects in subexpr)
authorJoseph Myers <joseph@codesourcery.com>
Thu, 16 Oct 2008 17:05:57 +0000 (18:05 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 16 Oct 2008 17:05:57 +0000 (18:05 +0100)
commitbbe67e7ccffa62d1b8990cf8c88fb6f659efc6e5
treef630ebe95310fde77ad8f064316d96d61265bf94
parentdd9315ded08da38108ff04216afb2ac333ab5380
re PR c/33192 (__imag operator drops side effects in subexpr)

PR c/33192
* c-typeck.c (build_unary_op): Use omit_one_operand for
IMAGPART_EXPR of real argument.

testsuite:
* gcc.dg/imag-1.c: New test.

From-SVN: r141176
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/imag-1.c [new file with mode: 0644]