Bug in -fstack-check option of EGCS Fortran 1.1.2

craig@jcb-sc.com craig@jcb-sc.com
Wed Mar 31 23:54:00 GMT 1999


This turns out to be a fairly interesting problem, which I haven't
yet thoroughly investigated.  I'm afraid I don't have a workaround
to offer yet, either.  Not even sure whether the right fix will be
in the g77 front end, or the gcc back end!  But, my guess is the
g77 front end will have to become more sophisticated in its code-
generation -- the back end seems to not like the way g77 currently
does it, when it comes to certain combinations of features, like this
(which apparently involves forward-referencing a label, plus mid-block
declaration of new variables for temporaries, plus stack-checking,
in this particular case).

I'll have to investigate further, later.  Thanks for the bug report!
Can't say when it'll be fixed, yet.

        tq vm, (burley)


>When I compile the following Fortran program with the option -fstack-check,
>I receive the message "label '1' used before containing binding contour".
>The problem occurs under Cygwin32 version B20.1, Mingw32, and Delorie. My
>system is a Gateway G6-200 running Windows 98. I am using EGCS Fortran
>version 1.1.2.
>
>	PROGRAM TEST
>	CHARACTER*40 LINE
>	CALL SUB(*1)
>	WRITE(*,*)' '//LINE
>1	CONTINUE
>	STOP
>	END



More information about the Gcc-bugs mailing list