This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] - fix jump generation for PIC in MIPS
- From: "Igor Shevlyakov" <shevlyakov at attbi dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 19 May 2002 23:24:04 -0700
- Subject: [PATCH] - fix jump generation for PIC in MIPS
It happens that only value of -mabi is considered to determine
if relative or absolute jump shoudl be used. While -fpic should
be considered as well.
======= ChangeLog entry =======
2002-05-19 Igor Shevlyakov <shevlyakov@aatbi.com>
* mips.md - flag_pic is also checked to determine if
relative or absolute jump should be used.
======= patch ===============
Index: mips.md
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/mips/mips.md,v
retrieving revision 1.128
diff -r1.128 mips.md
9256c9256
< else if (mips_abi != ABI_32 && mips_abi != ABI_O64)
---
> else if (flag_pic || (mips_abi != ABI_32 && mips_abi != ABI_O64))