[PATCH, i386}: Commited: avoid access past the end of array in i386.md

Uros Bizjak ubizjak@gmail.com
Wed Jan 24 11:16:00 GMT 2007


Hello!

There are a couple of patterns that access past the end of operands[]
array. Attached patch fixes all these.

Bootstrapped and regression tested on i686-pc-linux-gnu for c,c++ and
fortran. Patch is commited to mainline SVN.

2007-01-24  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
	log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
	instead of operands[2] to avoid access past the end of array.

Uros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i386-fixop.diff
Type: application/octet-stream
Size: 4440 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070124/67c38d8a/attachment.obj>


More information about the Gcc-patches mailing list