This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/26564] ../.././libgfortran/mk-kinds-h.sh: Unknown type
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2006 20:47:54 -0000
- Subject: [Bug libfortran/26564] ../.././libgfortran/mk-kinds-h.sh: Unknown type
- References: <bug-26564-10971@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-04 20:47 -------
Actually I take this back. This can happen though it should not happen at all
unless your /bin/sh is going bonkers.
possible_real_kinds="4 8 10 16"
for k in $possible_real_kinds; do
case $k in
4) ctype="float" ;;
8) ctype="double" ;;
10) ctype="long double" ;;
16) ctype="long double" ;;
*) echo "$0: Unknown type" >&2 ; exit 1 ;;
esac
largest_ctype="$ctype"
...
case $largest_ctype in
float) echo "#define GFC_REAL_LARGEST_FORMAT \"\"" ;;
double) echo "#define GFC_REAL_LARGEST_FORMAT \"l\"" ;;
"long double") echo "#define GFC_REAL_LARGEST_FORMAT \"L\"" ;;
*) echo "$0: Unknown type" >&2 ; exit 1 ;;
esac
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26564