[Bug rtl-optimization/94368] [9/10 Regression] ICE in final_scan_insn_1, at final.c:3074(error: could not split insn) on aarch64-linux-gnu since r9-3744

2020-03-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94368

--- Comment #4 from Jakub Jelinek  ---
Testcase that still FAILs on the trunk:

/* PR target/94368 */
/* { dg-do compile { target fpic } } */
/* { dg-options "-fpic -O1 -fcommon" } */

int b, c, d, e, f, h;
short g;
int foo (int) __attribute__ ((__const__));

void
bar (void)
{
  while (1)
{
  while (1)
{
  __atomic_load_n (, 0);
  if (foo (2))
__sync_val_compare_and_swap (, 0, f);
  b = 1;
  if (h == e)
break;
}
  __sync_val_compare_and_swap (, -1, f);
}
}

[Bug rtl-optimization/94368] [9/10 Regression] ICE in final_scan_insn_1, at final.c:3074(error: could not split insn) on aarch64-linux-gnu since r9-3744

2020-03-30 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94368

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug rtl-optimization/94368] [9/10 Regression] ICE in final_scan_insn_1, at final.c:3074(error: could not split insn) on aarch64-linux-gnu since r9-3744

2020-03-29 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94368

Jakub Jelinek  changed:

   What|Removed |Added

 Status|WAITING |NEW
Summary|[9/10 Regression] ICE in|[9/10 Regression] ICE in
   |final_scan_insn_1, at   |final_scan_insn_1, at
   |final.c:3074(error: could   |final.c:3074(error: could
   |not split insn) on  |not split insn) on
   |aarch64-linux-gnu   |aarch64-linux-gnu since
   ||r9-3744
   Target Milestone|--- |9.4

--- Comment #3 from Jakub Jelinek  ---
Actually, I can, -O2 -fpie is needed.
Started with r9-3744-gd400fda3a8c3330f77eb9d51874f5482d3819a9f