This is already being worked on upstream:
PR20592 is fixed on gcc-4_0-branch, gcc-4_0-rhl-branch as well as HEAD.
PR23677 is so far fixed on HEAD, but has been approved for gcc-4_0-branch
as well once it reopens:
As RHEL5 gcc will be either 4.1 or gcc-4_0-rhl-branch based (and in the latter
case there will be a lot of merges from gcc-4_0-branch in the mean time),
I think this can be closed as UPSTREAM.
It has been checked into gcc-4_0-rhl-branch as well last week.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.