diff options
author | Alan Modra <amodra@gcc.gnu.org> | 2014-10-22 12:11:31 +1030 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2014-10-22 12:11:31 +1030 |
commit | 19a9ba64e7895c9919b95cd446faa4922ebf284e (patch) | |
tree | 15ca88bb9e4b6c33745aa08e5b527654eacfd373 /libcpp/files.c | |
parent | 1fb38e450e2e3a01785db3a35e1b9851ca26ada7 (diff) | |
download | gcc-19a9ba64e7895c9919b95cd446faa4922ebf284e.tar.gz |
gengtype.h (obstack_chunk_alloc, [...]): Remove cast.
gcc/
* gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
* coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
(gcc_obstack_init): Use obstack_specify_allocation in place of
_obstack_begin.
* genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
(regexp_representation): Likewise.
* godump.c (go_output_type): Likewise.
gcc/java/
* mangle.c (finish_mangling): Cast result of obstack_base to (char *).
* typeck.c (build_java_argument_signature): Likewise.
(build_java_signature): Likewise.
gcc/objc/
* objc-encoding.c (encode_array): Cast result of obstack_base.
(encode_type): Likewise.
libcpp/
* symtab.c (ht_create): Use obstack_specify_allocation in place of
_obstack_begin.
* files.c (_cpp_init_files): Likewise.
* init.c (cpp_create_reader): Likewise.
* identifiers.c (_cpp_init_hashtable): Likewise.
From-SVN: r216539
Diffstat (limited to 'libcpp/files.c')
-rw-r--r-- | libcpp/files.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libcpp/files.c b/libcpp/files.c index e464259e458..3984821db52 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -1282,9 +1282,8 @@ _cpp_init_files (cpp_reader *pfile) pfile->nonexistent_file_hash = htab_create_alloc (127, htab_hash_string, nonexistent_file_hash_eq, NULL, xcalloc, free); - _obstack_begin (&pfile->nonexistent_file_ob, 0, 0, - (void *(*) (long)) xmalloc, - (void (*) (void *)) free); + obstack_specify_allocation (&pfile->nonexistent_file_ob, 0, 0, + xmalloc, free); } /* Finalize everything in this source file. */ |