This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[PATCH,fortran]: proposed fix for PR 32732


hi all,

attached is a proposed fix for PR 32732. it modifies the expected expression for by-value character arguments to BIND(C) procedures, and the type of the backend_decl for the dummy to not expect an address.

bootstrapped and regtested on x86 and x86_64 linux with no new failures.

Chris

:ADDPATCH fortran:

2007-07-18 Christopher D. Rickett <crickett@lanl.gov>

	PR fortran/32732
	* trans-decl.c (generate_local_decl): Convert the TREE_TYPE for by
	value character dummy args of BIND(C) procedures.
	* trans-expr.c (gfc_conv_variable): Do not build address
	expression for BT_CHARACTER dummy arg of a BIND(C) procedure.

2007-07-18 Christopher D. Rickett <crickett@lanl.gov>

	PR fortran/32732
	* gfortran.dg/c_char_tests.f03: New test case.
	* gfortran.dg/c_char_driver.c: Driver for c_char_tests.f03.
	* gfortran.dg/c_char_tests_2.f03: New test case.
	* gfortran.dg/pr32732.f03: New test case.

Attachment: icb_pr32732.diff
Description: Text document


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