From: Ulrich Drepper <drepper@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: Re: [Patch] add more C++ name hints. v2
Date: Tue, 30 Aug 2022 12:58:27 +0200 [thread overview]
Message-ID: <CAP3s5k-WiOwa+4r5pQ=wW6A=MZb-PR-LUoey83=GBFE+5V3HQg@mail.gmail.com> (raw)
Message-ID: <20220830105827.FUJa_o5tcGPTG-1Ujw-KVLhIPixA5HF9Crvh2YTuVgk@z> (raw)
In-Reply-To: <CAP3s5k_h6j+KHeiWM9cTPyBUSNgJJ+r7UAQr+MH-0jGUVn0jDw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]
Ping! Anyone interested in this. I'm bootstrapping my trunk builds with
this patch without problems.
On Mon, Aug 22, 2022 at 9:09 PM Ulrich Drepper <drepper@redhat.com> wrote:
> This is the second version of the proposed patch to add more identifiers
> to the known list to give hints about #include and version numbers.
>
> Marek looked through the first version and found it acceptable but
> remarked that the list is getting long and the sequential search performed
> by the current code might not be adequate. Especially because I offered to
> add even more known names to the list.
>
> This second version replaces the current lookup implementation with a
> gperf-generated hash function. Since gperf is already a dependency for
> maintainers the use of the tool itself shouldn't be a problem.
>
> I followed the existing practice for the cfns.gperf file and its use so,
> if the handling of that file works, so should the handling of the new file,
> std-name-hint.gperf.
>
> Please let me know if this is acceptable. I built a compiler with this
> code and tested the hinting.
>
> contrib/ChangeLog
> * gcc_update (files_and_dependencies): Add gcc/cp/std-name-hint.h
> depend on gcc/cp/std-name-hint.gperf.
>
> gcc/cp/ChangeLog
> * Make-lang.in: Add rule to build std-name-hint.h.
> * name-lookup.cc (struct std_name_hint): Remove definition.
> Instead...
> Include "std-name-hint.h".
> (get_std_name_hint): Remove hints array and lookup code. Instead
> call
> std_name_hint_lookup::find.
> * std-name-hint.gperf: New file.
> * std-name-hint.h: New file.
>
next prev parent reply other threads:[~2022-08-30 10:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-22 19:09 Ulrich Drepper
2022-08-30 10:58 ` Ulrich Drepper [this message]
2022-08-30 10:58 ` Ulrich Drepper
2022-08-30 13:32 ` Jason Merrill
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='CAP3s5k-WiOwa+4r5pQ=wW6A=MZb-PR-LUoey83=GBFE+5V3HQg@mail.gmail.com' \
--to=drepper@redhat.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).