[patch][rfa] Do not call output_constant from the front end
Steven Bosscher
stevenb.gcc@gmail.com
Tue Mar 27 22:23:00 GMT 2012
On Tue, Mar 27, 2012 at 11:51 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> On Tue, Mar 27, 2012 at 11:07 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>>> With this patch a variable named "_Jv_CLS" is written out. The
>>> assembly before and after the patch is the same, except for the
>>> variable name. I want to write out a nameless variable but I don't
>>> know how.
>>
>> Try tree_output_constant_def.
>
> I didn't know about this function. But as far as I can tell, there is
> no way to instruct that function to put the data in a specific
> section. In the Java case, the data must be put in the .jcr section. I
> suppose that can be achieved with a bit more re-working of varasm, but
> not with the code as-is. Thanks for the pointer, though!
It also doesn't appear to be possible to adjust the alignment via
tree_output_constant_def(), so going down that path seems more trouble
than it's worth.
Therefore, an RFA for the attached patch. Bootstrapped&tested on
powerpc64-unknown-linux-gnu. OK?
Ciao!
Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java_no_output_constant.diff
Type: text/x-patch
Size: 5043 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20120327/8b3067ea/attachment.bin>
More information about the Java-patches
mailing list