public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/94172] New: [arm-none-eabi] ICE in expand_debug_locations, at cfgexpand.c:5403
@ 2020-03-14  3:27 dtaubert at atmosic dot com
  2020-03-14  3:46 ` [Bug middle-end/94172] " pinskia at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: dtaubert at atmosic dot com @ 2020-03-14  3:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94172

            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=48032&action=edit
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 = extern_enum;

    if (a) {
        __asm volatile ("bkpt 0");
        local_enum = 0;
    }
    bar(local_enum);
}

arm/gcc-arm-none-eabi-8-2019-q3-update/bin/arm-none-eabi-gcc -o foo.o -c
-mcpu=cortex-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 == GET_MODE (val)
                        || (GET_MODE (val) == VOIDmode
                            && (CONST_SCALAR_INT_P (val)
                                || GET_CODE (val) == CONST_FIXED
                                || GET_CODE (val) == LABEL_REF)));

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-09-17 17:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14  3:27 [Bug middle-end/94172] New: [arm-none-eabi] ICE in expand_debug_locations, at cfgexpand.c:5403 dtaubert at atmosic dot com
2020-03-14  3:46 ` [Bug middle-end/94172] " pinskia at gcc dot gnu.org
2020-03-16 15:55 ` wilco at gcc dot gnu.org
2020-03-16 16:25 ` jakub at gcc dot gnu.org
2020-03-16 16:30 ` rearnsha at gcc dot gnu.org
2020-03-16 16:34 ` jakub at gcc dot gnu.org
2020-03-16 16:35 ` wilco at gcc dot gnu.org
2020-03-16 16:39 ` tnfchris at gcc dot gnu.org
2020-03-16 16:46 ` jakub at gcc dot gnu.org
2020-03-16 18:21 ` [Bug c/94172] " jakub at gcc dot gnu.org
2020-03-17 21:33 ` cvs-commit at gcc dot gnu.org
2020-03-18  7:55 ` jakub at gcc dot gnu.org
2020-04-07 19:03 ` cvs-commit at gcc dot gnu.org
2020-09-17 14:25 ` cvs-commit at gcc dot gnu.org
2020-09-17 17:19 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).