From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32728 invoked by alias); 27 Mar 2012 21:52:01 -0000 Received: (qmail 32715 invoked by uid 22791); 27 Mar 2012 21:52:00 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Mar 2012 21:51:47 +0000 Received: by yhjj56 with SMTP id j56so387863yhj.20 for ; Tue, 27 Mar 2012 14:51:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.192.230 with SMTP id i66mr27513790yhn.116.1332885106366; Tue, 27 Mar 2012 14:51:46 -0700 (PDT) Received: by 10.100.146.5 with HTTP; Tue, 27 Mar 2012 14:51:46 -0700 (PDT) In-Reply-To: <201203272307.17027.ebotcazou@adacore.com> References: <201203272307.17027.ebotcazou@adacore.com> Date: Tue, 27 Mar 2012 21:52:00 -0000 Message-ID: Subject: Re: [patch] Do not call output_constant from the front end From: Steven Bosscher To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org, Richard Guenther Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2012-q1/txt/msg00080.txt.bz2 On Tue, Mar 27, 2012 at 11:07 PM, Eric Botcazou 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! Ciao! Steven