http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52346
Bug #: 52346 Summary: Two abs in a row is being optimized to just one on the tree level Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: pins...@gcc.gnu.org double f(double a, double b) { a = __builtin_fabs (a); return __builtin_fabs (a); } Should only have one ABS_EXPR in the final tree dump. Note this is optimized away on the RTL level.