* [Patch, Fortran] PR34246 - Fix for character bind(C) functions
@ 2007-12-09 22:40 Tobias Burnus
2007-12-10 16:31 ` Tobias Burnus
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Tobias Burnus @ 2007-12-09 22:40 UTC (permalink / raw)
To: gcc-patches, 'fortran@gcc.gnu.org'
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
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
char foo()
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
on x86-64-linux.
OK for the trunk?
Tobias
[-- Attachment #2: bind-c-fixes.diff --]
[-- Type: application/unknown, Size: 6892 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch, Fortran] PR34246 - Fix for character bind(C) functions
2007-12-09 22:40 [Patch, Fortran] PR34246 - Fix for character bind(C) functions Tobias Burnus
@ 2007-12-10 16:31 ` Tobias Burnus
2007-12-15 13:38 ` Tobias Burnus
2007-12-16 20:25 ` Jerry DeLisle
2 siblings, 0 replies; 5+ messages in thread
From: Tobias Burnus @ 2007-12-10 16:31 UTC (permalink / raw)
To: gcc-patches, 'fortran@gcc.gnu.org'
Tobias Burnus wrote:
> Build and regression tested (check-gfortran + gomp) with -m32 and -m64
> on x86-64-linux.
>
As Dominique wrote in the associated PR: "The patch [...] fix the
problem for ppc Darwin9 without regression for ppc/Intel Darwin9."
> OK for the trunk?
>
Tobias
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch, Fortran] PR34246 - Fix for character bind(C) functions
2007-12-09 22:40 [Patch, Fortran] PR34246 - Fix for character bind(C) functions Tobias Burnus
2007-12-10 16:31 ` Tobias Burnus
@ 2007-12-15 13:38 ` Tobias Burnus
2007-12-16 20:25 ` Jerry DeLisle
2 siblings, 0 replies; 5+ messages in thread
From: Tobias Burnus @ 2007-12-15 13:38 UTC (permalink / raw)
To: gcc-patches, 'fortran@gcc.gnu.org'
* PING *
http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00424.html
Tobias Burnus wrote:
> 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
> char foo()
>
> 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
> on x86-64-linux.
>
> OK for the trunk?
>
> Tobias
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch, Fortran] PR34246 - Fix for character bind(C) functions
2007-12-09 22:40 [Patch, Fortran] PR34246 - Fix for character bind(C) functions Tobias Burnus
2007-12-10 16:31 ` Tobias Burnus
2007-12-15 13:38 ` Tobias Burnus
@ 2007-12-16 20:25 ` Jerry DeLisle
2007-12-16 20:28 ` Tobias Burnus
2 siblings, 1 reply; 5+ messages in thread
From: Jerry DeLisle @ 2007-12-16 20:25 UTC (permalink / raw)
To: Tobias Burnus; +Cc: gcc-patches, 'fortran@gcc.gnu.org'
Tobias Burnus wrote:
> 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
> char foo()
>
> 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
> on x86-64-linux.
>
> OK for the trunk?
>
> Tobias
OK to commit
Jerry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch, Fortran] PR34246 - Fix for character bind(C) functions
2007-12-16 20:25 ` Jerry DeLisle
@ 2007-12-16 20:28 ` Tobias Burnus
0 siblings, 0 replies; 5+ messages in thread
From: Tobias Burnus @ 2007-12-16 20:28 UTC (permalink / raw)
To: Jerry DeLisle; +Cc: gcc-patches, 'fortran@gcc.gnu.org'
Jerry DeLisle wrote:
> Tobias Burnus wrote:
>> Build and regression tested (check-gfortran + gomp) with -m32 and -m64
>> on x86-64-linux.
> OK to commit
Thanks for the review. Committed as Rev. 130991.
Tobias
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-12-16 20:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-09 22:40 [Patch, Fortran] PR34246 - Fix for character bind(C) functions Tobias Burnus
2007-12-10 16:31 ` Tobias Burnus
2007-12-15 13:38 ` Tobias Burnus
2007-12-16 20:25 ` Jerry DeLisle
2007-12-16 20:28 ` Tobias Burnus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).