This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Update information for FreeBSD versions and architectures #2
- To: rittle at rsch dot comm dot mot dot com
- Subject: Re: PATCH: Update information for FreeBSD versions and architectures #2
- From: Jeffrey A Law <law at redhat dot com>
- Date: Mon, 08 Jan 2001 18:15:18 -0700
- cc: gcc-patches at gcc dot gnu dot org, obrien at FreeBSD dot org
- Reply-To: law at redhat dot com
In message <200012080605.eB865aR96776@latour.rsch.comm.mot.com>you write:
> FreeBSD/alpha requires -mieee in order to provide conforming IEEE
> floating point math support. In particular, these tests fail without
> -mieee but mostly pass with that option:
>
> FAIL: gcc.c-torture/execute/ieee/20000320-1.c execution, -O0
> FAIL: gcc.c-torture/execute/ieee/20000320-1.c execution, -O1
> FAIL: gcc.c-torture/execute/ieee/20000320-1.c execution, -O2
> FAIL: gcc.c-torture/execute/ieee/20000320-1.c execution, -O3 -fomit-frame-
> pointer
> FAIL: gcc.c-torture/execute/ieee/20000320-1.c execution, -O3 -g
> FAIL: gcc.c-torture/execute/ieee/20000320-1.c execution, -Os
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -O0
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -O1
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -O2
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -O3 -fomit-frame-po
> inter
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -O3 -fomit-frame-po
> inter -funroll-loops
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -O3 -fomit-frame-po
> inter -funroll-all-loops -finline-functions
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -O3 -g
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-2.c execution, -Os
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -O0
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -O1
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -O2
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -O3 -fomit-frame-po
> inter
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -O3 -fomit-frame-po
> inter -funroll-loops
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -O3 -fomit-frame-po
> inter -funroll-all-loops -finline-functions
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -O3 -g
> FAIL: gcc.c-torture/execute/ieee/fp-cmp-4.c execution, -Os
> FAIL: gcc.c-torture/execute/ieee/hugeval.c execution, -O0
> FAIL: gcc.c-torture/execute/ieee/mzero2.c execution, -O0
> FAIL: gcc.c-torture/execute/ieee/mzero2.c execution, -O1
> FAIL: gcc.c-torture/execute/ieee/mzero2.c execution, -O2
> FAIL: gcc.c-torture/execute/ieee/mzero2.c execution, -O3 -fomit-frame-poin
> ter
> FAIL: gcc.c-torture/execute/ieee/mzero2.c execution, -O3 -g
> FAIL: gcc.c-torture/execute/ieee/mzero2.c execution, -Os
>
> A patch is provided which adds -mieee when tests are run on
> alpha-*-freebsd* in that directory only. Some fp-cmp-2.c execution
> tests continue to fail, but they look like bonified issues to resolve.
>
> Tested on i386-*-freebsd4.2 and alpha-*-freebsd4.2 by rerunning 'make
> check-gcc' in an already bootstrapped tree.
>
> At the moment, I do not know why an IEEE multilib is built on
> FreeBSD/alpha (which is disabled by default) but not on FreeBSD/i386
> since I know we strive to make our user-land look identical. If other
> FreeBSD gcc maintainers believe that this is a root error and should
> be fixed, then this patch should not be installed. David, comments?
>
> People might also object to this patch for another reason: There is
> apparently a dejagnu variable, ieee_multilib_flags, that can (should?)
> be set to (in this case) -mieee, however it is unclear how that gets
> set outside of dejagnu configuration files shipped apart from gcc
> (i.e. I found one example files related to the SH processor but it was
> installed with dejagnu not gcc).
>
> Regards,
> Loren
>
> 2000-12-07 Loren J. Rittle <ljrittle@acm.org>
>
> * gcc.c-torture/execute/ieee/ieee.exp: Enable -mieee while
> testing IEEE support on alpha-*-freebsd*.
The right place to do this is in the dejagnu code, not the gcc testsuite
itself. You'd want to set set something like this in your site.exp
set_board_info ieee_multilib_flags "-mieee";
jeff