From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 35FAF3858D1E; Mon, 20 May 2024 11:45:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35FAF3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716205549; bh=UhYykgyzmHcLOO/AtXa2m6RzRyL2hYdESDivv23gywg=; h=From:To:Subject:Date:From; b=u6pqFLlFn3HojrzkwYcZ8V5ond7gQbIFXEm3SfWhV6i0vxvAVWJBa4WRcz0B+OWUc k1mtOTUNA8xhXf6rpMGBvLWMVdKCZo5/cb5PXXO42bWSO12rTae3hRYLJXjntpsjXy AkH24WtHLTyt3At5H0Om9t+0K0hkZV9Dd5G7LKtU= From: "Bert.Wesarg at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/115162] New: ICE in OpenMP target data map directive Date: Mon, 20 May 2024 11:45:47 +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: 14.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Bert.Wesarg at googlemail dot 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 target_milestone attachments.created 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=3D115162 Bug ID: 115162 Summary: ICE in OpenMP target data map directive Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Bert.Wesarg at googlemail dot com Target Milestone: --- Created attachment 58251 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58251&action=3Dedit Reduced and prepocesed target_struct_map.4.c target_struct_map.4.c from the OpenMP test suite causes an ICE in 14.1.0 wi= th `-foffload=3Ddisabled` . Here is a further reduced input: gcc -v -g -fopenmp -foffload=3Ddisable -c target_struct_map.4.c -o target_struct_map.4.o -freport-bug -fdump-debug -save-temps Using built-in specs. COLLECT_GCC=3Dgcc Target: x86_64-pc-linux-gnu Configured with: ../configure --silent --enable-silent-rules --prefix=3D/home/wesarg/opt/gcc-14.1-wo-lto --enable-languages=3Dc,c++,fort= ran --enable-threads=3Dposix --disable-nls --enable-bootstrap --enable-plugin --enable-default-pie --disable-werror --enable-checking --disable-multilib --enable-__cxa_atexit --with-linker-hash-style=3Dgnu --enable-initfini-array --enable-gnu-indirect-function --enable-cet --silent Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.1.0 (GCC) COLLECT_GCC_OPTIONS=3D'-v' '-target_struct_map.4.ig' '-fopenmp' '-c' '-o' 'target_struct_map.4.o' '-freport-bug' '-fdump-debug' '-save-temps' '-mtune=3Dgeneric' '-march=3Dx86-64' '-pthread' /home/wesarg/opt/gcc-14.1-wo-lto/libexec/gcc/x86_64-pc-linux-gnu/14.1.0/cc= 1 -E -quiet -v -imultiarch x86_64-linux-gnu -D_REENTRANT target_struct_map.4.c -mtune=3Dgeneric -march=3Dx86-64 -fopenmp -freport-bug -fdump-debug -g -fworking-directory -fpch-preprocess -o target_struct_map.4.i ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/home/wesarg/opt/gcc-14.1-wo-lto/lib/gcc/x86_64-pc-linux-gnu/14.1.0/../../= ../../x86_64-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/wesarg/opt/gcc-14.1-wo-lto/lib/gcc/x86_64-pc-linux-gnu/14.1.0/include /usr/local/include /home/wesarg/opt/gcc-14.1-wo-lto/include /home/wesarg/opt/gcc-14.1-wo-lto/lib/gcc/x86_64-pc-linux-gnu/14.1.0/include= -fixed/x86_64-linux-gnu /home/wesarg/opt/gcc-14.1-wo-lto/lib/gcc/x86_64-pc-linux-gnu/14.1.0/include= -fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-g' '-fopenmp' '-c' '-o' 'target_struct_map.4.o' '-freport-bug' '-fdump-debug' '-save-temps' '-mtune=3Dgeneric' '-march=3Dx8= 6-64' '-pthread' /home/wesarg/opt/gcc-14.1-wo-lto/libexec/gcc/x86_64-pc-linux-gnu/14.1.0/cc1 -fpreprocessed target_struct_map.4.i -quiet -dumpbase target_struct_map.4.c -dumpbase-ext .c -mtune=3Dgeneric -march=3Dx86-64 -g -version -fopenmp -fre= port-bug -fdump-debug -o target_struct_map.4.s GNU C17 (GCC) version 14.1.0 (x86_64-pc-linux-gnu) compiled by GNU C version 14.1.0, GMP version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version none GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 Compiler executable checksum: caa98156640761a022c1187cabbd56e6 target_struct_map.4.c: In function 'main': target_struct_map.4.c:41:9: internal compiler error: Segmentation fault 41 | #pragma omp target data map(S.p[:N], S.p, S.a) | ^~~ 0x10023ff crash_signal ../../gcc/toplev.cc:319 0x7f5c91b7108f ??? =20=20=20=20=20=20=20 /build/glibc-e2p3jK/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sig= action.c:0 0xcb3353 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/tree.h:3623 0xcb3353 omp_gather_mapping_groups_1 ../../gcc/gimplify.cc:9687 0xcc6ca2 omp_gather_mapping_groups ../../gcc/gimplify.cc:9714 0xcc6ca2 gimplify_adjust_omp_clauses ../../gcc/gimplify.cc:13837 0xcdf137 gimplify_omp_workshare ../../gcc/gimplify.cc:16948 0xcc10fa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:18426 0xcc3d46 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7578 0xcc279b gimplify_statement_list ../../gcc/gimplify.cc:2249 0xcc279b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:18329 0xcc3d46 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7578 0xcc45b6 gimplify_bind_expr ../../gcc/gimplify.cc:1641 0xcc19d3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:18085 0xcc3d46 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7578 0xcc279b gimplify_statement_list ../../gcc/gimplify.cc:2249 0xcc279b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:18329 0xcd9125 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7578 0xcd9125 gimplify_body(tree_node*, bool) ../../gcc/gimplify.cc:19151 0xcd9576 gimplify_function_tree(tree_node*) ../../gcc/gimplify.cc:19352 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See for instructions. The bug is not reproducible, so it is likely a hardware or OS problem. Removing either member a or converting p to a fixed length array (p[N]) avo= ids the ICE=