GCC should use MPFR to evaluate builtins remquo, remainder (and the common extension function drem) at compile-time when they are provided with constant arguments. The forthcoming mpfr-2.3.0 has suitable functionality to do this.
-- Summary: Evaluate remquo/remainder/drem at compile-time Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: middle-end AssignedTo: ghazi at gcc dot gnu dot org ReportedBy: ghazi at gcc dot gnu dot org BugsThisDependsOn: 29335 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31796