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

            Bug ID: 89737
           Summary: internal compiler error: Floating point exception
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gsocshubham at gmail dot com
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: x86_64-linux-gnu
             Build: x86_64-linux-gnu

Created attachment 45980
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45980&action=edit
Preprocessed code of file named "crash1.c"

------------------------COMPILER CONFIGURATION---------------------------------

$ ~/gcc-9-trunk/build/gcc/xgcc -v

Using built-in specs.
COLLECT_GCC=/home/extended_csmith/gcc-9-trunk/build/gcc/xgcc
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --enable-languages=c,c++ --enable-lto
--disable-bootstrap : (reconfigured) ../gcc/configure --enable-languages=c,c++
--enable-lto --disable-bootstrap
Thread model: posix
gcc version 9.0.1 20190314 (experimental) (GCC)

----------------------COMMAND USED FOR COMPILATION----------------------------

~/gcc-9-trunk/build/gcc/xgcc -B ~/gcc-9-trunk/build/gcc/ -w -O2 crash1.i
-I../../shubham/csmith-scripts/csmith/runtime/
during GIMPLE pass: profile_estimate
crash1.c: In function ‘func_2.isra.0’:
crash1.c:3857:1: internal compiler error: Floating point exception
 3857 | }
      | ^
0xca8eaf crash_signal
        ../../gcc/gcc/toplev.c:326
0x7fbfedb5205f ???
       
/build/glibc-yWQXbR/glibc-2.24/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x8224bd safe_scale_64bit(unsigned long, unsigned long, unsigned long, unsigned
long*)
        ../../gcc/gcc/profile-count.h:81
0x8224bd profile_probability::apply_scale(long, long) const
        ../../gcc/gcc/profile-count.h:497
0xbd99c5 set_even_probabilities
        ../../gcc/gcc/predict.c:893
0xbde889 combine_predictions_for_bb
        ../../gcc/gcc/predict.c:1239
0xbdec83 tree_estimate_probability(bool)
        ../../gcc/gcc/predict.c:3093
0xbdf464 execute
        ../../gcc/gcc/predict.c:4030
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.


-----------------REDUCED CODE USING CREDUCE---------------------------------

a, b;
c() {
  &&d;
  void *e = &&f, *g = &&h;
f:
  __attribute__((hot)) h : __attribute__((cold)) for (; a;) goto *g;
d:
  for (; b;)
    goto *e;
}

Reply via email to