http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49914
Summary: call to abs(long long) in gcc/fold-const.c Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassig...@gcc.gnu.org ReportedBy: marc.gli...@normalesup.org Hello, in gcc/fold-const.c (currently line 7051), in function fold_plusminus_mult_expr: if (exact_log2 (abs (int11)) > 0 && int01 % int11 == 0 where int11 is a HOST_WIDE_INT. Is this call to abs safe? A few lines above, abs is computed as x>=0?x:-x. (don't know how to classify this, but it causes a build failure for me with a C++98 compiler (ambiguous))