aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2000-12-24 00:43:40 +0000
committerBryce McKinlay <bryce@albatross.co.nz>2000-12-24 00:43:40 +0000
commit9e08ffbae4b7b18fa86436c9a2f893f24284fed0 (patch)
tree933ecd6a4250e4eba29b9292dde0fe6fcd8d2d65 /gcc/java/decl.c
parent5b0fc2450fed69538e8de4cca5c708347531b3bc (diff)
Shorten primitive array allocation path:
* decl.c (init_decl_processing): Use _Jv_NewPrimArray not _Jv_NewArray to create new primitive arrays. * expr.c (build_newarray): If generating native code, call soft_newarray_node with a reference to the primitive TYPE identifier instead of type_value. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@38482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 0ed71700bde..df6b236e45e 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -775,7 +775,7 @@ init_decl_processing ()
t = tree_cons (NULL_TREE, int_type_node,
tree_cons (NULL_TREE, int_type_node, endlink));
soft_newarray_node
- = builtin_function ("_Jv_NewArray",
+ = builtin_function ("_Jv_NewPrimArray",
build_function_type(ptr_type_node, t),
0, NOT_BUILT_IN, NULL_PTR);
DECL_IS_MALLOC (soft_newarray_node) = 1;