Unfortunately, this patch sat forgotten in a source tree past the cutoff for new code for 4.1. Recording here so that it doesn't get forgotten again.
-- Summary: [4.1] target fold_builtin for alpha Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rth at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org OtherBugsDependingO 17652 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18836