From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 312FF386F41A; Wed, 7 Oct 2020 10:23:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 312FF386F41A From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/97295] ICE on firefox built with lto+pgo: dist/include/mozilla/Casting.h:64:1: internal compiler error: in to_frequency, at profile-count.c:273 Date: Wed, 07 Oct 2020 10:23:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: 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: Wed, 07 Oct 2020 10:23:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97295 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED --- Comment #5 from Martin Li=C5=A1ka --- So it's pretty clear what happens, it's about mixing of different flags: TestFloatingPoint.o: '-fno-openmp' '-fno-openacc' '-mtune=3Dgeneric' '-march=3Dx86-64' '-O3' '-O= 0' '-Wno-error=3Dmaybe-uninitialized' '-Wno-error=3Ddeprecated-declarations' '-Wno-error=3Darray-bounds' '-Wno-error=3Dcoverage-mismatch' '-Wno-error=3Dfree-nonheap-object' '-Wno-error=3Dclass-memaccess' '-Wno-error=3Ddeprecated-copy' '-Wno-error=3Dshadow' '-flto' '-flifetime-ds= e=3D1' '-fstack-protector-strong' '-fPIC' '-fno-strict-aliasing' '-ffunction-secti= ons' '-fdata-sections' '-fno-exceptions' '-fno-math-errno' '-fomit-frame-pointer' '-funwind-tables' while Unified_cpp_mfbt0.o: '-fno-openmp' '-fno-openacc' '-mtune=3Dgeneric' '-march=3Dx86-64' '-O3' '-Wno-error=3Dmaybe-uninitialized' '-Wno-error=3Ddeprecated-declarations' '-Wno-error=3Darray-bounds' '-Wno-error=3Dcoverage-mismatch' '-Wno-error=3Dfree-nonheap-object' '-Wno-error=3Dclass-memaccess' '-Wno-error=3Ddeprecated-copy' '-flto' '-flifetime-dse=3D1' '-fstack-protector-strong' '-fPIC' '-fno-strict-aliasing' '-ffunction-secti= ons' '-fdata-sections' '-fno-exceptions' '-fno-math-errno' '-fomit-frame-pointer' '-funwind-tables' '-fprofile-use' '-fprofile-correction' the profiles are merged in ipa_merge_profiles where match=3Dfalse due to a different CFG and we forget to drop back dst->count. I'll prepare a patch f= or it.=