Re: Question about interpreting a decl dump

2020-10-09 Thread Thomas Koenig via Gcc

Hi Iain,



If the last node in the list is void_list_node (a TREE_LIST node whose 
TREE_VALUE is the void_type_ node), then functions of this type do not 
take variable arguments. Otherwise, they do take a variable number of 
arguments.


> HTH

That does help, a lot.

It means that this decl is correct, and many others are not.  I'll do
some more digging to see where the void_list_node should have been
appended.

Thanks!

Thomas


Re: Question about interpreting a decl dump

2020-10-09 Thread Iain Sandoe via Gcc

Thomas Koenig via Fortran  wrote:


and the library function has

mmaxloc2_4_s1 (gfc_array_s1 * const restrict array,
 gfc_array_l1 * const restrict mask, 
GFC_LOGICAL_4 back,
 gfc_charlen_type len)

As far as I can tell, the decl looks correct, but I am a bit
confused by the final

chain >

there.  Should that be there?  What does it mean?


FUNCTION_TYPE

If the last node in the list is void_list_node (a TREE_LIST node whose  
TREE_VALUE is the void_type_ node), then functions of this type do not take  
variable arguments. Otherwise, they do take a variable number of arguments.


HTH
Iain