From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id CC8443858C55 for ; Tue, 8 Nov 2022 18:05:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CC8443858C55 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667930741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=/kNXIkofpg/6NKA/QSAa7U0hvvYx/WXaLMd2CqLj8vY=; b=CiatE166CyGl7lH/qt7NitCCdOpFsxisVE9FD6Vtai8v9b9B6zlsL/epSUX/XkNJyBNODY sr6/e0t+G0TUT5gSgvt42nAjkMVQ6wZp8RCc2zAj/zslZJgYH5KN+aVtOIZjzG3pv7uBtZ t7bgoaS4Ow8+ndiB6jw3tX6o9Mi2AIk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-107-RIcx3AO7N8ybWQHOMErPMg-1; Tue, 08 Nov 2022 13:05:40 -0500 X-MC-Unique: RIcx3AO7N8ybWQHOMErPMg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 12AB7855440 for ; Tue, 8 Nov 2022 18:05:02 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.65]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B38A0C16932 for ; Tue, 8 Nov 2022 18:05:01 +0000 (UTC) From: Florian Weimer To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/3] Further libgcc unwinder improvements X-From-Line: e5de1b7feecc0ce5bec77e6a21032ab1f6c0a315 Mon Sep 17 00:00:00 2001 Message-Id: Date: Tue, 08 Nov 2022 19:05:00 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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