[mainline/4.0?] Fix 32-bit ieee tests on Linux/x86-64
Andreas Jaeger
aj@suse.de
Thu May 26 14:20:00 GMT 2005
The 32-bit x86 tests in gcc.c-torture/execute/ieee always set the
compiler flag "-ffloat-store". If we run these tests with a multilib
GCC for Linux/x86-64 in 32-bit mode, a number of tests fail since
"-ffloat-store" is not passed to the compiler.
The following patch fixes this (tested with running the testsuite with
and without "-m32") and adds the parameter for the 32-bit multilib.
Ok to commit?
This is not a regression - but I'd prefer to see this in 4.0 as well
so that the testresults look sane. Mark, what do you think?
Andreas
2005-05-26 Andreas Jaeger <aj@suse.de>
* gcc.c-torture/execute/ieee/ieee.exp: Set float-store for 32-bit
x86-64 compilation.
============================================================
Index: gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp
--- gcc.c-torture/execute/ieee/ieee.exp 8 Mar 2005 22:10:30 -0000 1.11
+++ gcc.c-torture/execute/ieee/ieee.exp 26 May 2005 14:18:17 -0000
@@ -1,6 +1,6 @@
#
# Expect driver script for GCC Regression Tests
-# Copyright (C) 1993, 1996, 2001 Free Software Foundation
+# Copyright (C) 1993, 1996, 2001, 2005 Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -38,6 +38,9 @@ set additional_flags ""
if [istarget "i\[34567\]86-*-*"] then {
lappend additional_flags "-ffloat-store"
}
+if { [istarget "x86_64-*-*"] && [check_effective_target_ilp32] } then {
+ lappend additional_flags "-ffloat-store"
+}
if [istarget "m68k-*-*"] then {
lappend additional_flags "-ffloat-store"
}
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050526/65b1fe66/attachment.sig>
More information about the Gcc-patches
mailing list