diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-02-22 14:06:35 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-22 07:06:35 -0700 |
commit | 5e7174a37ef9b10f3d6ddb0ee3986a392c781396 (patch) | |
tree | f98978bae42ab29a78473f4a588321e070ab3c13 | |
parent | ad3064bf4ea4f1611749a70ad996488a4ab83f70 (diff) | |
download | gcc-5e7174a37ef9b10f3d6ddb0ee3986a392c781396.zip gcc-5e7174a37ef9b10f3d6ddb0ee3986a392c781396.tar.gz gcc-5e7174a37ef9b10f3d6ddb0ee3986a392c781396.tar.bz2 |
collect2.c (scan_prog_file): Completely cover uses of variable `exports' with macro COLLECT_EXPORT_LIST.
* collect2.c (scan_prog_file): Completely cover uses of variable
`exports' with macro COLLECT_EXPORT_LIST.
From-SVN: r18164
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/collect2.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a58d83a..56160aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Feb 22 09:45:39 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * collect2.c (scan_prog_file): Completely cover uses of variable + `exports' with macro COLLECT_EXPORT_LIST. + 1998-02-20 Jason Merrill <jason@yorick.cygnus.com> * collect2.c (main): Still handle !do_collecting for non-AIX targets. diff --git a/gcc/collect2.c b/gcc/collect2.c index 6cc04d4..a4e8696 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -2830,9 +2830,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. */ @@ -2845,9 +2845,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. */ |