This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/66468] [6 Regression] ICE in in check_die, at dwarf2out.c:5719


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

Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |miyuki at gcc dot gnu.org

--- Comment #14 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
Another reproducer:

$ cat genmodes.cc 
inline char *strchr(const char *, int) __asm("strchr");
inline char *strchr(const char *, int)
{
  return __builtin_strchr(0, 0);
}

int make_complex_modes()
{
  if (strchr(0, 0))
    return 1;
}

$ cc1plus -O -flto genmodes.cc -quiet -o - | as -o genmodes.o
$ lto1 genmodes.o -g -o /dev/null -quiet
genmodes.cc: In function 'make_complex_modes':
genmodes.cc:11:1: internal compiler error: in gen_inlined_subroutine_die, at
dwarf2out.c:19910


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]