From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 12A1A3858C51 for ; Wed, 18 May 2022 11:02:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 12A1A3858C51 Received: from [192.168.124.21] (unknown [113.140.11.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 00F4F667A6; Wed, 18 May 2022 07:01:59 -0400 (EDT) Message-ID: <296056e130d014c20b4d55e9b4b036db13dcb1d2.camel@xry111.site> Subject: Re: Segfault in libjava/prims.cc while compiling gcj From: Xi Ruoyao To: Jonathan Wakely , Zopolis0 Cc: gcc-help Date: Wed, 18 May 2022 19:01:57 +0800 In-Reply-To: References: <98a68a34c0d95c812b49f471df3ff3d32e0bea8d.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 MIME-Version: 1.0 X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, LIKELY_SPAM_FROM, PDS_OTHER_BAD_TLD, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 11:02:03 -0000 On Wed, 2022-05-18 at 11:57 +0100, Jonathan Wakely wrote: > On Wed, 18 May 2022 at 11:45, Zopolis0 wrote: > >=20 > > I thought "=C2=A0 But "-D...", "-I...", and "-B..." shall be > > removed." was asking me to remove them. > >=20 > > I used -E, I said I produced the file. >=20 > Ah I missed that, sorry. I thought you were still trying to produce a > .ii file. My mistake: I didn't expect that this .ii file contains "extern Java { ... }", not supported by GCC trunk. So for the OP, the only option seems to reduce the .ii file into a test case and debug the compiler. I guess the OP has made some mistake implementing "extern Java" for C++ FE. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University