diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2003-09-23 19:17:49 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2003-09-23 19:17:49 +0000 |
commit | 6773a41c431266eeaca36e8389cc60996a381251 (patch) | |
tree | 715dfc6d43d67f4a0e0c332509b5531869b36669 /gcc/varasm.c | |
parent | 8c8a95ffca3cc0dddb579d4f8a63ae25fb040061 (diff) | |
download | gcc-6773a41c431266eeaca36e8389cc60996a381251.zip gcc-6773a41c431266eeaca36e8389cc60996a381251.tar.gz gcc-6773a41c431266eeaca36e8389cc60996a381251.tar.bz2 |
target.h (struct gcc_target): New member external_libcall.
* target.h (struct gcc_target): New member external_libcall.
* target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
(TARGET_ASM_OUT): Use it.
* doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
* targhooks.c: Convert to ISO C 90.
(default_external_libcall): New function.
* targhooks.h (default_external_libcall): Declare.
* varasm.c (assemble_external_libcall): Use
targetm.asm_out.external_libcall instead of
ASM_OUTPUT_EXTERNAL_LIBCALL.
* config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
(mips_output_external_libcall): Declare.
* config/mips/mips.c (mips_output_external_libcall): Change
definition guard.
Change to match TARGET_ASM_EXTERNAL_LIBCALL.
Only operate for O32 ABI.
* config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
* config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
superceded by TARGET_ASM_EXTERNAL_LIBCALL.
From-SVN: r71689
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index d0bdbc1..059ba50 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1621,16 +1621,14 @@ assemble_external (tree decl ATTRIBUTE_UNUSED) /* Similar, for calling a library function FUN. */ void -assemble_external_libcall (rtx fun ATTRIBUTE_UNUSED) +assemble_external_libcall (rtx fun) { -#ifdef ASM_OUTPUT_EXTERNAL_LIBCALL /* Declare library function name external when first used, if nec. */ if (! SYMBOL_REF_USED (fun)) { SYMBOL_REF_USED (fun) = 1; - ASM_OUTPUT_EXTERNAL_LIBCALL (asm_out_file, fun); + (*targetm.asm_out.external_libcall) (fun); } -#endif } /* Assemble a label named NAME. */ |