From patchwork Fri Nov 10 18:48:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 163913 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp1313618vqs; Fri, 10 Nov 2023 10:48:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqRcqwI7jbEojA3tqOZ3di/1uPzuigzGNML+OLcSjlakHeoKkJ+8I40Anl4lUD9UE/QCtx X-Received: by 2002:a05:622a:1041:b0:41e:1974:7cf1 with SMTP id f1-20020a05622a104100b0041e19747cf1mr10307543qte.18.1699642114249; Fri, 10 Nov 2023 10:48:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699642114; cv=pass; d=google.com; s=arc-20160816; b=qqSXKaiXuIgI4/B42Y9ETCgXW2edouv2PXtI/+d7V1UCD8B3pgUOnYTB283bu2uNqa D9S3vTiCCNmbZ0CMGWgynsNyoDXsS1SEgytGbWrIdkv0O/xN+JhFSOdc8SrA642jnhP3 O2ChgZXNkcK+GaHSRWCSciV6xJE2nca/QbynNF/gj8argltyE5ja939fkY8tN2C/oE5v oyfEDVRKhzQ3hFd06IShGhgiLPj77j9nbLR4Iwtza+cgtRAFdkW0vFeBaLxFU7Ek3Zto rD9nTzQHVAT8LnznNyKhqMx7zW/tUi5sfdZsOO+ly4KQkOc71UBWCxG+8AdA5NGmu27g kLBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=rqgN5rfhz/30WaY0aU4/4wH6C4Cjdpht7lZbiiloURc=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=kH1v+wQXlApIP+eB8ENxp023A2uCX3xZsYsW5W1WSa/tmvHx6XXfyhW9krYILK0h6m NCCSpc/iJdpkHwe1daKZp3p/LQDudQFHegkjZcumNCgd9qCWTfn3L9wPWjcnDGEQq6PJ I5AxkxfkSnb/Ynl2XS29HC3mBctqGoRMEHpnttpBh8Zs/A1gVhsZYfuVwWiyuSyObbCE 7KliHTYfz5j9meNiCzYCqmDWxs0B7IPH5vwG/33Ol6NiB0hV1KABZFPsomH+2JW1to3t lrx0vYuU6fk678LJ2mDJpYXLQJeQ6KrlmZlC017ZRV6Eatom5/lLJt0SUIA1vD8sPW+6 Pb5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dqMwsAvZ; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g4-20020ac85804000000b004181f199478si41695qtg.721.2023.11.10.10.48.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 10:48:34 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dqMwsAvZ; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0914A3858D1E for ; Fri, 10 Nov 2023 18:48:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 6796D3858D1E for ; Fri, 10 Nov 2023 18:48:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6796D3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6796D3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699642091; cv=none; b=dynqN9T2E8Z+CR+iPnA95fh/Un7Z2dEQTpGlaDGwN50Ra+BwvbveNrqaM98IpjEQEwYRXo/orKN4u02X1dr03SilQF+J15HkI7Juu+EEIlHA9VlWtlR1dlxKoTTormUvIX2Oqt08nUxnPQnNRhbIEX7FePYj2COrlfiogIOzsng= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699642091; c=relaxed/simple; bh=xPidbPENLM9fdhvdjvo0JP31GEWfv/CacKGsW4oBFN8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UZDfYX+uTOZQypPATakWOuSh9R2P4BiGjZIo7FwFracZaUS1fuwpBFs7TmFPhTvbedVe92QZ4oa6BvZWFTnNokocZRcL3nwoh3kn9ZbsBTdwKs1OjgD6HMrpYDXEHJ3g3nig1P1BH4+Ul9tpXJux8oAZw/kxi0uw+JFJvG0J+KU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699642089; 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=rqgN5rfhz/30WaY0aU4/4wH6C4Cjdpht7lZbiiloURc=; b=dqMwsAvZjo6/6saqT6uVmE1gWuU56SuRuMMstvMRch0Kidhtg9fxVI3uP2IAZhiCsCyu3p LVGtFKZbNrtuefE+vGNwF1DeSx0yLXTR37psZ8Qn2rHs6esJbV04LnA1aNxPkTCd8YVJCo xDAb+uoFjywsu2KUJv7AQLZZB3+LPP4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-534-XZ52535jPkqRZiS-mZ1PVA-1; Fri, 10 Nov 2023 13:48:07 -0500 X-MC-Unique: XZ52535jPkqRZiS-mZ1PVA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4F0EF101A52D for ; Fri, 10 Nov 2023 18:48:07 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DA6402166B26 for ; Fri, 10 Nov 2023 18:48:06 +0000 (UTC) From: Florian Weimer To: gcc-patches@gcc.gnu.org Subject: [PATCH] aarch64: Avoid -Wincompatible-pointer-types warning in Linux unwinder Date: Fri, 10 Nov 2023 19:48:05 +0100 Message-ID: <874jht5tsq.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782203929525568126 X-GMAIL-MSGID: 1782203929525568126 * config/aarch64/linux-unwind.h (aarch64_fallback_frame_state): Add cast to the expected type in sc assignment. (Almost a v2, but the other issue was already fixed via in r14-4183.) --- libgcc/config/aarch64/linux-unwind.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) base-commit: 3a6df3281a525ae6113f50d7b38b09fcd803801e diff --git a/libgcc/config/aarch64/linux-unwind.h b/libgcc/config/aarch64/linux-unwind.h index 00eba866049..18b3df71e7b 100644 --- a/libgcc/config/aarch64/linux-unwind.h +++ b/libgcc/config/aarch64/linux-unwind.h @@ -77,7 +77,10 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context, } rt_ = context->cfa; - sc = &rt_->uc.uc_mcontext; + /* Historically, the uc_mcontext member was of type struct sigcontext, but + glibc uses a different type now with member names in the implementation + namespace. */ + sc = (struct sigcontext *) &rt_->uc.uc_mcontext; /* This define duplicates the definition in aarch64.md */ #define SP_REGNUM 31