From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9914 invoked by alias); 26 Mar 2012 20:19:07 -0000 Received: (qmail 9891 invoked by uid 22791); 26 Mar 2012 20:19:06 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_JC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Mar 2012 20:18:51 +0000 From: "steven at gcc dot gnu.org" To: java-prs@gcc.gnu.org Subject: [Bug java/52730] Java front end emits assembly Date: Mon, 26 Mar 2012 20:19: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: steven at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: steven at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Component Version Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-q1/txt/msg00129.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52730 Steven Bosscher changed: What |Removed |Added ---------------------------------------------------------------------------- Component|bootstrap |java Version|4.7.0 |4.8.0 Summary|[4.8 Regression] bootstrap |Java front end emits |failure on Linux/ia32 |assembly --- Comment #2 from Steven Bosscher 2012-03-26 20:18:49 UTC --- I believe the following should fix the problem, altough I fail to see how this can ever have worked with LTO. HJ, could you test this for me, please? I have no access to ia32 anymore. Index: class.c =================================================================== --- class.c (revision 185813) +++ class.c (working copy) @@ -3241,6 +3241,7 @@ java_write_globals (void) write_global_declarations (); emit_debug_global_declarations (vec, len); VEC_free (tree, gc, pending_static_fields); + java_emit_static_constructor (); } #include "gt-java-class.h" Index: jcf-parse.c =================================================================== --- jcf-parse.c (revision 185813) +++ jcf-parse.c (working copy) @@ -1689,7 +1689,7 @@ predefined_filename_p (tree node) /* Generate a function that does all static initialization for this translation unit. */ -static void +void java_emit_static_constructor (void) { tree body = NULL; @@ -1974,8 +1974,6 @@ java_parse_file (void) bitmap_obstack_release (&bit_obstack); finish: - /* Arrange for any necessary initialization to happen. */ - java_emit_static_constructor (); gcc_assert (global_bindings_p ()); } Index: java-tree.h =================================================================== --- java-tree.h (revision 185813) +++ java-tree.h (working copy) @@ -940,6 +940,7 @@ struct GTY((variable_size)) lang_type { struct eh_range; extern void java_parse_file (void); +extern void java_emit_static_constructor (void); extern tree java_type_for_mode (enum machine_mode, int); extern tree java_type_for_size (unsigned int, int); extern tree java_truthvalue_conversion (tree);