* collect2.c (is_in_list): Wrap inside COLLECT_EXPORT_LIST ifdef.
authorJeffrey A Law <law@cygnus.com>
Sun, 29 Mar 1998 11:49:10 +0000 (11:49 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 29 Mar 1998 11:49:10 +0000 (04:49 -0700)
From-SVN: r18892

gcc/ChangeLog
gcc/collect2.c

index 54e39f48a8aea5f4452cf3605dd636cfbe158e6c..a162ea88fa300fd3ba94159b95018f52ac91bd3a 100644 (file)
@@ -1,5 +1,7 @@
 Sun Mar 29 12:45:23 1998  Jeffrey A Law  (law@cygnus.com)
 
+       * collect2.c (is_in_list): Wrap inside COLLECT_EXPORT_LIST ifdef.
+
        * local-alloc.c (reg_classes_overlap_p): Delete dead function.
 
        * tree.h (lang_print_xnode): Provide prototype.
index 169c3beda466713ae479536bdba9c53d445a18d1..4e462d9d5f0f1309ebf2141280328e89ce517b6f 100644 (file)
@@ -293,7 +293,6 @@ static void add_to_list             PROTO((struct head *, char *));
 static void write_list         PROTO((FILE *, char *, struct id *));
 static void dump_list          PROTO((FILE *, char *, struct id *));
 static void dump_prefix_list   PROTO((FILE *, char *, struct prefix_list *));
-static int is_in_list          PROTO((char *, struct id *));
 static void write_list_with_asm PROTO((FILE *, char *, struct id *));
 static void write_c_file       PROTO((FILE *, char *));
 static void scan_prog_file     PROTO((char *, enum pass));
@@ -301,6 +300,7 @@ static void scan_prog_file  PROTO((char *, enum pass));
 static void scan_libraries     PROTO((char *));
 #endif
 #ifdef COLLECT_EXPORT_LIST
+static int is_in_list          PROTO((char *, struct id *));
 static void write_export_file  PROTO((FILE *));
 static void write_import_file  PROTO((FILE *));
 static char *resolve_lib_name  PROTO((char *));
@@ -1871,6 +1871,7 @@ write_list (stream, prefix, list)
     }
 }
 
+#ifdef COLLECT_EXPORT_LIST
 /* This function is really used only on AIX, but may be useful.  */
 static int
 is_in_list (prefix, list)
@@ -1884,6 +1885,7 @@ is_in_list (prefix, list)
     }
     return 0;
 }
+#endif
 
 /* Added for debugging purpose.  */
 static void