Is there anyone out there who might have a SPARC environment with Ada
support who could run the attached Ada testcase on a version of gcc
patched with the attached patch? I'd like to verify whether the test
behaves correctly when compiled at -O0, -O1, and -O2. The expected
(correct) behavior is the following output:
a_value= 10 b_value= 20
This was a little vague so I used "gcc version 4.2.0 20060805" which is the
most recent compiler with Ada support I have on SPARC. The testcase runs
correctly at -O0, -O1 and -O2 when compiled with the patched compiler. The
size of the frame went down from 216 to 200 bytes at -O2.
--
Eric Botcazou