mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 07:40:28 +08:00
Always define handle_pragma_weak, but don't do anything unless
HANDLE_PRAGMA_WEAK is defined. From-SVN: r9414
This commit is contained in:
parent
d924d023c7
commit
7198acbe9b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user