public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Eric Botcazou <botcazou@adacore.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Use default lower bound for vector types in debug info
Date: Mon, 4 Jul 2022 10:18:44 +0200	[thread overview]
Message-ID: <CAFiYyc0A-Sfw9Tbg5YF_mwjcHRjhccWZTvV-36WLje5MZirHmg@mail.gmail.com> (raw)
In-Reply-To: <4409263.LvFx2qVVIh@fomalhaut>

On Mon, Jul 4, 2022 at 10:03 AM Eric Botcazou via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Hi,
>
> vector types are represented as array types with DW_AT_GNU_vector attribute in
> the debug info and a range [0 .. TYPE_VECTOR_SUBPARTS - 1].  That's obviously
> skewed toward the C family of languages, therefore the attached patch changes
> the lower bound to the default for the language of the CU, if any.
>
> Tested on x86-64/Linux, OK for the mainline?

For late generated vector types this might result in inconsistencies with
early (user) generated types when using LTO.  Is there context available
somehow so we can do like the is_<LANG> overloads on a decl and
use a default according to that?

>
> gcc/
>         * dwarf2out.cc (gen_array_type_die): Use the default lower bound of
>         the language for vector types.
>
> --
> Eric Botcazou

  reply	other threads:[~2022-07-04  8:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04  7:52 Eric Botcazou
2022-07-04  8:18 ` Richard Biener [this message]
2022-07-04  8:42   ` Eric Botcazou
2022-07-04  9:08     ` Richard Biener

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=CAFiYyc0A-Sfw9Tbg5YF_mwjcHRjhccWZTvV-36WLje5MZirHmg@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=botcazou@adacore.com \
    --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).