From 40c3a857ac683f57ceed57434713f1c0a47daa19 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sun, 29 Mar 1998 11:49:10 +0000 Subject: [PATCH] * collect2.c (is_in_list): Wrap inside COLLECT_EXPORT_LIST ifdef. From-SVN: r18892 --- gcc/ChangeLog | 2 ++ gcc/collect2.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 54e39f48a8ae..a162ea88fa30 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/collect2.c b/gcc/collect2.c index 169c3beda466..4e462d9d5f0f 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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 -- 2.43.5