This is the mail archive of the gcc-patches@gcc.gnu.org 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]

[Committed] Resolve gcc.target/i386/pr27827.c on x86/Darwin


The following patch cures the failure of gcc.target/i386/pr27827.c on
i386-apple-darwin8.8.1.  The problem is that Darwin defaults to using
SSE floating point mathematics, so the regular expressions in the testcase
fail to match the expected "fld" and "fmul".  Trivially fixed by passing
"-mfpmath=387" which is assumed to be the default in this test.

Committed to mainline as revision 118201.



2006-10-30  Roger Sayle  <roger@eyesopen.com>

	* gcc.target/i386/pr27827.c: Explicitly specify -mfpmath=387.


Index: gcc.target/i386/pr27827.c
===================================================================
*** gcc.target/i386/pr27827.c	(revision 118186)
--- gcc.target/i386/pr27827.c	(working copy)
***************
*** 1,5 ****
  /* { dg-do compile { target ilp32 } } */
! /* { dg-options "-O2" } */

  double a, b;
  double f(double c)
--- 1,5 ----
  /* { dg-do compile { target ilp32 } } */
! /* { dg-options "-O2 -mfpmath=387" } */

  double a, b;
  double f(double c)


Roger
--


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