This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 47023: [4.6/4.7 regression] C_Sizeof: Rejects valid code
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Oct 2011 20:19:06 +0200
- Subject: Re: [Patch, Fortran] PR 47023: [4.6/4.7 regression] C_Sizeof: Rejects valid code
- References: <CAKwh3qjR-2F4x+EA_K5OfDinHaCrLepLB6+ixB-KzE93jttANw@mail.gmail.com>
Dear Janus,
This is OK for trunk. Thanks fo rthe patch.
Cheers
Paul
On Sun, Oct 16, 2011 at 2:58 PM, Janus Weil <janus@gcc.gnu.org> wrote:
> Hi all,
>
> here is a patch which fixes the regression in comment #2 of the PR in
> the subject line. What it does is setting the 'ts.is_c_interop' flag
> correctly for constants with kind-parameter specification (such as
> '0.0_c_double'), as is already being done for variables.
>
> Regtested on x86_64-unknown-linux-gnu. Ok for trunk and 4.6?
>
> Cheers,
> Janus
>
>
> 2011-10-16 ?Janus Weil ?<janus@gcc.gnu.org>
>
> ? ? ? ?PR fortran/47023
> ? ? ? ?* primary.c (match_kind_param): Detect ISO_C_BINDING kinds.
> ? ? ? ?(get_kind): Pass on 'is_iso_c' flag.
> ? ? ? ?(match_integer_constant,match_real_constant,match_logical_constant):
> ? ? ? ?Set 'ts.is_c_interop'.
>
>
> 2011-10-16 ?Janus Weil ?<janus@gcc.gnu.org>
>
> ? ? ? ?PR fortran/47023
> ? ? ? ?* gfortran.dg/c_kind_tests_3.f03: New.
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
? ? ?? --Hitchhikers Guide to the Galaxy