From 2f0da90602f07493b6512c5b710f46a1f85ae0b4 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 31 Oct 1994 10:26:19 -0800 Subject: [PATCH] (GO_IF_LEGITIMATE_ADDRESS): Don't allow TFmode LO_SUM. From-SVN: r8371 --- gcc/config/sparc/sparc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index b5f7d3499cc..674bdd2b373 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1868,7 +1868,11 @@ extern struct rtx_def *sparc_builtin_saveregs (); register rtx op0 = XEXP (X, 0); \ register rtx op1 = XEXP (X, 1); \ if (RTX_OK_FOR_BASE_P (op0) \ - && CONSTANT_P (op1)) \ + && CONSTANT_P (op1) \ + /* We can't allow TFmode, because an offset \ + greater than or equal to the alignment (8) \ + may cause the LO_SUM to overflow. */ \ + && MODE != TFmode) \ goto ADDR; \ } \ else if (GET_CODE (X) == CONST_INT && SMALL_INT (X)) \ -- 2.30.2