From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 15F1A385735B for ; Wed, 18 May 2022 23:20:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 15F1A385735B Received: by mail-oi1-x22f.google.com with SMTP id v65so4514836oig.10 for ; Wed, 18 May 2022 16:20:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NNFoARn7KoWrH9hLHoZ5TPFDYNsHaTPcNlBO4iQ7JwM=; b=bFXf2s5tKLOAvvjNlnCCYOoVdZXCpnQJMkfpUOF6WrnLKL4o6p9n8AsyNChuA4bezP o4wi64AkJKaRBpuu7nzirJh4raUcH+sTgyF22wvrJIcdTIwmuMrXLLmFfuct46cqA5sl M2RKiEH1M3taAdYW6xU+UAAh/DhdLUDzqZF3G+ZvTCzyIP2nODkEtWg+zzReSvpld1pC qZK5/Ddi+Slsoj37mjGSrGr09CIZKPDtUwfw/yOhY6NO01007CCLsFle9d1Lb9FhIo9g qvjrMRZECKIwgIigrr787amXq4GahkUAuZn3Q8MIuzAQXZ5+oHWZ/g1RoBRhxtWTohNJ Lucg== X-Gm-Message-State: AOAM532eTNp6RefjWmm7vOeonOezebM8KTGeea1FDjAw3h7McTMD66/l l3s5GjUhLy22H5V47Sc43WJzY/0rkeeZMPyvJpA= X-Google-Smtp-Source: ABdhPJyLw0/XzQMLRVAxmEsjkg8YHD3NRjItPWShuQIAVbo+HLo/8VT/mcz13XOo5r5C5Z9i2/tqEG+xQWtLL5534m4= X-Received: by 2002:a05:6808:2097:b0:326:6bc9:407e with SMTP id s23-20020a056808209700b003266bc9407emr1313770oiw.250.1652916044346; Wed, 18 May 2022 16:20:44 -0700 (PDT) MIME-Version: 1.0 References: <98a68a34c0d95c812b49f471df3ff3d32e0bea8d.camel@xry111.site> <296056e130d014c20b4d55e9b4b036db13dcb1d2.camel@xry111.site> In-Reply-To: <296056e130d014c20b4d55e9b4b036db13dcb1d2.camel@xry111.site> From: Zopolis0 Date: Thu, 19 May 2022 09:20:33 +1000 Message-ID: Subject: Re: Segfault in libjava/prims.cc while compiling gcj To: Xi Ruoyao Cc: Jonathan Wakely , gcc-help X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 23:20:46 -0000 I'm not sure what you mean by not supported by GCC trunk, the code is part of the gcc trunk (not the upstream one, though). The code compiled in Sep 2016, so something must have changed between 37b204de605563e7932e26099d28ea8c86cb1935 and now. On Wed, May 18, 2022 at 9:02 PM Xi Ruoyao wrote: > On Wed, 2022-05-18 at 11:57 +0100, Jonathan Wakely wrote: > > On Wed, 18 May 2022 at 11:45, Zopolis0 wrote: > > > > > > I thought " But "-D...", "-I...", and "-B..." shall be > > > removed." was asking me to remove them. > > > > > > I used -E, I said I produced the file. > > > > 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. > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >