bfin.h (TARGET_CPU_CPP_BUILTINS): If TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.

* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
	TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
	* config/bfin/crti.S: Use it instead of __PIC__.
	* config/bfin/crtn.S: Likewise.

From-SVN: r112006
This commit is contained in:
Bernd Schmidt 2006-03-13 16:08:47 +00:00 committed by Bernd Schmidt
parent a94aa2725e
commit 4af990cdc1
4 changed files with 12 additions and 6 deletions

View file

@ -2,6 +2,10 @@
* config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
of RETS.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
* config/bfin/crti.S: Use it instead of __PIC__.
* config/bfin/crtn.S: Likewise.
2006-03-13 Eric Botcazou <ebotcazou@adacore.com>

View file

@ -41,6 +41,8 @@ extern int target_flags;
{ \
builtin_define ("bfin"); \
builtin_define ("BFIN"); \
if (TARGET_ID_SHARED_LIBRARY) \
builtin_define ("__ID_SHARED_LIB__"); \
} \
while (0)
#endif

View file

@ -38,21 +38,21 @@ Boston, MA 02110-1301, USA. */
.globl __init
.type __init,@function
__init:
#if defined __PIC__
#if defined __ID_SHARED_LIB__
[--SP] = P5;
#endif
LINK 12;
#if defined __PIC__
#if defined __ID_SHARED_LIB__
P5 = [P5 + _current_shared_library_p5_offset_]
#endif
.section .fini
.globl __fini
.type __fini,@function
__fini:
#if defined __PIC__
#if defined __ID_SHARED_LIB__
[--SP] = P5;
#endif
LINK 12;
#if defined __PIC__
#if defined __ID_SHARED_LIB__
P5 = [P5 + _current_shared_library_p5_offset_]
#endif

View file

@ -36,14 +36,14 @@ Boston, MA 02110-1301, USA. */
.section .init
unlink;
#if defined __PIC__
#if defined __ID_SHARED_LIB__
P5 = [SP++];
#endif
rts;
.section .fini
unlink;
#if defined __PIC__
#if defined __ID_SHARED_LIB__
P5 = [SP++];
#endif
rts;