This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[mainline/4.0?] Fix 32-bit ieee tests on Linux/x86-64

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?


2005-05-26  Andreas Jaeger  <>

	* 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,,
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]