From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 510733858C53; Thu, 18 Jan 2024 13:35:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 510733858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705584903; bh=zzWkwX3tHRC+hoIertvTyCoyFF3WfyxgXrTg/77X6nU=; h=From:To:Subject:Date:From; b=XYC09nWZ/j/KWasE3q/hsEhjHBcOw88P+Ga/CcagkyAsZjl0CsUKakj814RYqTNSn e0b7/Ov1Fo+DnH5S5adzUL6FYsfP3Gu+TWsCPbLJ+mw8cOV+/EyrIzOkPeNql3Befa 14L9k5sG3kkjiyuxc0JlGWJ6AFLYSFfRzWdJbyEo= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 Date: Thu, 18 Jan 2024 13:35:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug 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=3D113480 Bug ID: 113480 Summary: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- This is a relatively new ICE that I see on the avr target. Compliled with "version 14.0.1 20240118 (experimental) (avr)" $ avr-gcc pr83801.c -g -O3 -std=3Dgnu99 -mmcu=3Datmega128 /* { dg-options { "-std=3Dgnu99" } } */ /* { dg-do run { target { ! avr_tiny } } } */ __attribute((noinline,noclone)) char to_ascii (unsigned i) { static const char __flash code_tab[] =3D "0123456789"; return code_tab[i]; } int main() { if (to_ascii (2) !=3D '2') __builtin_abort(); return 0; } I am not sure if it's related to address-spaces, but there are fails that d= on't have ASes like gcc.target/avr/torture/pr109907-2.c (but that has __int24 though). Target: avr Configured with: ../../source/gcc-master/configure --target=3Davr --disable= -nls --with-dwarf2 --with-gnu-as --with-gnu-ld --disable-shared --with-fixed-point=3Dno --with-long-double=3D64 --enable-languages=3Dc,c++ Thread model: single Supported LTO compression algorithms: zlib gcc version 14.0.1 20240118 (experimental) (GCC)=