[Patch, Fortran] PR - fix SIGNAL intrinsic (4.6/4.7 Regression)

Tobias Burnus burnus@net-b.de
Sat Jul 9 20:14:00 GMT 2011


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?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signal.diff
Type: text/x-patch
Size: 1424 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110709/6448d8ff/attachment.bin>


More information about the Gcc-patches mailing list