diff options
author | Dave Brolley <brolley@cygnus.com> | 1999-06-07 10:35:27 +0000 |
---|---|---|
committer | Dave Brolley <brolley@gcc.gnu.org> | 1999-06-07 06:35:27 -0400 |
commit | e7553be55ad4e48cfbd36b896947104d763b5696 (patch) | |
tree | 23b92bd39b6485ed2d1cf4e011752164ac81fb8b /gcc/cpplib.c | |
parent | 683a10613f9e9a252effdccd7a1c3c003d2c5f91 (diff) | |
download | gcc-e7553be55ad4e48cfbd36b896947104d763b5696.zip gcc-e7553be55ad4e48cfbd36b896947104d763b5696.tar.gz gcc-e7553be55ad4e48cfbd36b896947104d763b5696.tar.bz2 |
cpplib.c (do_define): Cast `alloca' return value.
Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
* cpplib.c (do_define): Cast `alloca' return value.
(do_include, do_undef, do_pragma): Likewise.
* cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
values.
* cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
* gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
From-SVN: r27391
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index bcf40e1..25b57c6 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -624,7 +624,7 @@ do_define (pfile, keyword) /* Copy out the line so we can pop the token buffer. */ buf = pfile->token_buffer + here; end = CPP_PWRITTEN (pfile); - macro = alloca (end - buf + 1); + macro = (U_CHAR *) alloca (end - buf + 1); bcopy (buf, macro, end - buf + 1); end = macro + (end - buf); @@ -1015,7 +1015,7 @@ do_include (pfile, keyword) } flen = CPP_WRITTEN (pfile) - old_written; - ftok = alloca (flen + 1); + ftok = (unsigned char *) alloca (flen + 1); memcpy (ftok, pfile->token_buffer + old_written, flen); ftok[flen] = '\0'; @@ -1342,7 +1342,7 @@ do_undef (pfile, keyword) limit = CPP_PWRITTEN(pfile); /* Copy out the token so we can pop the token buffer. */ - name = alloca (limit - buf + 1); + name = (U_CHAR *) alloca (limit - buf + 1); bcopy(buf, name, limit - buf); name[limit - buf] = '\0'; @@ -1507,7 +1507,7 @@ do_pragma (pfile, keyword) fname = p + 1; p = (U_CHAR *) index (fname, '\"'); - fcopy = alloca (p - fname + 1); + fcopy = (U_CHAR *) alloca (p - fname + 1); bcopy (fname, fcopy, p - fname); fcopy[p-fname] = '\0'; |