From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DDD753858D3C; Sun, 14 Nov 2021 08:55:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDD753858D3C From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/103230] New: ipa-modref-tree.h:550:33: runtime error: load of value 255, which is not a valid value for type 'bool' Date: Sun, 14 Nov 2021 08:55:48 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org 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 blocked 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: Sun, 14 Nov 2021 08:55:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103230 Bug ID: 103230 Summary: ipa-modref-tree.h:550:33: runtime error: load of value 255, which is not a valid value for type 'bool' Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org Blocks: 63426 Target Milestone: --- Happens with UBSAN compiler for: $ gcc gcc/testsuite/gcc.c-torture/execute/pr71494.c -O1 -flto ... /home/marxin/Programming/gcc/gcc/ipa-modref-tree.h:550:33: runtime error: l= oad of value 255, which is not a valid value for type 'bool' #0 0x18acc38 in modref_tree::merge(modref_tree*, vec*, modref_parm_map*, bool) /home/marxin/Programming/gcc/gcc/ipa-modref-tree.h:550 #1 0x188452c in modref_propagate_in_scc /home/marxin/Programming/gcc/gcc/ipa-modref.c:4385 #2 0x188a2b7 in execute /home/marxin/Programming/gcc/gcc/ipa-modref.c:4= 932 #3 0x1f513bc in execute_one_pass(opt_pass*) /home/marxin/Programming/gcc/gcc/passes.c:2567 #4 0x1f54a44 in execute_ipa_pass_list(opt_pass*) /home/marxin/Programming/gcc/gcc/passes.c:2996 #5 0xb3bd3c in do_whole_program_analysis /home/marxin/Programming/gcc/gcc/lto/lto.c:469 #6 0xb3c538 in lto_main() /home/marxin/Programming/gcc/gcc/lto/lto.c:637 #7 0x2417b3b in compile_file /home/marxin/Programming/gcc/gcc/toplev.c:= 452 #8 0x2422188 in do_compile /home/marxin/Programming/gcc/gcc/toplev.c:21= 56 #9 0x2422c03 in toplev::main(int, char**) /home/marxin/Programming/gcc/gcc/toplev.c:2308 #10 0x6edfd90 in main /home/marxin/Programming/gcc/gcc/main.c:39 #11 0x7ffff6f1453f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #12 0x7ffff6f145eb in __libc_start_main_impl ../csu/libc-start.c:409 #13 0xaa3b74 in _start (/dev/shm/objdir2/gcc/lto1+0xaa3b74) Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=3Dundefined=