From: Kaveh R. Ghazi Date: Sun, 22 Feb 1998 14:06:35 +0000 (+0000) Subject: collect2.c (scan_prog_file): Completely cover uses of variable `exports' with macro... X-Git-Tag: prereleases/egcs-1.0.2-prerelease~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e7174a37ef9b10f3d6ddb0ee3986a392c781396;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a58d83ab0bf7..56160aaee075 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Feb 22 09:45:39 1998 Kaveh R. Ghazi + + * collect2.c (scan_prog_file): Completely cover uses of variable + `exports' with macro COLLECT_EXPORT_LIST. + 1998-02-20 Jason Merrill * collect2.c (main): Still handle !do_collecting for non-AIX targets. diff --git a/gcc/collect2.c b/gcc/collect2.c index 6cc04d4bc3ce..a4e8696f0e0b 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. */