From: Richard Kenner Date: Tue, 12 Sep 1995 17:09:33 +0000 (-0400) Subject: (scan_libraries): cast lsyms' alloca() to LDSYM*. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac1bc2ca68418a939c82f5e4d6fc217a64731e9c;p=gcc.git (scan_libraries): cast lsyms' alloca() to LDSYM*. From-SVN: r10324 --- diff --git a/gcc/collect2.c b/gcc/collect2.c index 4e930fce055..a74a7f06992 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -2692,7 +2692,7 @@ scan_libraries (prog_name) fatal ("%s: can't read loader section", soname); /*fprintf (stderr, "\tscanning %s\n", soname);*/ symcnt = soldh.l_nsyms; - lsyms = alloca (symcnt * sizeof *lsyms); + lsyms = (LDSYM*) alloca (symcnt * sizeof *lsyms); symcnt = FREAD (lsyms, sizeof *lsyms, symcnt, libptr); ldstrings = alloca (soldh.l_stlen); FSEEK (libptr, soldsh.s_scnptr+soldh.l_stoff, BEGINNING);