This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR - fix SIGNAL intrinsic (4.6/4.7 Regression)
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: fortran at gcc dot gnu dot org
- Cc: Tobias Burnus <burnus at net-b dot de>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 10 Jul 2011 12:02:01 +0200
- Subject: Re: [Patch, Fortran] PR - fix SIGNAL intrinsic (4.6/4.7 Regression)
- References: <4E18A4FC.4030508@net-b.de>
On Saturday 09 July 2011 20:59:08 Tobias Burnus wrote:
> The regression seems to be a side effect of the -fwhole-file effort.
>
> The BT_UNKNOWN of the second argument of SIGNAL(NUMBER,HANDLER) triggers
> an ICE in trans-types.c, when generating the decl for the external
> function "signal" (or rather for __gfortran_signal_func{,_int}).
>
> As both handler == <integer expression> and handler == <subroutine
> proc-pointer> are pointers, it seems to be simplest to translate the
> second argument as "void *" (BT_VOID).
>
> Build and regtested on x86-64-linux.
> OK for the trunk and the 4.6 branch?
OK.