Commit 810fb8f1 by Jeffrey A Law Committed by Jeff Law

lang.c (java_init_options_struct): Disable optimizations which assume a NULL…

lang.c (java_init_options_struct): Disable optimizations which assume a NULL pointer dereference will cause a fault.

	* lang.c (java_init_options_struct): Disable optimizations
	which assume a NULL pointer dereference will cause a fault.

From-SVN: r181674
parent d0dcb2b1
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.
......
......@@ -556,6 +556,10 @@ java_init_options_struct (struct gcc_options *opts)
/* 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment