The gcc.dg/initpri1.c testcase aborts on powerpc-apple-darwin9 in the following
sections...
void c2() {
if (i++ != 2)
abort (); <===
}
[....]
void c3() {
if (i++ != 1)
abort (); <===
}
[...]
void d2() {
if (--i != 2)
abort (); <===
}
[...]
void d3() {
if (j != 2)
abort ();
if (--i != 1)
abort (); <====
}
I assume this should have been reported before but can't find any PR for it.
The order of
the aborts are...
in c2
in c3
in d3 i
in d2
--
Summary: gcc.dg/initpri1.c fails on powerpc-apple-darwin
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: powerpc-apple-darwin9
GCC host triplet: powerpc-apple-darwin9
GCC target triplet: powerpc-apple-darwin9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34587