From patchwork Tue Jul 11 09:38:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 118371 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp354021vqm; Tue, 11 Jul 2023 02:40:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPbTplLehmuGRKNJgVWQPDkQ6/SfeGYggdzRoDvko5pISEI+Lwymwmx5SqxecEFzW2rp7O X-Received: by 2002:a17:906:5307:b0:994:758:fa4a with SMTP id h7-20020a170906530700b009940758fa4amr5263599ejo.46.1689068418813; Tue, 11 Jul 2023 02:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689068418; cv=none; d=google.com; s=arc-20160816; b=jqOJqFCXwxBYgqzmD+6YIt2izErnsb9TwSJUi3IsKkeQ9Tu/CoS/K69dQvCbD/h9eM Qbk3ZF62qL5x9doo1eymRXNxrA+gip+WDK1ThcZaCs4T2hgpvKAX787Ptn+xgq4m2GSI 8g3LliX2bZK7t6t2VzMbFigUjx1DTcGs4IAHoJ+2lAjakv80/0INvUDtkcz5TlesuaFk 8iJGSrje3AwV2Rgl+HUOOPt4Z5GeB4UB9kuwJV48Bj2Va3Gk0AHUpUgH+dvV+04yJ0mr d+G3w5qcpb4frcb0CP/XJiuStPZnn5WlHxTBDa5aZ7g+X8dM3IkN8ST8XQkzqsANxFhB 7MVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:subject:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=hAZ3+l4aqo6tRRFvK6jqrFNLRFZObf2T3ZHeRo7uwRo=; fh=41Jd4gXEdp8RTPlluDRE3c11GGV4DWL61bXnhTaoXBQ=; b=wTg2RhvZPzbwb8vgoGOE2LHtas6++jAI6Y/vozTTsdh4XP31ujVlZP70+PQ8Ranp+K K0gJqv8h8vcZtYdpDVeDb5ZvsDZRbVS/iMYhIWRb8kR8gP/2a9jrCNy86C7e4nYCERNs zubGTEqVgLLtXLJj+qVjEAsYJKUJIfv3maOuKPqlNgKmTPHBI3ICnK+vb67XlbkoCwFC LZwK0qm50l9O3L5VvXiK5+vHZsO/Pur9p8QJOFejTVa8VvNwkEEyxvYPTFPwLbw8kUwL z6gGY7/q+u6g973ZcbMf0JR5iept2GXTZ7zYGcPiPndF04K6BkVw2vEStf/nbk8vYYbV DkQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=UgLei0gs; 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=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id lg5-20020a170906f88500b0098e48ad11e8si2312553ejb.902.2023.07.11.02.40.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 02:40:18 -0700 (PDT) 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=@gcc.gnu.org header.s=default header.b=UgLei0gs; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C0513855586 for ; Tue, 11 Jul 2023 09:40:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C0513855586 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689068400; bh=hAZ3+l4aqo6tRRFvK6jqrFNLRFZObf2T3ZHeRo7uwRo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=UgLei0gsi8JacVrz2kllDOzbXPReu5v7FWX8gOoM2+mvqzOj87DOgVgVGx65PPnTH UhjH9Mf62Qoce9hmqypp+qIyRY0kS7dUkWDs4dlrLBvdPq+YdNHgDBPgDg3tNmyS0k 6EKh654ZD9mvgUXUhoNfOeBm/731+fat4xbOl1UU= 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 3624D385773F for ; Tue, 11 Jul 2023 09:38:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3624D385773F Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-522-C7s0iTKZOoCEWA-ayp5hDA-1; Tue, 11 Jul 2023 05:38:36 -0400 X-MC-Unique: C7s0iTKZOoCEWA-ayp5hDA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 631C33C025C5 for ; Tue, 11 Jul 2023 09:38:36 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE2064CD0C6 for ; Tue, 11 Jul 2023 09:38:35 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH] csky: Fix -Wincompatible-pointer-types warning during libgcc build Date: Tue, 11 Jul 2023 11:38:34 +0200 Message-ID: <87v8eqdbz9.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.9 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_H4, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Gcc-patches From: Florian Weimer Reply-To: Florian Weimer Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771116606523443741 X-GMAIL-MSGID: 1771116606523443741 libgcc/ * config/csky/linux-unwind.h (csky_fallback_frame_state): Add missing cast. --- libgcc/config/csky/linux-unwind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/config/csky/linux-unwind.h b/libgcc/config/csky/linux-unwind.h index 66b2a44e047..1acef215974 100644 --- a/libgcc/config/csky/linux-unwind.h +++ b/libgcc/config/csky/linux-unwind.h @@ -75,7 +75,7 @@ csky_fallback_frame_state (struct _Unwind_Context *context, siginfo_t info; ucontext_t uc; } *_rt = context->cfa; - sc = &(_rt->uc.uc_mcontext); + sc = (struct sigcontext *) &(_rt->uc.uc_mcontext); } else return _URC_END_OF_STACK;