[Patch, fortran]: prevent clobbered by 'longjmp' or 'vfork
Jerry DeLisle
jvdelisle@verizon.net
Mon Oct 2 00:19:00 GMT 2006
Jack Howarth wrote:
> The attached patch eliminates a warning of...
>
> ../../../gcc-4.2-20060928/libgfortran/io/list_read.c: In function 'list_formatted_read_scalar':
> ../../../gcc-4.2-20060928/libgfortran/io/list_read.c:1460: warning: argument 'type' might be clobbered by 'longjmp' or 'vfork'
>
> which occurs on Darwin/ppc, Linux/ppc and Linux/x86-64. The
> fix has be confirmed as the correct approach by Andreas Jaeger.
> I have bootstrap and regression tested this patch on
> Darwin/PPC. Okay for trunk?
> Jack
>
Hmm, I tested it as well on linux-i686 and the patch does not cause any
regressions. (I would not expect it to) I have posted a gcc PR 29313 after
discussions on IRC about this.
Jerry
More information about the Fortran
mailing list