aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-09-12 13:09:33 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-09-12 13:09:33 -0400
commitac1bc2ca68418a939c82f5e4d6fc217a64731e9c (patch)
treed7b3460f5c1c999d87f0e88a5b8c45a104928ead /gcc
parentba5c3ac4db1969237284fe5e54549f99edef98e8 (diff)
downloadgcc-ac1bc2ca68418a939c82f5e4d6fc217a64731e9c.zip
gcc-ac1bc2ca68418a939c82f5e4d6fc217a64731e9c.tar.gz
gcc-ac1bc2ca68418a939c82f5e4d6fc217a64731e9c.tar.bz2
(scan_libraries): cast lsyms' alloca() to LDSYM*.
From-SVN: r10324
Diffstat (limited to 'gcc')
-rw-r--r--gcc/collect2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 4e930fc..a74a7f0 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);