summaryrefslogtreecommitdiffstats
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-06-07 10:35:27 +0000
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-06-07 10:35:27 +0000
commit81d1a796592acee836fefa7606cddd5b6a505ccd (patch)
tree23b92bd39b6485ed2d1cf4e011752164ac81fb8b /gcc/cppfiles.c
parent8936006821ca7ed89baf35b3a495d69a83699588 (diff)
downloadppe42-gcc-81d1a796592acee836fefa7606cddd5b6a505ccd.tar.gz
ppe42-gcc-81d1a796592acee836fefa7606cddd5b6a505ccd.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index a63d7e5bd69..1e70d3e6c52 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -1100,7 +1100,7 @@ initialize_input_buffer (pfile, fd, st)
read_and_prescan inner loop. The number of non-EMPTY entries
should be as small as humanly possible. */
- tmp = xmalloc (1 << CHAR_BIT);
+ tmp = (U_CHAR *) xmalloc (1 << CHAR_BIT);
memset (tmp, SPECCASE_EMPTY, 1 << CHAR_BIT);
tmp['\0'] = SPECCASE_NUL;
tmp['\r'] = SPECCASE_CR;
@@ -1138,7 +1138,7 @@ initialize_input_buffer (pfile, fd, st)
the case there's a potential trigraph or end-of-line digraph at
the end of a block. */
- tmp = xmalloc (pipe_buf + 2 + 2);
+ tmp = (U_CHAR *) xmalloc (pipe_buf + 2 + 2);
pfile->input_buffer = tmp;
pfile->input_buffer_len = pipe_buf;
}
OpenPOWER on IntegriCloud