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]: fix pr32627 and other c_f_pointer funcs


hi all,

the attached patch addresses pr32627, which was about c_f_pointer_s1 being undefined. in general, c_f_pointer functions did not exist for character/string, logical, or complex types. the attached patch supplies them.

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

Chris

:ADDPATCH fortran:

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

	PR fortran/32627
	* resolve.c (set_name_and_label): Set kind number for character
	version of c_f_pointer.

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

	PR fortran/32627
	* libgfortran/intrinsics/iso_c_generated_procs.c: Add c_f_pointer
	for character/string arguments.
	* libgfortran/gfortran.map: Add c_f_pointer_s0.
	* libgfortran/mk-kinds-h.sh: Save smallest integer kind as default
	character kind.

	* libgfortran/intrinsics/iso_c_generated_procs.c: Add versions of
	c_f_pointer for complex and logical types.
	* libgfortran/gfortran.map: Add c_f_pointer versions for logical
	and complex types.

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

	PR fortran/32627
	* gfortran.dg/pr32627_driver.c: Driver for pr32627.
	* gfortran.dg/pr32627.f03: New test case.

	* gfortran.dg/c_f_pointer_logical.f03: New test case.
	* gfortran.dg/c_f_pointer_logical_driver.c: Driver for
	c_f_pointer_logical.
	* gfortran.dg/c_f_pointer_complex_driver.c: Driver for
	c_f_pointer_complex.
	* gfortran.dg/c_f_pointer_complex.f03: New test case.

Attachment: icb.diff
Description: Text document


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