This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix libgcc2 ICE when building for powerpc-none-linux-gnuspe


The attached patch fixes a ICE that occurs when compiling libgcc for
powerpc-none-linux-gnuspe.  The failure mode is:

/scratch/froydnj/fsf-mainline/src/gcc-mainline/libgcc/../gcc/libgcc2.c: In function '__powitf2':
/scratch/froydnj/fsf-mainline/src/gcc-mainline/libgcc/../gcc/libgcc2.c:1743: error: unrecognizable insn:
(insn 91 89 92 11 /scratch/froydnj/fsf-mainline/src/gcc-mainline/libgcc/../gcc/libgcc2.c:1742 (set (subreg:TF (reg:TI 165) 0)
        (mem/u/c/i:TF (reg/f:SI 166) [0 S16 A128])) -1 (expr_list:REG_LIBCALL_ID (const_int 2 [0x2])
        (nil)))

The fix is to extend the *frob_ti_tf_2 pattern to accept any
input_operand as its source, as the existing *frob_ti_tf pattern does.

Bootstrapped and regtested on powerpc-none-linux-gnuspe.  OK to commit?

-Nathan

gcc/
2007-06-14  Nathan Froyd  <froydnj@codesourcery.com>

	* config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
	as the source of the set.

Attachment: frob_ti_tf.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]