diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2006-03-13 16:08:47 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2006-03-13 16:08:47 +0000 |
commit | 4af990cdc1ffee82c74eae84083dcfcf0ee05210 (patch) | |
tree | 53d70b000a0a353e3bc841b6011485f6669cdf76 /gcc | |
parent | a94aa2725e4391d2d1de8448089b5651e772d2cf (diff) | |
download | gcc-4af990cdc1ffee82c74eae84083dcfcf0ee05210.zip gcc-4af990cdc1ffee82c74eae84083dcfcf0ee05210.tar.gz gcc-4af990cdc1ffee82c74eae84083dcfcf0ee05210.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.h | 2 | ||||
-rw-r--r-- | gcc/config/bfin/crti.s | 8 | ||||
-rw-r--r-- | gcc/config/bfin/crtn.s | 4 |
4 files changed, 12 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 732d78d..1b48e59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index 171edb9..0455948 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -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 diff --git a/gcc/config/bfin/crti.s b/gcc/config/bfin/crti.s index 84a9859..5a13df1 100644 --- a/gcc/config/bfin/crti.s +++ b/gcc/config/bfin/crti.s @@ -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 diff --git a/gcc/config/bfin/crtn.s b/gcc/config/bfin/crtn.s index 69421fc..69a17c0 100644 --- a/gcc/config/bfin/crtn.s +++ b/gcc/config/bfin/crtn.s @@ -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; |