public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <burnus@net-b.de>
To: gcc-patches <gcc-patches@gcc.gnu.org>, fortran <fortran@gcc.gnu.org>
Subject: Early ping: Re: [Patch] Fortran: Fix func decl mismatch [PR93660]
Date: Sun, 14 Mar 2021 12:04:35 +0100	[thread overview]
Message-ID: <678e2be0-3c24-b998-9b9b-8b417ceee8b0@net-b.de> (raw)
In-Reply-To: <9d10ed6a-958c-aa97-5172-9d427a8b2b5b@codesourcery.com>

Early ping – and minor post script:

+	  hidden_typelist = TREE_CHAIN (hidden_typelist);

This change is to avoid running into the ICE:

   gcc_assert (hidden_typelist == NULL_TREE
               || TREE_VALUE (hidden_typelist) == void_type_node);

The purpose of this assert is to check that the TREE_TYPE (fndecl)
arg list and the one created by
   create_function_arglist (gfc_symbol * sym)
are the same (at least in terms of the number of arguments). Namely:
    typelist = TYPE_ARG_TYPES (TREE_TYPE (fndecl));
...
   hidden_typelist = typelist;

Tobias


On 11.03.21 18:15, Tobias Burnus wrote:
> This fixes an ICE with OpenMP 'omp decare simd' but is a generic bug.
>
> Namely TREE_TYPE(fndecl) has a mismatch to the arglist chain,
> missing some hidden arguments with -fcoarray=lib.
>
> OK for mainline and GCC 10?
>
> Tobias
>
> -----------------
> Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München 
> Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, 
> Frank Thürauf

  reply	other threads:[~2021-03-14 11:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11 17:15 Tobias Burnus
2021-03-14 11:04 ` Tobias Burnus [this message]
2021-03-18  8:56   ` *PING*: " Tobias Burnus
2021-03-23 14:43 ` Paul Richard Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=678e2be0-3c24-b998-9b9b-8b417ceee8b0@net-b.de \
    --to=burnus@net-b.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).