X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fcollect2.c;h=26548b4ddb7a3c4e4a87c10a727b678a858a0f76;hb=844fa2febf63e7ee06988b295aed7b1f6afca3ba;hp=4dd08f045b1644b9becb131167e7bd7a14140226;hpb=2f9e77d1f405a800f0a14731c4173eb64b0e0020;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/collect2.c b/gcc/collect2.c index 4dd08f045b1..26548b4ddb7 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1,7 +1,7 @@ /* Collect static initialization info into data structures that can be traversed by C++ initialization and finalization routines. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by Chris Smith (csmith@convex.com). Heavily modified by Michael Meissner (meissner@cygnus.com), Per Bothner (bothner@cygnus.com), and John Gilmore (gnu@cygnus.com). @@ -532,7 +532,7 @@ dump_file (name) if (no_demangle) result = 0; else - result = cplus_demangle (p, DMGL_PARAMS | DMGL_ANSI); + result = cplus_demangle (p, DMGL_PARAMS | DMGL_ANSI | DMGL_VERBOSE); if (result) { @@ -572,11 +572,11 @@ is_ctor_dtor (s) struct names { const char *const name; const int len; const int ret; const int two_underscores; }; - struct names *p; + const struct names *p; int ch; const char *orig_s = s; - static struct names special[] = { + static const struct names special[] = { { "GLOBAL__I_", sizeof ("GLOBAL__I_")-1, 1, 0 }, { "GLOBAL__D_", sizeof ("GLOBAL__D_")-1, 2, 0 }, { "GLOBAL__F_", sizeof ("GLOBAL__F_")-1, 5, 0 }, @@ -1080,7 +1080,7 @@ main (argc, argv) *c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q)); if (strcmp (q, "-EL") == 0 || strcmp (q, "-EB") == 0) *c_ptr++ = obstack_copy0 (&permanent_obstack, q, strlen (q)); - if (strncmp (q, "-shared", sizeof ("-shared") - 1) == 0) + if (strcmp (q, "-shared") == 0) shared_obj = 1; if (*q == '-' && q[1] == 'B') { @@ -2861,7 +2861,7 @@ scan_prog_file (prog_name, which_pass) (void) ldclose(ldptr); #endif } - +#endif /* OBJECT_FORMAT_COFF */ #ifdef COLLECT_EXPORT_LIST /* Given a library name without "lib" prefix, this function @@ -2941,9 +2941,7 @@ ignore_library (name) if (! strcmp (name, *p)) return 1; return 0; } -#endif - -#endif /* OBJECT_FORMAT_COFF */ +#endif /* COLLECT_EXPORT_LIST */ /*