From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11281 invoked by alias); 2 Jul 2015 11:26:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10916 invoked by uid 48); 2 Jul 2015 11:26:32 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/66714] gomp4: libgomp.oacc-c-c++-common/atomic_capture-1.c -g ICE Date: Thu, 02 Jul 2015 11:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code, openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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: attachments.created 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-SW-Source: 2015-07/txt/msg00143.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66714 --- Comment #4 from vries at gcc dot gnu.org --- Created attachment 35890 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D35890&action=3Dedit patch to detect problem earlier Using this patch, we can trigger the problem earlier: ... In file included from src/libgomp/testsuite/libgomp.oacc-c/../libgomp.oacc-c-c++-common/pr66714.c= :4:0: src/libgomp/testsuite/libgomp.oacc-c/../libgomp.oacc-c-c++-common/atomic_ca= pture-1.c: In function =E2=80=98main._omp_fn.46=E2=80=99: src/libgomp/testsuite/libgomp.oacc-c/../libgomp.oacc-c-c++-common/atomic_ca= pture-1.c:853:9: internal compiler error: in decl_value_expr_lookup, at tree.c:6773 0x11c902b decl_value_expr_lookup(tree_node*) src/gcc/tree.c:6773 0xa43cae instantiate_expr src/gcc/function.c:1851 0x11d914e walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set*)) src/gcc/tree.c:11132 0xa43e5f instantiate_decls_1 src/gcc/function.c:1874 0xa443d2 instantiate_decls src/gcc/function.c:1922 0xa44874 instantiate_virtual_regs src/gcc/function.c:1979 0xa448da execute src/gcc/function.c:2015 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ... The problem now also triggers without -g. >>From gcc-bugs-return-491254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 02 11:29:07 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14080 invoked by alias); 2 Jul 2015 11:29:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14048 invoked by uid 48); 2 Jul 2015 11:29:03 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/66714] gomp4: libgomp.oacc-c-c++-common/atomic_capture-1.c -g ICE Date: Thu, 02 Jul 2015 11:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code, openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg00144.txt.bz2 Content-length: 399 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66714 --- Comment #5 from vries at gcc dot gnu.org --- Created attachment 35891 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35891&action=edit Patch to make error more verbose Using this patch, we get a more verbose error: ... decl_value_expr_lookup could not find mapping for from 0x7fb78598a870 in function main._omp_fn.46 from: fdata.5 ...