Test g++.dg/gomp/tls-3.C started failing on powerpc-unknown-linux-gnu with an ICE in rs6000_emit_move when the -O0 defaults were changed for -funit-at-a-time, -fsection-anchors, and -ftop-level-reorder. This smaller C test:
__thread int i; int foo () { static __thread int k; return k; } gets the same ICE for earlier compilers back to 4.2.0 (when section anchors were added) when compiled with "-funit-at-a-time -fsection-anchors -fno-toplevel-reorder". -- Summary: g++.dg/tls-3.C ICE with section-anchors, unit-at-a-time, no-toplevel-reorder Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janis at gcc dot gnu dot org GCC target triplet: powerpc-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36756