diff options
author | David Edelsohn <dje@gcc.gnu.org> | 1998-02-22 04:48:22 -0500 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 1998-02-22 04:48:22 -0500 |
commit | e3c49f52e9816546442b6455f89773557bf6a88e (patch) | |
tree | 1591dcc7417c8fabe5a2edc97b3016b918b0a635 | |
parent | 9ae83aa02c84b8b8e6d6f41fa9d9dc591cfa9934 (diff) | |
download | gcc-e3c49f52e9816546442b6455f89773557bf6a88e.zip gcc-e3c49f52e9816546442b6455f89773557bf6a88e.tar.gz gcc-e3c49f52e9816546442b6455f89773557bf6a88e.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: r18163
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/collect2.c | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a021fe8..c97a71b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -Sat Feb 21 20:36:23 PST 1998 Jeff Law (law@cygnus.com) +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. + +Sat Feb 21 20:36:23 1998 Jeff Law (law@cygnus.com) * version.c: Bump for snapshot. diff --git a/gcc/collect2.c b/gcc/collect2.c index 815d76a..e9a0a3f 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. */ |