From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0601F385F020; Sat, 14 Mar 2020 03:27:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0601F385F020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584156436; bh=Nd7l9Tln8Jv3ZLs5XBQsTAF70x4tbJwgG4AR/efhl/E=; h=From:To:Subject:Date:From; b=GrhilPwYT97Ff1YSuSvGw9tCCpn17C67wOrfmfc14egPMRqfcWbL77FNO6UVwJOjo 2UvJzr9LaGGFGFk64iWHbCiXgzHRARTKq3i19+QXMYuleBCW8kC/AHvxWp9ncu+P04 12mKKAhESusPHjac0CYBR6bfa/UVQ9ittfW40lww= From: "dtaubert at atmosic dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/94172] New: [arm-none-eabi] ICE in expand_debug_locations, at cfgexpand.c:5403 Date: Sat, 14 Mar 2020 03:27:15 +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: 8.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dtaubert at atmosic 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2020 03:27:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94172 Bug ID: 94172 Summary: [arm-none-eabi] ICE in expand_debug_locations, at cfgexpand.c:5403 Product: gcc Version: 8.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: dtaubert at atmosic dot com Target Milestone: --- Created attachment 48032 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48032&action=3Dedit gcc -v output extern enum my_enum_type extern_enum; extern void bar(int a); enum my_enum_type { my_entry }; void foo(int a) { int local_enum =3D extern_enum; if (a) { __asm volatile ("bkpt 0"); local_enum =3D 0; } bar(local_enum); } arm/gcc-arm-none-eabi-8-2019-q3-update/bin/arm-none-eabi-gcc -o foo.o -c -mcpu=3Dcortex-m0 -mthumb -Os -g3 foo.c during RTL pass: expand foo.c: In function 'foo': foo.c:8:6: internal compiler error: in expand_debug_locations, at cfgexpand.c:5403 void foo(int a) ^~~ Also seen with releases/gcc-9.2.0 from git://gcc.gnu.org/git/gcc.git during RTL pass: expand foo.c: In function ?foo?: foo.c:8:6: internal compiler error: in expand_debug_locations, at cfgexpand.c:5460 8 | void foo(int a) | ^~~ 0x67cb6b expand_debug_locations ../../gcc/cfgexpand.c:5456 0x67cb6b execute ../../gcc/cfgexpand.c:6516 gcc_assert (mode =3D=3D GET_MODE (val) || (GET_MODE (val) =3D=3D VOIDmode && (CONST_SCALAR_INT_P (val) || GET_CODE (val) =3D=3D CONST_FIXED || GET_CODE (val) =3D=3D LABEL_REF)));=