which assume a NULL pointer dereference will cause a fault.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181674
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-11-23 Jeffrey A Law (law@cygnus.com)
+
+ * lang.c (java_init_options_struct): Disable optimizations
+ which assume a NULL pointer dereference will cause a fault.
+
2011-11-07 Richard Henderson <rth@redhat.com>
* builtins.c (compareAndSwapInt_builtin): Use can_compare_and_swap_p.
/* Java requires left-to-right evaluation of subexpressions. */
opts->x_flag_evaluation_order = 1;
+
+ /* Java catches NULL pointer exceptions, thus we can not necessarily
+ rely on a pointer having a non-NULL value after a dereference. */
+ opts->x_flag_delete_null_pointer_checks = 0;
}
static void