From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thiemo Seufer To: binutils@sources.redhat.com Subject: [PATCH] Code cleanup in tc-mips.c, addendum Date: Sun, 26 Aug 2001 07:19:00 -0000 Message-id: <20010826161908.B13086@rembrandt.csv.ica.uni-stuttgart.de> X-SW-Source: 2001-08/msg00608.html Hi All, this fixes two checks for MAX_GPREL_OFFSET I've forgotten in the last patch. Thiemo 2001-08-26 Thiemo Seufer /gas/ChangeLog * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET. (macro): Likewise. --- src-orig/gas/config/tc-mips.c Sun Aug 26 15:22:58 2001 +++ src/gas/config/tc-mips.c Sun Aug 26 16:10:28 2001 @@ -3330,7 +3330,7 @@ lui $reg, (BFD_RELOC_HI16_S) addiu $reg,$reg, (BFD_RELOC_LO16) If we have an addend, we always use the latter form. */ - if ((valueT) ep->X_add_number >= MAX_GPREL_OFFSET + if ((valueT) ep->X_add_number > MAX_GPREL_OFFSET || nopic_need_relax (ep->X_add_symbol, 1)) p = NULL; else @@ -4226,7 +4226,7 @@ addiu $tempreg,$tempreg, (BFD_RELOC_LO16) If we have a constant, we need two instructions anyhow, so we may as well always use the latter form. */ - if ((valueT) offset_expr.X_add_number >= MAX_GPREL_OFFSET + if ((valueT) offset_expr.X_add_number > MAX_GPREL_OFFSET || nopic_need_relax (offset_expr.X_add_symbol, 1)) p = NULL; else