+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.
{
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. */
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. */