* 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
* 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>
{ \
builtin_define ("bfin"); \
builtin_define ("BFIN"); \
+ if (TARGET_ID_SHARED_LIBRARY) \
+ builtin_define ("__ID_SHARED_LIB__"); \
} \
while (0)
#endif
.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
.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;