summaryrefslogtreecommitdiff
path: root/gcc/c-pragma.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-26 01:29:21 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-26 01:29:21 +0000
commitde2d1fb7d5aa219145df8699eb3c9d1902352afc (patch)
tree855d4e599adc29e51930b659de26cb3bd6af975b /gcc/c-pragma.c
parente6bdf9d70dcaf369c3618f79fcfcd85788d04fbe (diff)
downloadgcc-de2d1fb7d5aa219145df8699eb3c9d1902352afc.tar.gz
* c-pragma.c (add_weak); Delete. Moved into...
* varasm.c (add_weak): New external function. (declare_weak): If HANDLE_PRAGMA_WEAK, then add the function to the list of weak functions. * c-pragma (add_weak): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25454 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r--gcc/c-pragma.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c
index d83789d667b..09fac1feaab 100644
--- a/gcc/c-pragma.c
+++ b/gcc/c-pragma.c
@@ -192,30 +192,6 @@ insert_pack_attributes (node, attributes, prefix)
}
#endif /* HANDLE_PRAGMA_PACK_PUSH_POP */
-#ifdef HANDLE_PRAGMA_WEAK
-static int add_weak PROTO((char *, char *));
-
-static int
-add_weak (name, value)
- char * name;
- char * value;
-{
- struct weak_syms * weak;
-
- weak = (struct weak_syms *) permalloc (sizeof (struct weak_syms));
-
- if (weak == NULL)
- return 0;
-
- weak->next = weak_decls;
- weak->name = name;
- weak->value = value;
- weak_decls = weak;
-
- return 1;
-}
-#endif /* HANDLE_PRAGMA_WEAK */
-
/* Handle one token of a pragma directive. TOKEN is the current token, and
STRING is its printable form. Some front ends do not support generating
tokens, and will only pass in a STRING. Also some front ends will reuse