From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D6F063898533; Tue, 26 May 2020 14:49:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D6F063898533 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590504576; bh=si3ulvsd7OuCqhuB7fktfaDKt4ZtUc3dk1v6np66EYQ=; h=From:To:Subject:Date:From; b=PN6hPp/BBs9qgDSejNBBV38T03AWGFjbBE0GgBmVEzZ0GpSxvnNAVLSL0n422ECZY QrkUBTLjwfgvwFAO/hTMx/UhYxmu59GH6dL7pOol2uQbvIVCNGw8uXgbdEBLlwl501 8/KzcCHuTf+SbQz4+dt/QVqM0lwFFkqeANXkMO/A= From: "erick.ochoa@theobroma-systems.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/95336] New: Bad code gen omnetpp_r aarch64 Date: Tue, 26 May 2020 14:49:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: erick.ochoa@theobroma-systems.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 14:49:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95336 Bug ID: 95336 Summary: Bad code gen omnetpp_r aarch64 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: erick.ochoa@theobroma-systems.com CC: marxin at gcc dot gnu.org Target Milestone: --- Hello, I have been using a configuration file to compile and run CPU2017. This configuration file worked well with gcc9, but it doesn't seem to work well = with gcc10. I am aware of the instructions outlined in "Porting to GCC 10" [0] a= nd I believe I have followed them. However, at least for omnetpp_r there still seemed to be an issue. Compilation succeeded, gave several warnings (includ= ing the following): simulator/matchexpression.tab.cc: In function 'matchexpressionyyparse.constprop.isra': simulator/matchexpression.tab.cc:1444:37: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=3D] 1444 | yymsg =3D (char *) YYSTACK_ALLOC (yyalloc); |=20=20=20=20=20=20=20=20=20=20 and immediately segfaulted. I used the following compiler flags: -flto -fcommon -O3 I noticed that if I reduce the optimization level to -O2, there is no segfa= ult. I did a bisection from commit f47f687a97260b1a1305cbf2d7ee3d74b2916a74 Author: Richard Biener Date: Thu Apr 25 17:58:56 2019 +0000 to: commit 4945b4c2c8628bdd61b348ea5bd1f9b72537a36e (HEAD) Author: Martin Liska Date: Tue May 26 09:01:41 2020 +0200 and I found that the following commit may have introduced the error: commit ff6686d2e5f797d6c6a36ad14a7084bc1dc350e4 Author: Martin Jambor Date: Fri Sep 20 00:25:04 2019 +0200 I am not sure if this is a known issue or if I'm doing something wrong.=20 This is the latest GCC version that I know reproduces the error: [eochoa@osprey1 ~]$ $HOME/code/gcc-inst/bin/gcc -v Using built-in specs. COLLECT_GCC=3D/home/eochoa/code/gcc-inst/bin/gcc COLLECT_LTO_WRAPPER=3D/home/eochoa/code/gcc-inst/libexec/gcc/aarch64-unknow= n-linux-gnu/11.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /home/eochoa/code/gcc/configure --disable-bootstrap --disable-libsanitizer --enable-__cxa_atexit --enable-shared --disable-libsanitizer --enable-languages=3Dc,c++,fortran --enable-lto --enable-gold --enable-linker-build-id --with-cpu-emag --prefix=3D/home/eochoa/code/gcc-inst/ Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20200526 (experimental) (GCC) [0] https://gcc.gnu.org/gcc-10/porting_to.html=