* lang.c (java_init_options_struct): Disable optimizations
which assume a NULL pointer dereference will cause a fault.
Index: lang.c
===================================================================
*** lang.c (revision 181321)
--- lang.c (working copy)
*************** java_init_options_struct (struct gcc_opt
*** 556,561 ****
--- 556,565 ----
/* Java requires left-to-right evaluation of subexpressions. */
opts->x_flag_evaluation_order = 1;
+
+ /* Java catches catch 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