From: Florian Weimer <fweimer@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH 0/3] Further libgcc unwinder improvements
Date: Tue, 08 Nov 2022 19:05:00 +0100 [thread overview]
Message-ID: <cover.1667930077.git.fweimer@redhat.com> (raw)
This series makes some further unwinder improvements. Unfortunately,
not many targets define __LIBGCC_DWARF_REG_SIZES_CONSTANT__; x86-64
does, and it makes uw_install_context_1 quite a bit faster because GCC
no longer has to emit generic memcpy code for it. In general, it may be
worthwhile to replace this code with target-specific implementations.
Tested on powerpc64le-linux-gnu, x86_64-linux-gnu; I didn't see any test
result differences. Built GCC for msp430-elf, too.
The revision for the patch I posted earlier (using SWAR techniques for
get_cie_encoding) is not ready yet and probably won't make GCC 13. It
requires some header cleanups first.
Thanks,
Florian
Florian Weimer (3):
Compute a table of DWARF register sizes at compile
Define __LIBGCC_DWARF_REG_SIZES_CONSTANT__ if DWARF register size is
constant
libgcc: Specialize execute_cfa_program in DWARF unwinder for
alignments
gcc/c-family/c-cppbuiltin.cc | 8 +
gcc/config/msp430/msp430.cc | 11 +-
gcc/config/rs6000/rs6000.cc | 14 +-
gcc/debug.h | 2 +
gcc/doc/tm.texi | 7 +-
gcc/dwarf2cfi.cc | 116 +++++-----
gcc/target.def | 8 +-
libgcc/unwind-dw2-execute_cfa.h | 322 ++++++++++++++++++++++++++++
libgcc/unwind-dw2.c | 360 ++++++--------------------------
9 files changed, 472 insertions(+), 376 deletions(-)
create mode 100644 libgcc/unwind-dw2-execute_cfa.h
base-commit: 5d060d8b0477ff4911f41c816281daaa24b41a13
--
2.38.1
next reply other threads:[~2022-11-08 18:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-08 18:05 Florian Weimer [this message]
2022-11-08 18:05 ` [PATCH 1/3] Compute a table of DWARF register sizes at compile Florian Weimer
2022-11-20 15:23 ` Jeff Law
2023-01-02 15:20 ` Florian Weimer
2022-11-08 18:05 ` [PATCH 2/3] Define __LIBGCC_DWARF_REG_SIZES_CONSTANT__ if DWARF register size is constant Florian Weimer
2022-11-08 18:05 ` [PATCH 3/3] libgcc: Specialize execute_cfa_program in DWARF unwinder for alignments Florian Weimer
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=cover.1667930077.git.fweimer@redhat.com \
--to=fweimer@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).