This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Update information for FreeBSD versions and architectures #1
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Update information for FreeBSD versions and architectures #1
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Thu, 7 Dec 2000 23:57:45 -0600 (CST)
- CC: obrien at FreeBSD dot org
- Reply-to: rittle at rsch dot comm dot mot dot com
According to Nick Hilliard on a FreeBSD mailing list and as confirmed
by my own study of the CVS log of /usr/src/sys/i386/include/npx.h and
my own recent upgrade to FreeBSD 4.2-STABLE: by default, IEEE floating
point math support provided by the kernel is suppose to work like
other gcc platforms and has in every shipped version of FreeBSD/i386
4.X. We have no expectation to regress on this point in later
versions. In particular, these tests all pass now on FreeBSD/i386
4.2-STABLE:
XPASS: gcc.c-torture/execute/ieee/mzero2.c execution, -O0
XPASS: gcc.c-torture/execute/ieee/mzero2.c execution, -O1
XPASS: gcc.c-torture/execute/ieee/mzero2.c execution, -O2
XPASS: gcc.c-torture/execute/ieee/mzero2.c execution, -O3 -fomit-frame-pointer
XPASS: gcc.c-torture/execute/ieee/mzero2.c execution, -O3 -g
XPASS: gcc.c-torture/execute/ieee/mzero2.c execution, -Os
XPASS: gcc.c-torture/execute/ieee/rbug.c execution, -O3 -fomit-frame-pointer
XPASS: gcc.c-torture/execute/ieee/rbug.c execution, -O3 -g
A patch is provided to remark exactly which versions of FreeBSD are
known to fail those tests due to a different configuration. With the
patch, these test (which reported XFAIL) now report as failing:
FAIL: gcc.c-torture/execute/ieee/rbug.c execution, -O0
FAIL: gcc.c-torture/execute/ieee/rbug.c execution, -O1
FAIL: gcc.c-torture/execute/ieee/rbug.c execution, -O2
FAIL: gcc.c-torture/execute/ieee/rbug.c execution, -Os
This appears to be a bonified issues to resolve.
Tested on i386-*-freebsd4.2 and alpha-*-freebsd4.2 by rerunning 'make
check-gcc' in an already bootstrapped tree. As well, the exact regex
change was tested `by hand' in tclsh since I don't know TCL that well.
I believe that this patch is non-controversial and better expresses
the expected state of things on FreeBSD/i386.
Regards,
Loren
2000-12-07 Loren J. Rittle <ljrittle@acm.org>
* gcc.c-torture/execute/ieee/mzero2.x: Adjust statement of
where a failure is expected.
* gcc.c-torture/execute/ieee/rbug.x: Likewise.
Index: gcc.c-torture/execute/ieee/mzero2.x
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.c-torture/execute/ieee/mzero2.x,v
retrieving revision 1.2
diff -c -r1.2 mzero2.x
*** mzero2.x 1999/09/04 15:09:14 1.2
--- mzero2.x 2000/12/08 03:31:02
***************
*** 1,6 ****
# freebsd sets up the fpu with a different precision control which causes
# this test to "fail".
! if { [istarget "i?86-*-freebsd*"] } {
set torture_execute_xfail "i?86-*-freebsd*"
}
return 0
--- 1,6 ----
# freebsd sets up the fpu with a different precision control which causes
# this test to "fail".
! if { [istarget "i?86-*-freebsd*\[123\]\.*"] } {
set torture_execute_xfail "i?86-*-freebsd*"
}
return 0
Index: gcc.c-torture/execute/ieee/rbug.x
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.c-torture/execute/ieee/rbug.x,v
retrieving revision 1.3
diff -c -r1.3 rbug.x
*** rbug.x 1999/06/07 22:45:02 1.3
--- rbug.x 2000/12/08 03:31:02
***************
*** 6,12 ****
# freebsd sets up the fpu with a different precision control which causes
# this test to "fail".
! if { [istarget "i?86-*-freebsd*"] } {
set torture_execute_xfail "i?86-*-freebsd*"
}
return 0
--- 6,12 ----
# freebsd sets up the fpu with a different precision control which causes
# this test to "fail".
! if { [istarget "i?86-*-freebsd*\[123\]\.*"] } {
set torture_execute_xfail "i?86-*-freebsd*"
}
return 0