diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1995-04-18 20:51:03 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1995-04-18 20:51:03 +0000 |
commit | 7198acbe9b83b0cdaf5da203982df34e5374e870 (patch) | |
tree | e25144c7220db14192f976d2081550d2c8f9e916 /gcc/varasm.c | |
parent | d924d023c7bbee40fda54b02b7f5d85d7f61e782 (diff) | |
download | gcc-7198acbe9b83b0cdaf5da203982df34e5374e870.zip gcc-7198acbe9b83b0cdaf5da203982df34e5374e870.tar.gz gcc-7198acbe9b83b0cdaf5da203982df34e5374e870.tar.bz2 |
Always define handle_pragma_weak, but don't do anything unless
HANDLE_PRAGMA_WEAK is defined.
From-SVN: r9414
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 cdda400..613ec4f 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3927,14 +3927,13 @@ output_constructor (exp, size) assemble_zeros (size - total_bytes); } -#if defined (HANDLE_SYSV_PRAGMA) && defined (HANDLE_PRAGMA_WEAK) - /* Output asm to handle ``#pragma weak'' */ void handle_pragma_weak (what, name, value) enum pragma_state what; char *name, *value; { +#ifdef HANDLE_PRAGMA_WEAK if (what == ps_name || what == ps_value) { struct weak_syms *weak = @@ -3956,10 +3955,9 @@ handle_pragma_weak (what, name, value) } else if (! (what == ps_done || what == ps_start)) warning ("malformed `#pragma weak'"); +#endif /* HANDLE_PRAGMA_WEAK */ } -#endif /* HANDLE_SYSV_PRAGMA && HANDLE_PRAGMA_WEAK */ - /* Declare DECL to be a weak symbol. */ void |