mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-22 00:08:04 +03:00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11232 3c298f89-4303-0410-b956-a3cf2f4a3e73
47 lines
2.7 KiB
Diff
47 lines
2.7 KiB
Diff
Index: gcc-4.2.3/gcc/config/avr32/avr32.c
|
|
===================================================================
|
|
--- gcc-4.2.3.orig/gcc/config/avr32/avr32.c 2008-05-21 13:45:58.533289214 +0200
|
|
+++ gcc-4.2.3/gcc/config/avr32/avr32.c 2008-05-21 13:45:59.762288215 +0200
|
|
@@ -6323,23 +6323,24 @@
|
|
/* If used any other place than as a pointer or as the
|
|
destination register we failed */
|
|
if (!(single_set (scan)
|
|
- && GET_CODE (PATTERN (scan)) == SET
|
|
- && ((MEM_P (SET_DEST (PATTERN (scan)))
|
|
- && REG_P (XEXP (SET_DEST (PATTERN (scan)), 0))
|
|
- && REGNO (XEXP (SET_DEST (PATTERN (scan)), 0)) ==
|
|
- REGNO (reg)) || (MEM_P (SET_SRC (PATTERN (scan)))
|
|
- &&
|
|
- REG_P (XEXP
|
|
- (SET_SRC (PATTERN (scan)),
|
|
- 0))
|
|
- &&
|
|
- REGNO (XEXP
|
|
- (SET_SRC (PATTERN (scan)),
|
|
- 0)) == REGNO (reg))))
|
|
- && !(GET_CODE (PATTERN (scan)) == SET
|
|
- && REG_P (SET_DEST (PATTERN (scan)))
|
|
- && !regno_use_in (REGNO (reg),
|
|
- SET_SRC (PATTERN (scan)))))
|
|
+ && GET_CODE (PATTERN (scan)) == SET
|
|
+ && ((MEM_P (SET_DEST (PATTERN (scan)))
|
|
+ && REG_P (XEXP (SET_DEST (PATTERN (scan)), 0))
|
|
+ && REGNO (XEXP (SET_DEST (PATTERN (scan)), 0)) == REGNO (reg))
|
|
+ || (MEM_P (SET_SRC (PATTERN (scan)))
|
|
+ && REG_P (XEXP (SET_SRC (PATTERN (scan)), 0))
|
|
+ && REGNO (XEXP
|
|
+ (SET_SRC (PATTERN (scan)), 0)) == REGNO (reg))))
|
|
+ && !(GET_CODE (PATTERN (scan)) == SET
|
|
+ && REG_P (SET_DEST (PATTERN (scan)))
|
|
+ && !regno_use_in (REGNO (reg),
|
|
+ SET_SRC (PATTERN (scan)))))
|
|
+ break;
|
|
+
|
|
+ /* We cannot replace the pointer in TImode insns
|
|
+ as these has a differene addressing mode than the other
|
|
+ memory insns. */
|
|
+ if ( GET_MODE (SET_DEST (PATTERN (scan))) == TImode )
|
|
break;
|
|
|
|
/* Check if register is dead or set in this insn */
|