[4.0 PATCH] Enable Tree-SRA at -O3 only for Ada

Eric Botcazou ebotcazou@adacore.com
Tue Apr 5 16:16:00 GMT 2005


Hi,

As the first prerelease is scheduled for the end of the week, the problems 
caused by the bad interaction between Ada and Tree-SSA will very likely not 
be fixed in time for 4.0.0.  They are responsible for the remaining ACATS 
failures on x86-64/Linux (1 wrong code), x86/Linux (1 wrong code, 6 ICEs) and 
SPARC/Solaris (6 ICEs).  According to a preliminary analysis, the ICEs are 
related to Ada's DECL_ORIGINAL_FIELD/update_pointer_to and fat pointers.

So I propose to enable Tree-SRA only at -O3 for Ada on the 4.0 branch, as an 
unsafe optimization pass for the Ada compiler.

Bootstrapped/regtested on i586-suse-linux.


2005-04-05  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/18659
	PR ada/18819
	* misc.c (tree_sra_requested): New global.
	(gnat_init_options): Detect -ftree-sra.
	(gnat_post_options): Enable Tree-SRA at -O3 and above only
	or if specifically requested.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disable_tree_sra_low_opt.diff
Type: text/x-diff
Size: 1450 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050405/7259818f/attachment.bin>


More information about the Gcc-patches mailing list