got-relative addressing for anything but SImode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112718
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
+ got-relative addressing for anything but SImode.
+
2006-04-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/26919
case PLUS:
if (REG_P (XEXP (x, 0))
&& bfin_valid_reg_p (REGNO (XEXP (x, 0)), strict, mode, PLUS)
- && (GET_CODE (XEXP (x, 1)) == UNSPEC
+ && ((GET_CODE (XEXP (x, 1)) == UNSPEC && mode == SImode)
|| (GET_CODE (XEXP (x, 1)) == CONST_INT
&& bfin_valid_add (mode, INTVAL (XEXP (x, 1))))))
return true;