summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-09-12 17:09:33 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-09-12 17:09:33 +0000
commit582d838ff1176f5268c86bc793c578d7869d9db1 (patch)
treed7b3460f5c1c999d87f0e88a5b8c45a104928ead /gcc/collect2.c
parentaec77e9fadf6cc1bb40195741ecb4396161d59ca (diff)
downloadgcc-582d838ff1176f5268c86bc793c578d7869d9db1.tar.gz
(scan_libraries): cast lsyms' alloca() to LDSYM*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c2
1 files changed, 1 insertions, 1 deletions
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);