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]

[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
 

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