[PATCH] fix out of bound access on hard_regno_nregs
James E Wilson
wilson@specifixinc.com
Thu Apr 28 20:36:00 GMT 2005
Martin Koegler wrote:
> - if (val.start < 0)
> + if (val.start < 0 || val.start >= FIRST_PSEUDO_REGISTER)
I've tested the patch on a ppc-darwin machine, with a bootstrap and make
check. There were no regressions. I got a lot of linker warnings for
the C++ tests which caused a lot of failures with and without the patch,
but there were no apparent real problems, and java worked OK, so I think
this was a good enough test, especially for such a simple patch.
For the record, the patch I checked in is attached.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.martin.reload
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050428/b69e2c1a/attachment.ksh>
More information about the Gcc-patches
mailing list