summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-22 09:48:22 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-22 09:48:22 +0000
commite7abd8c1bb8c7bdcf609e1e7664340a255be3ed3 (patch)
tree1591dcc7417c8fabe5a2edc97b3016b918b0a635 /gcc/collect2.c
parent3b59e00b0571b9b99b4e0f1e841819b18bc6b13f (diff)
downloadgcc-e7abd8c1bb8c7bdcf609e1e7664340a255be3ed3.tar.gz
* collect2.c (scan_prog_file): Completely cover uses of variable
`exports' with macro COLLECT_EXPORT_LIST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18163 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 815d76a8ce5..e9a0a3f65f5 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -2855,9 +2855,9 @@ scan_prog_file (prog_name, which_pass)
{
case 1:
if (! is_shared) add_to_list (&constructors, name);
+#ifdef COLLECT_EXPORT_LIST
if (which_pass == PASS_OBJ)
add_to_list (&exports, name);
-#ifdef COLLECT_EXPORT_LIST
/* If this symbol was undefined and we are building
an import list, we should add a symbol to this
list. */
@@ -2870,9 +2870,9 @@ scan_prog_file (prog_name, which_pass)
case 2:
if (! is_shared) add_to_list (&destructors, name);
+#ifdef COLLECT_EXPORT_LIST
if (which_pass == PASS_OBJ)
add_to_list (&exports, name);
-#ifdef COLLECT_EXPORT_LIST
/* If this symbol was undefined and we are building
an import list, we should add a symbol to this
list. */