aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/typeck.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gcc.gnu.org>2014-10-22 12:11:31 +1030
committerAlan Modra <amodra@gcc.gnu.org>2014-10-22 12:11:31 +1030
commit19a9ba64e7895c9919b95cd446faa4922ebf284e (patch)
tree15ca88bb9e4b6c33745aa08e5b527654eacfd373 /gcc/java/typeck.c
parent1fb38e450e2e3a01785db3a35e1b9851ca26ada7 (diff)
downloadgcc-19a9ba64e7895c9919b95cd446faa4922ebf284e.zip
gcc-19a9ba64e7895c9919b95cd446faa4922ebf284e.tar.gz
gcc-19a9ba64e7895c9919b95cd446faa4922ebf284e.tar.bz2
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 'gcc/java/typeck.c')
-rw-r--r--gcc/java/typeck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c
index 574029a..2019b2d 100644
--- a/gcc/java/typeck.c
+++ b/gcc/java/typeck.c
@@ -477,7 +477,7 @@ build_java_argument_signature (tree type)
}
obstack_1grow (&temporary_obstack, '\0');
- sig = get_identifier (obstack_base (&temporary_obstack));
+ sig = get_identifier ((char *) obstack_base (&temporary_obstack));
TYPE_ARGUMENT_SIGNATURE (type) = sig;
obstack_free (&temporary_obstack, obstack_base (&temporary_obstack));
}
@@ -554,7 +554,7 @@ build_java_signature (tree type)
obstack_grow0 (&temporary_obstack,
IDENTIFIER_POINTER (t), IDENTIFIER_LENGTH (t));
- sig = get_identifier (obstack_base (&temporary_obstack));
+ sig = get_identifier ((char *) obstack_base (&temporary_obstack));
obstack_free (&temporary_obstack,
obstack_base (&temporary_obstack));
}