This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use void_list_node more in Fortran FE, don't make MAIN__ call varargs


On 08/17/2010 07:25 PM, Jakub Jelinek wrote:
As discussed in the PR, this patch just makes MAIN__ call non-varargs (for
other calls more work is needed)

Namely, one should generate the interface based on the usage of the call; that way one can also give better diagnostics. (Cf. PR and PR linked in the PR.)


and slightly optimizes by sharing
void_list_node by more function types.

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

OK. Thanks for the patch.


Tobias

2010-08-17 Jakub Jelinek<jakub@redhat.com>

	PR fortran/45304
	* trans-decl.c (build_library_function_decl_1): Chain on
	void_list_node instead of creating a new TREE_LIST.
	* trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Likewise.
	* trans-types.c (gfc_get_function_type): Likewise.  Set
	typelist to void_list_node for the main program


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]