From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 68B463858D39; Mon, 15 Nov 2021 11:11:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68B463858D39 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103248] New: ICE in operation_could_trap_helper_p, at tree-eh.c:2479 Date: Mon, 15 Nov 2021 11:11:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget 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: Mon, 15 Nov 2021 11:11:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103248 Bug ID: 103248 Summary: ICE in operation_could_trap_helper_p, at tree-eh.c:2479 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux-gnu Target: arm-linux-gnueabi The following fails: $ arm-linux-gnueabi-g++ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/abi/vbase8-22.C -ftrivial-auto-var-init=3Dpattern warning: NEW ICE #1: in operation_could_trap_helper_p, at tree-eh.c:2479 timeout 10 arm-linux-gnueabi-gcc -fmax-errors=3D1 -I/home/marxin/Programming/llvm-project/libcxx/test/support/ -Wno-overflow = -O1 /home/marxin/Programming/llvm-project/clang/test/Frontend/fixed_point_compo= und.c -fipa-cp-clone --param=3Dbuiltin-expect-probability=3D100 --param=3Dmin-size-for-stack-sharing=3D2147483647 -floop-interchange -Wno-v= arargs -Wno-builtin-declaration-mismatch -fno-printf-return-value --param=3Dmax-stores-to-sink=3D1585089593 -Wno-c99-c11-compat --param=3Dloop-max-datarefs-for-datadeps=3D1582034702 -ftree-cselim -Wignored-qualifiers -fno-sched-pressure -fno-tree-reassoc -fno-split-ivs-in-unroller -floop-nest-optimize --param=3Duninlined-function-time=3D1000000 -freciprocal-math --param=3Dscev-max-expr-size=3D0 -mthumb-interwork --param=3Dlra-max-considered-reload-pseudos=3D2147483647 --param=3Dmax-rtl-if-conversion-predictable-cost=3D62 -Wno-stringop-overread -fcrossjumping -Wsystem-headers --param=3Dhot-bb-frequency-fraction=3D95029= 2743 --param=3Dbuiltin-expect-probability=3D100 -Wstrict-aliasing=3D1 -Wvector-operation-performance -Wmemset-elt-size -fno-ira-share-spill-slots -mword-relocations -mtp=3Dcp15 -finline-small-functions --param=3Dmin-loop-cond-split-prob=3D0 -Wno-varargs --param=3Dlim-expensive= =3D633593234 --param=3Div-max-considered-uses=3D0 -fno-move-loop-invariants -fira-loop-p= ressure --param=3Dmax-isl-operations=3D1856947825 --param=3Dhwasan-random-frame-tag= =3D1 -funconstrained-commons -Wno-analyzer-write-to-const --param=3Dinline-heuristics-hint-percent=3D67117 -flifetime-dse=3D0 --param=3Dloop-block-tile-size=3D0 --param=3Ddse-max-object-size=3D729093725 -fno-tree-sink -Wmissing-field-initializers -Wno-invalid-memory-model -Wswitch-enum -fmodulo-sched-allow-regmoves -Wuninitialized -Wno-overflow -falign-labels -fno-stdarg-opt -ftree-cselim -fpeephole2 -Wimplicit --param=3Dstore-merging-allow-unaligned=3D0 -fno-cprop-registers -Wno-int-conversion -Wcast-align --param=3Dmax-unswitch-level=3D2147483647 -fpeel-loops -fno-lifetime-dse -fsel-sched-pipelining-outer-loops --param=3Dhwasan-instrument-writes=3D1 --param=3Dmax-sched-insn-conflict-de= lay=3D10 -Wtype-limits --param=3Dira-max-conflict-table-size=3D0 -Wno-enum-compare -Wno-endif-labels -fno-tree-loop-im -Wno-invalid-memory-model --param=3Dparloops-min-per-thread=3D2 -Wno-overflow -Wsequence-point --param=3Davg-loop-niter=3D65536 -Wno-stringop-overread -Wno-declaration-after-statement --param=3Dmodref-max-adjustments=3D23 -Wformat-zero-length -Wno-analyzer-file-leak -Wfloat-conversion -Wtrampolin= es --param=3Dalign-loop-iterations=3D0 --param=3Dunroll-jam-max-unroll=3D0 -Wsign-conversion --param=3Dswitch-conversion-max-branch-ratio=3D33837 -frounding-math --param=3Dmax-slsr-cand-scan=3D825635 -Waddress -fno-ira-share-save-slots --param=3Dmodref-max-bases=3D2147483647 -funswitc= h-loops -Wunused-parameter --param=3Dmin-inline-recursive-probability=3D0 --param=3Dipa-cp-loop-hint-bonus=3D944444867 -Wno-return-local-addr --param=3Dmax-goto-duplication-insns=3D2144133459 -Wno-free-nonheap-object -Wno-switch-bool -Wno-address-of-packed-member -Wnonnull-compare -Wno-analyzer-null-argument --param=3Dtracer-max-code-growth=3D2147483647 -Wbool-compare --param=3Dmax-peel-branches=3D1838480161 -funconstrained-com= mons -Wmissing-field-initializers --param=3Dvect-inner-loop-cost-factor=3D1 --param=3Dmax-dse-active-local-stores=3D0 -Wdate-time --param=3Dlarge-stack-frame-growth=3D1456052770 --param=3Div-consider-all-candidates-bound=3D0 -frerun-cse-after-loop --param=3Danalyzer-bb-explosion-factor=3D2147483647 --param=3Dgcse-after-reload-critical-fraction=3D0 --param=3Duninlined-thunk-time=3D24688 -Wenum-conversion -fsched-stalled-in= sns -Wjump-misses-init --param=3Dlarge-function-growth=3D0 -Wno-analyzer-exposure-through-output-file --param=3Dmax-partial-antic-leng= th=3D0 -Wwrite-strings --param=3Div-max-considered-uses=3D831437445 -Wformat-y2k --param=3Dmax-grow-copy-bb-insns=3D0 --param=3Dmax-last-value-rtl=3D1973541= 945 --param=3Dmin-nondebug-insn-uid=3D898 --param=3Dsra-max-scalarization-size-= Ospeed=3D0 -Wformat-security --param=3Dmax-last-value-rtl=3D1538677469 --param=3Dunroll-jam-min-percent=3D100 -flifetime-dse=3D1 --param=3Dinline-heuristics-hint-percent=3D100 -Wno-analyzer-null-dereferen= ce -Wno-if-not-aligned --param=3Dhwasan-instrument-reads=3D1 --param=3Dvect-partial-vector-usage=3D0 -frerun-cse-after-loop -Wcomment -fno-tree-coalesce-vars --param=3Dmax-tree-if-conversion-phi-args=3D2 -fipa= -vrp --param=3Dsra-max-scalarization-size-Osize=3D2147483647 --param=3Danalyzer-bb-explosion-factor=3D93678980 -Wno-cpp --param=3Dipa-max-switch-predicate-bounds=3D0 --param=3Ddse-max-object-size=3D2147483647 --param=3Dtm-max-aggregate-size= =3D1061172261 -flive-range-shrinkage -falign-functions --param=3Dgcse-unrestricted-cost= =3D0 -Wnonnull -fnon-call-exceptions --param=3Djump-table-max-growth-ratio-for-size=3D1000 -finline-functions --param=3Dipa-cp-recursion-penalty=3D100 --param=3Div-always-prune-cand-set-bound=3D2147483647 --param=3Dtracer-dynamic-coverage-feedback=3D3 --param=3Dcxx-max-namespaces-for-diagnostic-help=3D0 --param=3Dhwasan-random-frame-tag=3D1 --param=3Dmodref-max-bases=3D21474836= 47 -fno-ipa-modref -Wdangling-else -fno-dce -Wmultistatement-macros --param=3Djump-table-max-growth-ratio-for-size=3D466 -fstack-clash-protecti= on -Wzero-length-bounds -Warray-bounds --param=3Dtracer-min-branch-probability-feedback=3D51 -fsimd-cost-model=3Dv= ery-cheap --param=3Dpartial-inlining-entry-probability=3D0 -fno-tree-ch -Wno-sync-nand -Wno-sizeof-array-argument --param=3Dinline-heuristics-hint-percent=3D552091 -fno-stdarg-opt -Wsizeof-pointer-div -Wshadow=3Dcompatible-local --param=3Dmax-inline-insns-recursive-auto=3D0 -fvariable-expansion-in-unrol= ler --param=3Dmin-spec-prob=3D0 --param=3Dira-max-conflict-table-size=3D1261775= 574 -Wduplicated-cond --param=3Davoid-fma-max-bits=3D0 -fsel-sched-pipelining-outer-loops --param=3Dl1-cache-size=3D0 -fisolate-erroneous-paths-attribute -fno-sched-last-insn-heuristic -Wno-tsan -fno-bit-tests -Wno-scalar-storage-order --param=3Dmax-stores-to-sink=3D214= 7483647 --param=3Danalyzer-max-recursion-depth=3D0 -o/dev/null -S 634 | void div_ai() { | ^~~~~~ 0xdeadbeef operation_could_trap_helper_p(tree_code, bool, bool, bool, bool, tree_node*, bool*) /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/tre= e-eh.c:2479 0xdeadbeef stmt_could_throw_1_p /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/tre= e-eh.c:2891 0xdeadbeef stmt_could_throw_p(function*, gimple*) /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/tre= e-eh.c:2941 0xdeadbeef stmt_could_throw_p(function*, gimple*) /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/tre= e-eh.c:2913 0xdeadbeef lower_eh_constructs_2 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/tre= e-eh.c:2058 0xdeadbeef lower_eh_constructs_1 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/tre= e-eh.c:2153 0xdeadbeef execute /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-arm/build/gcc/tre= e-eh.c:2198=