From: Max Filippov <jcmvbkbc@gmail.com>
To: Yuri Gribov <tetra2005@gmail.com>
Cc: "Laurent Vivier" <laurent@vivier.eu>,
"Cornelia Huck" <cohuck@redhat.com>,
"Chris Wulff" <crwulff@gmail.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
qemu-devel <qemu-devel@nongnu.org>,
"Taylor Simpson" <tsimpson@quicinc.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"David Gibson" <david@gibson.dropbear.id.au>
Subject: Re: [PATCH] [NFC] Mark locally used symbols as static.
Date: Mon, 22 Mar 2021 14:27:40 -0700 [thread overview]
Message-ID: <CAMo8Bf+Uy3m0YWQrmH4_2ikB8BD4ucYz+=zvtO+rt2xHj8ixqA@mail.gmail.com> (raw)
In-Reply-To: <CAJOtW+5DDMsr8QJQxaa1OHT79rpMJCrwkYbuaRTynR_ngUxgHA@mail.gmail.com>
On Mon, Mar 22, 2021 at 12:55 PM Yuri Gribov <tetra2005@gmail.com> wrote:
>
> Hi all,
>
> This patch makes locally used symbols static to enable more compiler
> optimizations on them. Some of the symbols turned out to not be used
> at all so I marked them with ATTRIBUTE_UNUSED (as I wasn't sure if
> they were ok to delete).
>
> The symbols have been identified with a pet project of mine:
> https://github.com/yugr/Localizer
>
> From 07b4f05893b7037e68e5d7bdec5ba8e74e509999 Mon Sep 17 00:00:00 2001
> From: Yury Gribov <tetra2005@gmail.com>
> Date: Sat, 20 Mar 2021 23:39:15 +0300
> Subject: [PATCH] [NFC] Mark locally used symbols as static.
>
> Signed-off-by: Yury Gribov <tetra2005@gmail.com>
> ---
> disas/alpha.c | 16 ++--
> disas/m68k.c | 78 ++++++++---------
> disas/mips.c | 14 ++--
> disas/nios2.c | 84 +++++++++----------
> disas/ppc.c | 26 +++---
> disas/riscv.c | 2 +-
> pc-bios/optionrom/linuxboot_dma.c | 4 +-
> scripts/tracetool/format/c.py | 2 +-
> target/hexagon/gen_dectree_import.c | 2 +-
> target/hexagon/opcodes.c | 2 +-
> target/i386/cpu.c | 2 +-
> target/s390x/cpu_models.c | 2 +-
> .../xtensa/core-dc232b/xtensa-modules.c.inc | 2 +-
> .../xtensa/core-dc233c/xtensa-modules.c.inc | 2 +-
> target/xtensa/core-de212/xtensa-modules.c.inc | 2 +-
> .../core-de233_fpu/xtensa-modules.c.inc | 2 +-
> .../xtensa/core-dsp3400/xtensa-modules.c.inc | 2 +-
> target/xtensa/core-fsf/xtensa-modules.c.inc | 2 +-
> .../xtensa-modules.c.inc | 2 +-
> .../core-test_kc705_be/xtensa-modules.c.inc | 2 +-
> .../core-test_mmuhifi_c3/xtensa-modules.c.inc | 2 +-
> 21 files changed, 125 insertions(+), 127 deletions(-)
For the xtensa part:
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Changed files are auto-generated, I'll add a rule to the import
script (target/xtensa/import_core.sh) to do this transformation.
--
Thanks.
-- Max
next prev parent reply other threads:[~2021-03-22 21:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-22 19:55 [PATCH] [NFC] Mark locally used symbols as static Yuri Gribov
2021-03-22 21:27 ` Max Filippov [this message]
2021-03-22 23:32 ` David Gibson
2021-03-23 13:36 ` Stefan Hajnoczi
2021-03-23 13:36 ` Stefan Hajnoczi
2021-03-23 14:57 ` Taylor Simpson
2021-03-30 6:49 ` [PING] " Yuri Gribov
2021-04-15 17:27 ` [PING^2] " Yuri Gribov
2021-04-16 5:03 ` Philippe Mathieu-Daudé
2021-04-16 5:08 ` Palmer Dabbelt
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='CAMo8Bf+Uy3m0YWQrmH4_2ikB8BD4ucYz+=zvtO+rt2xHj8ixqA@mail.gmail.com' \
--to=jcmvbkbc@gmail.com \
--cc=cohuck@redhat.com \
--cc=crwulff@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=f4bug@amsat.org \
--cc=laurent@vivier.eu \
--cc=palmer@dabbelt.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=stefanha@redhat.com \
--cc=tetra2005@gmail.com \
--cc=tsimpson@quicinc.com \
/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 NNTP newsgroup(s).