Menu

#3696 gcc-torture-execute-pr51466 fails for mos6502-stack-auto

closed-fixed
None
MOS6502
5
2025-02-13
2024-01-13
No

gcc-torture-execute-pr51466 fails for mos6502-stack auto.
The failure seems to be related to a more general issue of genPointerSet when the target is on the stack.

int
bar (int i)
{
  volatile int v[4];
  int *p;
  v[i] = 6;
  p = (int *) &v[i];
  *p = 8;
  return v[i];
}

the *p=8 actually stores the value in reverse endian 0x800

Discussion

  • Gabriele Gorla

    Gabriele Gorla - 2025-02-13

    fixed with [r15278]

     

    Related

    Commit: [r15278]

  • Gabriele Gorla

    Gabriele Gorla - 2025-02-13
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB