[Arm] GCC crash in cprop_hardreg when targeting v8-A Thumb

Michael Collison Michael.Collison@arm.com
Sun Feb 4 02:52:00 GMT 2018


This patches fixes a bug affecting two patterns in arm/thumb2.md where the split condition was insufficient and allowed illegal rtl to be generated. The split condition for patterns "*thumb2_mov_negscc "and "*thumb_mov_notscc " allowed splitting that ignored "arm_restrict_it". This was causing illegal rtl to be generated for IT blocks which in turn caused an internal error.

Bootstrapped and regression tested on arm-linux-gnueabihf. Okay for trunk?


2018-01-28  Michael Collison  <michael.collison@arm.com>

	* config/arm/thumb2.md:
	(*thumb2_mov_negscc): Split only if TARGET_THUMB2 && !arm_restrict_it.
	(*thumb_mov_notscc): Ditto.
	* gcc.target/arm/pr7676.c: New testcase.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutools-7676.patch
Type: application/octet-stream
Size: 1424 bytes
Desc: gnutools-7676.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180204/6679f801/attachment.obj>


More information about the Gcc-patches mailing list