From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E61DD3858421; Mon, 24 Oct 2022 17:53:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E61DD3858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666634009; bh=9TONwOxyQJsc2s5A/2zR3ms+BqacZ7o6Q5w90TGFDbY=; h=From:To:Subject:Date:From; b=ggVJCk1iGqp/BmmmcTHyZilIsUSUb3i7AgGGJPvWeH0wD8edwbB4vuIlELu2CpH9X t6g8fGDEOnYkjbNBMc6P3Q/dN3tImARnOQTV1wNtc+zgK/67cpNo6SefKeFPVrZ+2A 41QLE+m/bnL58Ud7qVc/4bqpyq7qVtM5rA96KRTw= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107381] New: ICE in scan_omp_target, at omp-low.cc:3126 Date: Mon, 24 Oct 2022 17:53:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107381 Bug ID: 107381 Summary: ICE in scan_omp_target, at omp-low.cc:3126 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started with r10, using file c-c++-common/gomp/target-is-device-ptr-2.c : $ cat z1.c void foo () { int *x, *y; #pragma omp target data map(x, y) use_device_ptr(x, y) #pragma omp target is_device_ptr(x, y) { *x =3D 42; } } $ gcc-13-20221023 -c z1.c -m32 -fopenmp -fsanitize=3Daddress during GIMPLE pass: omplower z1.c: In function 'foo': z1.c:5:11: internal compiler error: in scan_omp_target, at omp-low.cc:3126 5 | #pragma omp target data map(x, y) use_device_ptr(x, y) | ^~~ 0xd5e749 scan_omp_target ../../gcc/omp-low.cc:3126 0xd5f57a scan_omp_1_stmt ../../gcc/omp-low.cc:4327 0xb80ef6 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:608 0xb81110 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xb81051 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:671 0xb81110 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xb80fb1 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:635 0xb81110 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xd4ab8d scan_omp ../../gcc/omp-low.cc:4377 0xd7055a execute_lower_omp ../../gcc/omp-low.cc:14669 0xd7055a execute ../../gcc/omp-low.cc:14733=