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 tree-optimization/82472] New: [8 Regression] ICE in generate_code_for_partition, at tree-loop-distribution.c:1145


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

            Bug ID: 82472
           Summary: [8 Regression] ICE in generate_code_for_partition, at
                    tree-loop-distribution.c:1145
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-8.0.0-alpha20171001 snapshot (r253330) ICEs when compiling the following
snippet w/ -O3 or -Ofast:

long int xj;

int
cx (long int *ox, short int mk, char tf)
{
  int si, f9;
  char *p4 = &tf;
  short int *rm = (tf != 0) ? (short int *)&f9 : &mk;

  for (f9 = 0; f9 < 2; ++f9)
    {
      *rm = 0;
      *p4 = *ox;
      si = mk;
      xj = 0;
      while (p4 < (char *)rm)
        ++p4;
    }

  return si;
}

% gcc-8.0.0-alpha20171001 -O3 -c mjliuylm.c
during GIMPLE pass: ldist
mjliuylm.c: In function 'cx':
mjliuylm.c:4:1: internal compiler error: in generate_code_for_partition, at
tree-loop-distribution.c:1145
 cx (long int *ox, short int mk, char tf)
 ^~

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