diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-19 12:43:55 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-19 12:43:55 +0000 |
commit | ca7f6516755052fa0bf535306ef1e177fdad1199 (patch) | |
tree | 44ab1abac4ea78664a7aac624e55999489833429 /gcc/genrecog.c | |
parent | 266fc98c3d039b846a6fec8bf5b879954f047daf (diff) | |
download | gcc-ca7f6516755052fa0bf535306ef1e177fdad1199.tar.gz |
Warning fixes:
* cccp.c (create_definition): Cast to U_CHAR* when assigning to one.
* cppfiles.c (read_and_prescan): Likewise.
Start a #define in column 0.
* cpplib.c (cpp_define): Cast to U_CHAR* when assigning to one.
(cpp_push_buffer): Likewise for cpp_buffer*.
(do_include): Change the type of `fbeg' and `fend' to unsigned char*.
(do_endif): Cast to char* when assigning to one.
(do_assert): Likewise.
(do_unassert): Likewise.
(cpp_read_check_assertion): Change the type of `name' to U_CHAR*.
Don't do unnecessary cast to char* anymore.
* genrecog.c (make_insn_sequence): Cast to char** when assigning
to one. Cast the first argument of bzero to PTR.
* loop.c (strength_reduce): Remove unused variable `note'.
* reload1.c (new_insn_chain): Cast to struct insn_chain* when
assigning to one.
* rtl.c (copy_rtx): Use memcpy instead of bcopy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25860 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index e66a83947fd..f1359470b6b 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -221,8 +221,9 @@ make_insn_sequence (insn, type) { int new_size; new_size = (insn_name_ptr_size ? insn_name_ptr_size * 2 : 512); - insn_name_ptr = xrealloc (insn_name_ptr, sizeof(char *) * new_size); - bzero (insn_name_ptr + insn_name_ptr_size, + insn_name_ptr = + (char **) xrealloc (insn_name_ptr, sizeof(char *) * new_size); + bzero ((PTR)(insn_name_ptr + insn_name_ptr_size), sizeof(char *) * (new_size - insn_name_ptr_size)); insn_name_ptr_size = new_size; } |