Commit e4ff7a56 by Tobias Burnus Committed by Tobias Burnus

mk-kinds-h.sh: Disable REAL(16) if REAL(10) is available.

2010-08-28  Tobias Burnus  <burnus@net-b.de>

        * mk-kinds-h.sh: Disable REAL(16) if REAL(10) is available.

From-SVN: r163612
parent e84f122f
2010-08-28 Tobias Burnus <burnus@net-b.de>
* mk-kinds-h.sh: Disable REAL(16) if REAL(10) is available.
2010-08-27 Tobias Burnus <burnus@net-b.de> 2010-08-27 Tobias Burnus <burnus@net-b.de>
PR fortran/33197 PR fortran/33197
......
...@@ -44,6 +44,7 @@ echo "#define GFC_UINTEGER_LARGEST GFC_UINTEGER_${largest}" ...@@ -44,6 +44,7 @@ echo "#define GFC_UINTEGER_LARGEST GFC_UINTEGER_${largest}"
echo "#define GFC_DEFAULT_CHAR ${smallest}" echo "#define GFC_DEFAULT_CHAR ${smallest}"
echo "" echo ""
REAL_10_FOUND=
for k in $possible_real_kinds; do for k in $possible_real_kinds; do
echo " real (kind=$k) :: x" > tmp$$.f90 echo " real (kind=$k) :: x" > tmp$$.f90
...@@ -53,8 +54,15 @@ for k in $possible_real_kinds; do ...@@ -53,8 +54,15 @@ for k in $possible_real_kinds; do
case $k in case $k in
4) ctype="float" ; suffix="f" ;; 4) ctype="float" ; suffix="f" ;;
8) ctype="double" ; suffix="" ;; 8) ctype="double" ; suffix="" ;;
10) ctype="long double" ; suffix="l" ;; 10) ctype="long double" ; suffix="l" ; REAL_10_FOUND=1 ;;
16) ctype="long double" ; suffix="l" ;; 16) ctype="long double"
suffix="l"
# Disable REAL(16) if it is just __float128
# until the library is fixed
if [ -n "$REAL_10_FOUND" ]; then
continue
fi
;;
*) echo "$0: Unknown type" >&2 ; exit 1 ;; *) echo "$0: Unknown type" >&2 ; exit 1 ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment