This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Generated files problems.
On Thu, Oct 05, 2006 at 09:24:27AM +0200, Bernhard Fischer wrote:
>
> I experienced failure to detect kinds even on a host where the hardcoded
> m4 exists and is the gnu one. I'm protecting against failures later on
> by checking if any kind was found, fwiw. I'm aware that this only
> bails on the symptom and doesn't help in curing the actual cause of
> failing to detect the kinds, of course.
>
> Index: gcc-4.2/libgfortran/mk-sik-inc.sh
> ===================================================================
> --- gcc-4.2/libgfortran/mk-sik-inc.sh (revision 116946)
> +++ gcc-4.2/libgfortran/mk-sik-inc.sh (working copy)
> @@ -14,6 +14,7 @@ for k in $possible_kinds; do
> fi
> rm -f tmp$$.*
> done
> +[ "x$kinds" = "x" ] && exit 1
>
> echo " integer, parameter :: c = $c"
> echo " type (int_info), parameter :: int_infos(c) = (/ &"
I'm neither a Bourne Shell programmer nor familiar
with the generation of the kinds.f90 file. You should
probably ping FX for a comment.
--
Steve