[Patch, Fortran] PR 48174+45304: No varags if interface is known

Tobias Burnus burnus@net-b.de
Fri Mar 25 18:21:00 GMT 2011


Dear Paul,

Paul Richard Thomas wrote:
> Why did Jakub's patch for PR45304 not fix this? He visited the fix in
> your patch upon build_library_function_decl_1 and
> gfc_get_intrinsic_lib_fndecl.

Well, my patch is in a way a follow up to Jakub's. His patch only fixed 
the library call definitions and the (in gfc_get_function_type) ensured 
that for decl with formal arguments and for the main function the void 
list is added.

Thus, no void list was added if there was no formal arglist. Well, this 
patch changes this to still add the void list, if it is known that there 
are no arguments.

> Should trans-decl.c(create_function_arglist) have received the same treatment?

I don't think so - though I might be wrong.

Committed as Rev. 171519.

Tobias



More information about the Gcc-patches mailing list