From patchwork Wed Mar 1 11:36:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Yong <10walls@gmail.com> X-Patchwork-Id: 734171 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vYD1T0Z10z9s7r for ; Wed, 1 Mar 2017 22:36:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="wgws9/pV"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=JCvztZPfM3amHNsR6yngUNqin6B9TTcx9rqvgRQyKjjL295Zkd xf0XE2rCIGB4G3eiwU4DRVrzJUVu3pWBEp5u1EgqarxCF0WOw8c6iyEPNirEYmru uY3GAsmviIZZ3ZhFM4CV7miJSPA5YEbImdktXj8F1N5p8WFxZwE0CmGJY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=q1/F6+THDQG6H3etpyl3+aVKk+g=; b=wgws9/pVAh9/am11GHur dUPly5IPDlkmP9hBEz/qVV/fI1fkFFO9rNxTcD0kJhNQCo8Pt3WS48+0ZDxjFbc0 +/favC6dHEQMZmnQ+6coAX6xZRQ+WD1I09+ADV9bwDOFoErLZMwI6jzF36K9CZOV UCMvBxiaBm6Xtr2bc7V4H0o= Received: (qmail 53758 invoked by alias); 1 Mar 2017 11:36:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 53733 invoked by uid 89); 1 Mar 2017 11:36:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pg0-f51.google.com Received: from mail-pg0-f51.google.com (HELO mail-pg0-f51.google.com) (74.125.83.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 Mar 2017 11:36:33 +0000 Received: by mail-pg0-f51.google.com with SMTP id b129so19767412pgc.2 for ; Wed, 01 Mar 2017 03:36:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version; bh=qj7JTam5adsv9AyZ9qK+r4GdH4CApEYBh9If6qc0IpQ=; b=BI0mgA46ac8aS5rzIMYhOB8R1f78zV4wFVW2IELwsZJ6xhDCJNIUUeeoCFIePan8u4 yAWegeAxpVr+kk0+Vcf2AKLa/9oYMourguvfHSYGdjCTVTGcTHUZqHfp8cAOvQ3UQC9H Fk2HTHvXAgqyYsIqI2RBwDCBBMOoqcs99YUwZJkaROkEHpQTMbHGQC9dtmxmEFIMQcql u+42pYD0NxY1ExYXCHVHb3j/JKkLWu2ykVH8Ytc1mexqqYNzo0jN5CdXFcUfIxUxvlYT 29McRZ4PQQmpEvUgu/Shf43wT6hA2yZpkLUWyfSJnUw9ZBIamuqEsI9cTHRUFIB/i6WW onQA== X-Gm-Message-State: AMke39lwfDH8JYUyRlhyAgusS2wsHSnRmB2mFGJw6qbkmOS39HTbXquiQpzGJLvXp91WJA== X-Received: by 10.84.231.133 with SMTP id g5mr9651170plk.59.1488368191989; Wed, 01 Mar 2017 03:36:31 -0800 (PST) Received: from ?IPv6:2001:e68:4074:bc1f:f64d:30ff:fe63:5a5a? ([2001:e68:4074:bc1f:f64d:30ff:fe63:5a5a]) by smtp.gmail.com with ESMTPSA id 80sm10113867pgd.39.2017.03.01.03.36.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Mar 2017 03:36:31 -0800 (PST) To: Gcc Patch List Cc: NightStrike From: JonY <10walls@gmail.com> Subject: [PATCH] Suppress compiler warning in libgcc/unwind-seh.c Message-ID: Date: Wed, 1 Mar 2017 11:36:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 X-IsSubscribed: yes Patch OK? ChangeLog: * unwind-seh.c: Suppress warnings for RtlUnwindEx() calls. Index: libgcc/unwind-seh.c =================================================================== --- libgcc/unwind-seh.c (revision 245806) +++ libgcc/unwind-seh.c (working copy) @@ -221,7 +221,7 @@ test is that we're the target frame. */ if (ms_exc->ExceptionInformation[1] == (_Unwind_Ptr) this_frame) { - RtlUnwindEx (this_frame, ms_exc->ExceptionInformation[2], + RtlUnwindEx (this_frame, (PVOID) ms_exc->ExceptionInformation[2], ms_exc, gcc_exc, ms_orig_context, ms_disp->HistoryTable); abort (); @@ -313,7 +313,7 @@ ms_exc->ExceptionInformation[3] = gcc_context.reg[1]; /* Begin phase 2. Perform the unwinding. */ - RtlUnwindEx (this_frame, gcc_context.ra, ms_exc, + RtlUnwindEx (this_frame, (PVOID)gcc_context.ra, ms_exc, (PVOID)gcc_context.reg[0], ms_orig_context, ms_disp->HistoryTable); } @@ -365,7 +365,7 @@ ms_context.ContextFlags = CONTEXT_ALL; RtlCaptureContext (&ms_context); - RtlUnwindEx ((void *) gcc_exc->private_[1], gcc_exc->private_[2], + RtlUnwindEx ((void *) gcc_exc->private_[1], (PVOID)gcc_exc->private_[2], &ms_exc, gcc_exc, &ms_context, &ms_history); /* Is RtlUnwindEx declared noreturn? */