Commit e3c49f52 by David Edelsohn

collect2.c (scan_prog_file): Completely cover uses of variable `exports' with…

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
parent 9ae83aa0
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. * version.c: Bump for snapshot.
......
...@@ -2855,9 +2855,9 @@ scan_prog_file (prog_name, which_pass) ...@@ -2855,9 +2855,9 @@ scan_prog_file (prog_name, which_pass)
{ {
case 1: case 1:
if (! is_shared) add_to_list (&constructors, name); if (! is_shared) add_to_list (&constructors, name);
#ifdef COLLECT_EXPORT_LIST
if (which_pass == PASS_OBJ) if (which_pass == PASS_OBJ)
add_to_list (&exports, name); add_to_list (&exports, name);
#ifdef COLLECT_EXPORT_LIST
/* If this symbol was undefined and we are building /* If this symbol was undefined and we are building
an import list, we should add a symbol to this an import list, we should add a symbol to this
list. */ list. */
...@@ -2870,9 +2870,9 @@ scan_prog_file (prog_name, which_pass) ...@@ -2870,9 +2870,9 @@ scan_prog_file (prog_name, which_pass)
case 2: case 2:
if (! is_shared) add_to_list (&destructors, name); if (! is_shared) add_to_list (&destructors, name);
#ifdef COLLECT_EXPORT_LIST
if (which_pass == PASS_OBJ) if (which_pass == PASS_OBJ)
add_to_list (&exports, name); add_to_list (&exports, name);
#ifdef COLLECT_EXPORT_LIST
/* If this symbol was undefined and we are building /* If this symbol was undefined and we are building
an import list, we should add a symbol to this an import list, we should add a symbol to this
list. */ list. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment