Commit ff76f4e2 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/60693 (ICE on funny memcpy)

	PR target/60693
	* config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
	also if addr has VOIDmode.

	* gcc.target/i386/pr60693.c: New test.

From-SVN: r208915
parent 27f083b8
2014-03-28 Jakub Jelinek <jakub@redhat.com>
PR target/60693
* config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
also if addr has VOIDmode.
2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
......
......@@ -22755,7 +22755,7 @@ counter_mode (rtx count_exp)
static rtx
ix86_copy_addr_to_reg (rtx addr)
{
if (GET_MODE (addr) == Pmode)
if (GET_MODE (addr) == Pmode || GET_MODE (addr) == VOIDmode)
return copy_addr_to_reg (addr);
else
{
2014-03-28 Jakub Jelinek <jakub@redhat.com>
PR target/60693
* gcc.target/i386/pr60693.c: New test.
2014-03-28 Vishnu K S <Vishnu.k_s@atmel.com>
* gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int.
......
/* PR target/60693 */
/* { dg-do compile } */
/* { dg-options "-O0" } */
void bar (char *);
void
foo (void)
{
char buf[4096];
__builtin_memcpy (buf, (void *) 0x8000, 4096);
bar (buf);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment