From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 865 invoked by alias); 8 Dec 2011 19:16:08 -0000 Received: (qmail 839 invoked by uid 22791); 8 Dec 2011 19:16:07 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Thu, 08 Dec 2011 19:15:54 +0000 From: "jojelino at gmail dot com" To: java-prs@gcc.gnu.org Subject: [Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch. Date: Thu, 08 Dec 2011 19:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcj X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jojelino at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: 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: 2011-q4/txt/msg00023.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053 --- Comment #10 from gee 2011-12-08 19:15:47 UTC --- (In reply to comment #9) whereas with -findirect-dispatch, initializer code isn't omitted. ;; Function () (_ZN3gnu3gcj7convert10Input_UTF8C1Ev, funcdef_no=47, decl_uid=3185, cgraph_uid=94) () (struct gnu.gcj.convert.Input_UTF8 * this) { int D.9476; struct java.lang.Object * D.3210; int #slot#2#4; struct java.lang.Object * D.3207; void * #ref#1#2; struct java.lang.Object * D.3203; void * #ref#0#0; int * D.9474; sizetype D.9473; int D.9472; void * _ref_1_2.1045; int * iftmp.1044; int * D.9467; sizetype D.9466; int D.9465; void * _ref_1_2.1043; int * iftmp.1042; void gnu.gcj.convert.BytesToUnicode:: (struct gnu.gcj.convert.BytesToUnicode *) * D.9460; void * D.9459; void * _ref_1_2.1041; : D.3203_2 = this_1(D); #ref#1#2_3 = D.3203_2; _ref_1_2.1041_4 = #ref#1#2_3; D.9459_5 = _atable_gnu_gcj_convert_Input_UTF8[1]; D.9460_6 = (void gnu.gcj.convert.BytesToUnicode:: (struct gnu.gcj.convert.BytesToUnicode *) *) D.9459_5; D.9460_6 (_ref_1_2.1041_4); D.3207_7 = this_1(D); #ref#1#2_8 = D.3207_7; #slot#2#4_9 = 0; _ref_1_2.1043_10 = #ref#1#2_8; if (_ref_1_2.1043_10 == 0B) goto ; else goto ; : _Jv_ThrowNullPointerException (); : iftmp.1042_11 = _ref_1_2.1043_10; D.9465_12 = _otable_gnu_gcj_convert_Input_UTF8[1]; D.9466_13 = (sizetype) D.9465_12; D.9467_14 = iftmp.1042_11 + D.9466_13; *D.9467_14 = #slot#2#4_9; D.3210_15 = this_1(D); #ref#1#2_16 = D.3210_15; #slot#2#4_17 = 0; _ref_1_2.1045_18 = #ref#1#2_16; if (_ref_1_2.1045_18 == 0B) goto ; else goto ; : _Jv_ThrowNullPointerException (); : iftmp.1044_19 = _ref_1_2.1045_18; D.9476_20 = _otable_gnu_gcj_convert_Input_UTF8[2]; D.9472_21 = D.9476_20; D.9473_22 = (sizetype) D.9472_21; D.9474_23 = iftmp.1044_19 + D.9473_22; *D.9474_23 = #slot#2#4_17; : return; }