[PTR-PLUS] Fix java bootstrap
Andrew_Pinski@PlayStation.Sony.Com
Andrew_Pinski@PlayStation.Sony.Com
Sat May 12 21:59:00 GMT 2007
A couple more s/PLUS_EXPR/POINTER_PLUS_EXPR/, this time in the java
front-end and one in the C++ front-end dealing with java exceptions (which
I added a testcase for which we want to test without java/libjava being
enabled). The one big thing I have noticed now is that the front-ends
were not being type safe already had already pointer + integer in a lot of
places.
Committed to the branch after a bootstrap/test on i686-linux-gnu with no
regressions.
Thanks,
Andrew Pinski
java/ChangeLog:
* class.c (make_class_data): Build the index in sizetype.
Use POINTER_PLUS_EXPR instead of PLUS_EXPR when
adding to a pointer type.
(build_symbol_entry): Likewise.
* expr.c (build_java_arrayaccess): Likewise.
(build_field_ref): Likewise.
(build_known_method_ref): Likewise.
(build_invokevirtual): Likewise.
* except.c (build_exception_object_ref): Do a
NEGATIVE and then a POINTER_PLUS_EXPR instead
of a MINUS_EXPR.
cp/ChangeLog:
* except.c (expand_start_catch_block): Do a
NEGATIVE and then a POINTER_PLUS_EXPR instead
of a MINUS_EXPR.
testsuite/ChangeLog:
* g++.dg/ext/java-1.C: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixjava.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070512/a6b78140/attachment.txt>
More information about the Gcc-patches
mailing list