This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]