This is the mail archive of the gcc@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]

exception_receiver in i386.md


Richard Henderson wrote:
>On Sun, Jan 14, 2001 at 11:09:34PM +0000, Philip Blundell wrote:
>> Fair enough.  I noticed that i386 has an exception_receiver like that;
>> is that needed for some other reason?

>Hmm.  It would be worth while to do some archaeology and find out why
>it was added.  I suspect that it was supersticious.  Someone saw that
>such a pattern was added to another port that has a call-clobbered pic
>register and figured the same thing was needed for x86.

Turns out it's been there since 1998 - longer, in fact, than the 
builtin_setjmp_receiver, which was only added in January 2000.

Mon Jun 22 23:13:47 1998  John Wehle  (john@feith.com)

	* i386/freebsd-elf.h (JUMP_TABLES_IN_TEXT_SECTION): Define as flag_pic.
	* i386/sysv4.h (JUMP_TABLES_IN_TEXT_SECTION): Define as flag_pic.

	* i386.md (exception_receiver): Define.

John, do you remember why this was done?

p.



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