From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18229 invoked by alias); 24 Nov 2014 11:28:48 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 18195 invoked by uid 48); 24 Nov 2014 11:28:48 -0000 From: "aph at gcc dot gnu.org" To: java-prs@gcc.gnu.org Subject: [Bug java/64044] Java emits bogus .class$ decls Date: Mon, 24 Nov 2014 11:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aph at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00013.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64044 --- Comment #5 from Andrew Haley --- (In reply to rguenther@suse.de from comment #4) > On Mon, 24 Nov 2014, aph at redhat dot com wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64044 > > > > Andrew Haley changed: > > > > What |Removed |Added > > ---------------------------------------------------------------------------- > > CC| |aph at redhat dot com > > > > --- Comment #2 from Andrew Haley --- > > So, is the solution to this trivially not to mark the .class$ decls as > > TREE_CONST ? > > Yes, see the patch I proposed (in testing right now, I'll post it > and ask for approval later today unless you want to pre-approve here) Fine by me. I did that because I wanted some way to tell GCC that it could treat the field as readonly, but TREE_CONST doesn't do that.