This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix large_real_kind failures on Solaris
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 21 Nov 2005 21:58:46 +0100
- Subject: [PATCH] Fix large_real_kind failures on Solaris
It turned out that check_effective_target_fortran_large_real doesn't really
check that large reals are supported.
Tested on SPARC/Solaris 2.5.1->10 and x86-64/Linux, approved by FX, applied to
mainline and 4.1 branch.
2005-11-21 Eric Botcazou <ebotcazou@libertysurf.fr>
PR libfortran/24432
* lib/target-supports.exp (check_effective_target_fortran_large_real):
Check that 'cos' is supported.
--
Eric Botcazou
Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp (revision 107161)
+++ lib/target-supports.exp (working copy)
@@ -530,6 +530,7 @@
puts $f "integer,parameter :: k = &"
puts $f " selected_real_kind (precision (0.0_8) + 1)"
puts $f "real(kind=k) :: x"
+ puts $f "x = cos (x);"
puts $f "end"
close $f