public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/101260] New: Backport 27381e78925 to GCC 11
@ 2021-06-29 15:35 stefansf at linux dot ibm.com
  2021-06-29 23:08 ` [Bug tree-optimization/101260] " jakub at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: stefansf at linux dot ibm.com @ 2021-06-29 15:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101260
           Summary: Backport 27381e78925 to GCC 11
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stefansf at linux dot ibm.com
  Target Milestone: ---
            Target: s390*-*-*

struct a {
  unsigned b : 7;
  int c;
  int d;
  short e;
} p, *q = &p;
int f, g, h, i, r, s;
static short j[8][1][6] = {};
char k[7];
short l, m;
int *n;
int **o = &n;
void t() {
  for (; f;)
    ;
}
static struct a u(int x) {
  struct a a = {4, 8, 5, 4};
  for (; i <= 6; i++) {
    struct a v = {};
    for (; l; l++)
      h = 0;
    for (; h >= 0; h--) {
      j[i];
      struct a *w = &p;
      s = 0;
      for (; s < 3; s++) {
        r ^= x;
        m = j[i][g][h] == (k[g] = g);
        *w = v;
      }
      r = 2;
      for (; r; r--)
        *o = &r;
    }
  }
  t();
  return a;
}
int main() {
  *q = u(636);
  if (p.b != 4)
    __builtin_abort ();
}

The reduced example runs fine if compiled with mainline (currently 53fd7544aff)
whereas it fails if compiled with GCC 11 (currently f6306457ee3). The example
runs fine with GCC 11, too, if commit d1d01a66012a93cc8cb7dafbe1b5ec453ec96b59
is cherry picked. Can we backport this one?

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-07-07 10:40 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 15:35 [Bug tree-optimization/101260] New: Backport 27381e78925 to GCC 11 stefansf at linux dot ibm.com
2021-06-29 23:08 ` [Bug tree-optimization/101260] " jakub at gcc dot gnu.org
2021-06-30  6:33 ` rguenth at gcc dot gnu.org
2021-06-30  7:41 ` stefansf at linux dot ibm.com
2021-06-30  7:58 ` [Bug tree-optimization/101260] [10/11 Regression] " rguenth at gcc dot gnu.org
2021-06-30 14:08 ` stefansf at linux dot ibm.com
2021-06-30 17:23 ` jakub at gcc dot gnu.org
2021-06-30 19:04 ` stefansf at linux dot ibm.com
2021-07-01 16:58 ` stefansf at linux dot ibm.com
2021-07-06  6:53 ` [Bug rtl-optimization/101260] " rguenth at gcc dot gnu.org
2021-07-19 12:02 ` [Bug rtl-optimization/101260] [10/11/12 " rguenth at gcc dot gnu.org
2021-08-06 13:59 ` stefansf at linux dot ibm.com
2022-01-14 19:24 ` [Bug rtl-optimization/101260] [10/11/12 Regression] regcprop: Determine subreg offset depending on endianness pinskia at gcc dot gnu.org
2022-01-14 19:26 ` pinskia at gcc dot gnu.org
2022-01-14 19:27 ` pinskia at gcc dot gnu.org
2022-01-14 19:32 ` pinskia at gcc dot gnu.org
2022-01-14 19:33 ` pinskia at gcc dot gnu.org
2022-01-14 19:37 ` pinskia at gcc dot gnu.org
2022-02-01 12:35 ` cvs-commit at gcc dot gnu.org
2022-06-09  8:53 ` [Bug rtl-optimization/101260] [10/11 " stefansf at linux dot ibm.com
2022-06-28 10:45 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug rtl-optimization/101260] [11 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).