OSDN Git Service

* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2006 16:08:47 +0000 (16:08 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2006 16:08:47 +0000 (16:08 +0000)
TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
* config/bfin/crti.S: Use it instead of __PIC__.
* config/bfin/crtn.S: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112006 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/bfin/bfin.h
gcc/config/bfin/crti.s
gcc/config/bfin/crtn.s

index 732d78d..1b48e59 100644 (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>
 
index 171edb9..0455948 100644 (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
index 84a9859..5a13df1 100644 (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 
index 69421fc..69a17c0 100644 (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;