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

Sunil Pandey <skpgkp1 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |skpgkp1 at gmail dot com

--- Comment #1 from Sunil Pandey <skpgkp1 at gmail dot com> ---
This bug also appear during Linux kernel build from LFS with GCC 8. Work fine
with GCC 7.

$cat main.i.c
void __attribute__((__cold__)) a(void);
void b(void);
__attribute__((noinline)) c(void) { a(); }
d(void) {
  b();
  c();
}

$gcc --version
gcc (GCC) 8.0.0 20171127 (experimental)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$gcc   -Os  -fprofile-arcs -c -o main.i.c.o main.i.c -w
during IPA pass: profile
main.i.c:7:1: internal compiler error: in operator>, at profile-count.h:834
 }
 ^
0x66a5a5 profile_count::operator>(long) const
        ../../gcc-main.3O1J/gcc/profile-count.h:834
0x66a5a5 handle_missing_profiles()
        ../../gcc-main.3O1J/gcc/predict.c:3289
0xdc63fd tree_profiling
        ../../gcc-main.3O1J/gcc/tree-profile.c:750
0xdc63fd execute
        ../../gcc-main.3O1J/gcc/tree-profile.c:780
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to