summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-16 08:15:33 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-16 08:15:33 +0000
commitf4380a63bb9f43e34576dfe9fe99e56dac681e1d (patch)
tree04e547c09f66b35458c146d534f0ad024f7868bb
parented55679f5b455368b6477f17c3a7b8632f771433 (diff)
downloadppe42-gcc-f4380a63bb9f43e34576dfe9fe99e56dac681e1d.tar.gz
ppe42-gcc-f4380a63bb9f43e34576dfe9fe99e56dac681e1d.zip
* config/mips/mips.c (mips_file_end): Only write symbols that have
been referenced at some point. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74681 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 18f19168ddd..c7cd477349d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2003-12-16 Richard Sandiford <rsandifo@redhat.com>
+ * config/mips/mips.c (mips_file_end): Only write symbols that have
+ been referenced at some point.
+
+2003-12-16 Richard Sandiford <rsandifo@redhat.com>
+
* config/mips/mips.c: Include langhooks.h
(mips_build_builtin_va_list): Use lang_hooks.types.make_type.
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index e0a01ce814f..c748bac73af 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -5846,7 +5846,8 @@ mips_file_end (void)
name_tree = get_identifier (p->name);
/* Positively ensure only one .extern for any given symbol. */
- if (! TREE_ASM_WRITTEN (name_tree))
+ if (!TREE_ASM_WRITTEN (name_tree)
+ && TREE_SYMBOL_REFERENCED (name_tree))
{
TREE_ASM_WRITTEN (name_tree) = 1;
/* In IRIX 5 or IRIX 6 for the O32 ABI, we must output a
OpenPOWER on IntegriCloud