i386 nonlocal_goto_receiver patch

John Wehle john@feith.com
Sat Jun 20 20:13:00 GMT 1998


This patch removes the nonlocal_goto_receiver pattern since all it
does is restore the global table pointer which is in the PIC register.
The documentation in md.texi indicates that a nonlocal goto only
happens within a unit-of-translation and as a result doesn't need
to restore the global table pointer since it's already correct.

ChangeLog:

Sat Jun 20 23:01:49 EDT 1998  John Wehle  (john@feith.com)

	* i386.md (nonlocal_goto_receiver): Delete.

Enjoy!

-- John Wehle
------------------8<------------------------8<------------------------
*** gcc/config/i386/i386.md.ORIGINAL	Sat Jun 20 17:57:42 1998
--- gcc/config/i386/i386.md	Sat Jun 20 20:12:48 1998
***************
*** 7797,7808 ****
    emit_move_insn (operands[0], virtual_stack_dynamic_rtx);
    DONE;
  }")
- 
- (define_expand "nonlocal_goto_receiver"
-   [(const_int 0)]
-   "flag_pic"
-   "
- {
-   load_pic_register (1);
-   DONE;
- }")
--- 7797,7799 ----
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------




More information about the Gcc-patches mailing list