summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-22 01:41:31 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-22 01:41:31 +0000
commitcc0a8c775942b047e581940d675a5636775fed4b (patch)
tree15ca88bb9e4b6c33745aa08e5b527654eacfd373 /gcc/java
parentdd7ffa9b9f9d850f599148e5d46ccfb19107a738 (diff)
downloadgcc-cc0a8c775942b047e581940d675a5636775fed4b.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216539 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog8
-rw-r--r--gcc/java/mangle.c2
-rw-r--r--gcc/java/typeck.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 777849f8e9f..a366113ec02 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+2014-10-22 Alan Modra <amodra@gmail.com>
+
+ * mangle.c (finish_mangling): Cast result of obstack_base to (char *).
+ * typeck.c (build_java_argument_signature): Likewise.
+ (build_java_signature): Likewise.
+
2014-10-16 Andrew MacLeod <amacleod@redhat.com>
* class.c: Adjust include files.
@@ -5,7 +11,7 @@
2014-10-15 Evgeny Stupachenko <evstupac@gmail.com>
- PR target/63536
+ PR target/63536
* lang.c (java_print_error_function): Add check on NULL function
context.
diff --git a/gcc/java/mangle.c b/gcc/java/mangle.c
index e2aa85560a6..087264e2bba 100644
--- a/gcc/java/mangle.c
+++ b/gcc/java/mangle.c
@@ -711,7 +711,7 @@ finish_mangling (void)
compression_table = NULL_TREE;
compression_next = 0;
obstack_1grow (mangle_obstack, '\0');
- result = get_identifier (obstack_base (mangle_obstack));
+ result = get_identifier ((char *) obstack_base (mangle_obstack));
obstack_free (mangle_obstack, obstack_base (mangle_obstack));
return result;
diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c
index 574029aac40..2019b2d6624 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));
}