Don't use load_pic_register for x86-64
Bo Thorsen
bo@sonofthor.dk
Wed Apr 4 09:29:00 GMT 2001
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
More information about the Gcc-patches
mailing list