On 26 Aug 2007 05:21:22 -, sabre at nondot dot org
<[EMAIL PROTECTED]> wrote:
> to not call bar.
The problem is in c-typeck.c (build_unary_op) (around line 2986).
the code looks like:
if (TREE_CODE (arg) == COMPLEX_CST)
return TREE_IMAGPART (arg);
else if (TREE_CODE (TREE_T
GCC miscompiles this:
int bar();
void foo() {
int X = __imag bar();
}
to not call bar.
-Chris
--
Summary: __imag operator drops side effects in subexpr
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priorit