From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3BF13858C35; Sun, 3 Dec 2023 12:22:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3BF13858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701606157; bh=tloQMGK3WP3rlFpH5/bOTqB62z5CnK4p7dIhcObWFbg=; h=From:To:Subject:Date:From; b=l2FO35LNeQVt+pZVK9BGAhnIU5d/juJBm44LP+IGu566slPThI0kCGZcO8cMiQQAN NHIXo2UvT7vR6OE5qjFyxn6fRePBDNvOqrsRhmSX8YCio4FTYu0ArF4SA7cjJ5WzWJ I1HJjqfAFd3un2nstLiU0fc+bLhSKNkFDKnLth8k= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112830] New: internal compiler error: in convert_memory_address_addr_space_1, at explow.cc:302 Date: Sun, 03 Dec 2023 12:22:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl 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 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=3D112830 Bug ID: 112830 Summary: internal compiler error: in convert_memory_address_addr_space_1, at explow.cc:302 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Compile the following C test case with avr-gcc -S: typedef __SIZE_TYPE__ size_t; void copy_n (void *vdst, const __memx void *vsrc, size_t n) { typedef struct { char a[n]; } T; T *dst =3D (T*) vdst; const __memx T *src =3D (const __memx T*) vsrc; *dst =3D *src; } during RTL pass: expand ice.c: In function 'copy_n': ce.c:20:10: internal compiler error: in convert_memory_address_addr_space_1= , at explow.cc:302 20 | *dst =3D *src; | ~~~~~^~~~~~ It occurs with at least v5.4 to current master (future v14). Configured with: ../../source/gcc-master/configure --target=3Davr --disable= -nls --with-dwarf2 --with-gnu-as --with-gnu-ld --disable-shared --enable-checking=3Drelease --enable-languages=3Dc,c++=