diff options
| author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 16:27:19 +0000 |
|---|---|---|
| committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 16:27:19 +0000 |
| commit | d8fff3ca9b99a853557ccd9e5d78510d4a39e22d (patch) | |
| tree | f8e6ed92c4715a9964e9461e0650bbca33471270 /gcc/java/expr.c | |
| parent | 33ea6cc075fce69981316855b3ebe9e666489df9 (diff) | |
| download | ppe42-gcc-d8fff3ca9b99a853557ccd9e5d78510d4a39e22d.tar.gz ppe42-gcc-d8fff3ca9b99a853557ccd9e5d78510d4a39e22d.zip | |
libjava:
2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
* prims.cc (_Jv_AllocObject): Remove `size' argument.
(_Jv_AllocObjectNoFinalizer): Likewise.
(_Jv_AllocObjectNoInitNoFinalizer): Likewise.
(_Jv_AllocPtrFreeObject): Likewise.
(_Jv_AllocString): Moved from natString.cc. Call collector interface
directly even in the JVMPI case.
* gcj/cni.h (JvAllocObject): Remove `size' argument from
_Jv_AllocObject calls.
* gcj/javaprims.h: Update prototypes.
* gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not
_Jv_AllocObject.
* java/lang/Class.h: Update _Jv_AllocObject friend prototype.
* java/lang/natString.cc (_Jv_AllocString): Move to prims.cc.
gcc/cp:
2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
* init.c (build_new_1): Don't use type size argument for Java
_Jv_AllocObject call.
gcc/java:
2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
* expr.c (expand_java_NEW): Don't use size argument for
_Jv_AllocObject calls.
* parse.y (patch_invoke): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80754 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
| -rw-r--r-- | gcc/java/expr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 2c0312ea810..839480b5b64 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1150,9 +1150,7 @@ expand_java_NEW (tree type) safe_layout_class (type); push_value (build (CALL_EXPR, promote_type (type), build_address_of (alloc_node), - tree_cons (NULL_TREE, build_class_ref (type), - build_tree_list (NULL_TREE, - size_in_bytes (type))), + build_tree_list (NULL_TREE, build_class_ref (type)), NULL_TREE)); } |

