From patchwork Mon Nov 20 09:55:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 167015 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp2089798vqn; Mon, 20 Nov 2023 01:56:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEh4uEw8esiwVhFgfgCLn86uueIWt4VjgTEwhio/d7Z+KDZXKyBb1psvwm6C036O5E47YDW X-Received: by 2002:a05:6102:15a3:b0:460:621c:d14b with SMTP id g35-20020a05610215a300b00460621cd14bmr7078645vsv.20.1700474197108; Mon, 20 Nov 2023 01:56:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700474197; cv=pass; d=google.com; s=arc-20160816; b=JPRJyA60WZSkDl9Fk923vXe/GhU1K2S5aJE5xpEk5Lk6KxZ3RNYRjMZ6E1kullKuB6 c0KuA4OsDel3Y1gDL558jlxztLPyL7v3bZM6M8DGbbRPlMGQnoq/icbNzFGgjcp66Hqc nWB/P+A+cg8VEWKt0DzNZeop9SCbKgh6ymnsGoLs1v9m6jpCHFXi+ucADqi6DgBvHRWx ht89+VAG1ubCBdm2YfZqmN3xGGd7/w87vaXgkhDBIpdhTCd5j/D6e2NdBVbOfJhbhCxZ 46MpR8gZQyI/KMQdn0vrBDeChAVMfPfaP0dh+DiTjXy76jtZZhVRtIyWdecnGg89x0qW fTbQ== 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:date :references:message-id:in-reply-to:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=2B22qaPIT+Hgh50VaypES9aT7OWFYFqmMbHT/SSJ5S0=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=WSRl3su8l4CAJoP93ZIPe3pLFm2BGKDOzo2biuqrjVqZIdjfIC1qEHciPkUOarmtkM UDC30+Yi8AG1ITv0GN56vCEqHC6oGUVHbfd/7iw8/8u7GGV7xhhwTaEzKHxz/fo0cYDP 6E1z+ZZH1Be7FS/AU7F5FXN/GdcN7k0DhLcdWXn8277nsbMXh8riqM9T7Rv+gHqoFAXW C2B0DPVCFhT3p1INNgKOTMS5mbQRnSWLRr/V0Sp87R+gAyUjd7lvRFpuV4nM//WIOO2M 1PSDQKjQ199QGTZLQy/qggM8QFPBKAEUfBPrwzYxvqHtlrK2YUIe5Xf2WUPBIOj6x5fk B89Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WxN/dWDn"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ay11-20020a05620a178b00b0076d990f8864si7587633qkb.259.2023.11.20.01.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 01:56:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WxN/dWDn"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 8A05A3882ACE for ; Mon, 20 Nov 2023 09:56:20 +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 EDEA5384F488 for ; Mon, 20 Nov 2023 09:55:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EDEA5384F488 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 EDEA5384F488 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=1700474157; cv=none; b=HHSwJ6QDasqdCDHlz0rRFga3yCL5DlAmXWt0/BT5QTDanNCLG9rzVNtp3rzmofQYicXqjgxoubLQl5ZBMgtdpDWZkWfz8G5dGpiNlzSLSAyS0/2ciU+Obc1jiZ6yyvirFbe/N2YAtOnXxZvCmA6fB2ypQTLFOBsnDfbnkGoucz0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700474157; c=relaxed/simple; bh=ZR7d5eywfT76J8nH7Gm4hoduI/tsraIpS2jQgErqb4k=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=i1bu5wuLc3uEnONZB8H7MSLV3XJEytxr1YKSS7wdZZg1diO6R7Ui/ulk2Tuqoqd2yqmRqpvbqVCqhAQNS1yYSHZSmYUf9ec1ZKbI+7axumb7pNF+lj2zg0eBVZh93wjs7Zsp7dBDgpFeNdjkspb2faTplcQmFZfHpG/HkleRvBE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700474154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2B22qaPIT+Hgh50VaypES9aT7OWFYFqmMbHT/SSJ5S0=; b=WxN/dWDn3J/RHUyo/i95OSMQFpfgUgYY/LAOUQJH9V4lmJD/OyA4UdpcbLuE2MopZkyqzi c+77M4VcJFuENcH/sqzzFzEczDv1UDFS3ruEGOMMA8N0x1kTwrneLkPOJmWwOPQI5gj47W 5Yj9nydeNE35LC5QWQvRyiDGQ3j71zw= 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-362-ZE9lcXhtNpqjPNpsKFAIyw-1; Mon, 20 Nov 2023 04:55:52 -0500 X-MC-Unique: ZE9lcXhtNpqjPNpsKFAIyw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 0A394830E64 for ; Mon, 20 Nov 2023 09:55:52 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B9005036 for ; Mon, 20 Nov 2023 09:55:51 +0000 (UTC) From: Florian Weimer To: gcc-patches@gcc.gnu.org Subject: [PATCH v3 01/11] aarch64: Avoid -Wincompatible-pointer-types warning in Linux unwinder In-Reply-To: Message-ID: <6a18b92d17c1b465ebf6b4d6f94ee9050c49feac.1700473918.git.fweimer@redhat.com> References: X-From-Line: 6a18b92d17c1b465ebf6b4d6f94ee9050c49feac Mon Sep 17 00:00:00 2001 Date: Mon, 20 Nov 2023 10:55:49 +0100 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.5 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: 1783076431769017177 X-GMAIL-MSGID: 1783076431769017177 * config/aarch64/linux-unwind.h (aarch64_fallback_frame_state): Add cast to the expected type in sc assignment. --- libgcc/config/aarch64/linux-unwind.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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