]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/m68k/m68k.c
lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__ support.
authorBernardo Innocenti <bernie@gcc.gnu.org>
Sat, 11 Oct 2003 03:06:45 +0000 (05:06 +0200)
committerBernardo Innocenti <bernie@gcc.gnu.org>
Sat, 11 Oct 2003 03:06:45 +0000 (05:06 +0200)
commita2ef3db72b61490b5522f80abd7010ac404641d1
tree16b02d2698d4554f58c2b0ba987554087675890d
parent4f5acf56e39af0f7c25362cfd4206807edf54034
lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__ support.

* config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
support.
* config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
-fpic, -fPIC, -msep-data and -mid-shared-library.
* config/m68k/m68k.c (m68k_library_id_string): New global variable.
(override_options): Add -msep-data and -mshared-library-id support.
(m68k_output_function_prologue): Generate code to load A5 for
TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
(m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
(m68k_output_pic_call): New function.
* gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
(TARGET_ID_SHARED_LIBRARY): Ditto.
(TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
* gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
(call_value): Likewise.

From-SVN: r72324
gcc/ChangeLog
gcc/config/m68k/lb1sf68.asm
gcc/config/m68k/m68k-none.h
gcc/config/m68k/m68k-protos.h
gcc/config/m68k/m68k.c
gcc/config/m68k/m68k.h
gcc/config/m68k/m68k.md