This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, Fortran] PR34246 - Fix for character bind(C) functions
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Sun, 16 Dec 2007 12:04:12 -0800
- Subject: Re: [Patch, Fortran] PR34246 - Fix for character bind(C) functions
- References: <475C6EEC.firstname.lastname@example.org>
Tobias Burnus wrote:
OK to commit
I implemented a while a go a patch which should generate for
character(len=1,kind=c_char) function foo() bind(C)
an interface matching the C prototype
However, the test case failed on some systems (e.g. working on x86-64
but failing on x86-32). It turned out that the returned value was still
regarded as array by the middle end.
The attached patch fixes this; as the patch was created on a
try-and-error bases, it should be carefully reviewed.
Build and regression tested (check-gfortran + gomp) with -m32 and -m64
OK for the trunk?