This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Don't use load_pic_register for x86-64
- To: <patches at x86-64 dot org>, <gcc-patches at gcc dot gnu dot org>
- Subject: Don't use load_pic_register for x86-64
- From: Bo Thorsen <bo at sonofthor dot dk>
- Date: Wed, 4 Apr 2001 17:27:48 +0100 (BST)
This code:
void
load_pic_register ()
{
rtx gotsym, pclab;
if (TARGET_64BIT)
abort();
shows that allowing a call to load_pic_register for a TARGET_64BIT is not
the best idea. Please apply the following patch.
2001-04-04 Bo Thorsen <bo@suse.de>
* config/i386/i386.md: Don't allow "builtin_setjmp_receiver" for
TARGET_64BIT.
Index: i386.md
===================================================================
RCS file: /home/cvs/Repository/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.45
diff -u -r1.45 i386.md
--- i386.md 2001/04/04 11:57:08 1.45
+++ i386.md 2001/04/04 16:21:18
@@ -15871,7 +15871,7 @@
(define_expand "builtin_setjmp_receiver"
[(label_ref (match_operand 0 "" ""))]
- "flag_pic"
+ "flag_pic && !TARGET_64BIT"
"
{
load_pic_register ();
--
[I'm in the middle of relocating to England, so I will only have internet
connection about once every week for the next month or so.]
Bo Thorsen | 28 Merton Road
Free software developer | Slough, SL1 1QW
SuSE Labs | England