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

--- Comment #4 from Siddhesh Poyarekar <siddhesh at gotplt dot org> ---
Reduced C test case:

#define MAX 98

void foo (unsigned long *res, unsigned long in)
{
  for (unsigned long a = 0; a < MAX; a++)
    for (unsigned long b = 0; b < MAX; b++)
      for (unsigned long c = 0; c < MAX; c++)
        for (unsigned long d = 0; d < MAX; d++)
          for (unsigned long e = 0; e < MAX; e++)
            for (unsigned long f = 0; f < MAX; f++)
              for (unsigned long g = 0; g < MAX; g++)
                *res += a * in;
}



foo.c: In function 'foo':
foo.c:13:1: internal compiler error: in from_gcov_type, at profile-count.h:676
 }
 ^
0xaaf57f profile_count::from_gcov_type(long)
        /home/siddhesh/src/gcc/gcc/profile-count.h:676
0xaaf57f estimate_bb_frequencies(bool)
        /home/siddhesh/src/gcc/gcc/predict.c:3623
0xab40af tree_estimate_probability(bool)
        /home/siddhesh/src/gcc/gcc/predict.c:2849
0xab45c3 execute
        /home/siddhesh/src/gcc/gcc/predict.c:3760
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