Message ID | 9375ae85-ac76-2081-547d-55803c97aadf@suse.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2824573vqo; Tue, 4 Apr 2023 00:02:54 -0700 (PDT) X-Google-Smtp-Source: AKy350ZRfZEeOPeXb3JO0khPwfBk15qljbRCdlBXLN2WMO6vSeS+BRPiqfkZkx9mTBhAICYEi6gT X-Received: by 2002:a17:906:694d:b0:948:eed:b4e0 with SMTP id c13-20020a170906694d00b009480eedb4e0mr1135447ejs.61.1680591774468; Tue, 04 Apr 2023 00:02:54 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id n12-20020a1709065e0c00b0093b064e5934si2376981eju.464.2023.04.04.00.02.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 00:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.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=@sourceware.org header.s=default header.b=a5juEX3J; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 571F03858428 for <ouuuleilei@gmail.com>; Tue, 4 Apr 2023 07:01:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 571F03858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680591705; bh=dpVMGXSR2ipOx3PZZxY0GsZG+YRNz5py2XFbFg2D3sQ=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=a5juEX3JYfTTm0Vu/4GJgSGWnuKz4WqbVhbt2kpx70hNqAADmoArGyK6nHRU/R56n gm7N1/uoIsopqeh8DI4oGXaC/6Uks2MWZ2oeUDDpSk3FWGqu4ad9Lyh1s00+7Q9/jT Oq8ijWXlqFXVX8hAOWsmubcDaA65vHkHVR1PFSJQ= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2046.outbound.protection.outlook.com [40.107.241.46]) by sourceware.org (Postfix) with ESMTPS id D06EE3853D30 for <binutils@sourceware.org>; Tue, 4 Apr 2023 07:01:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D06EE3853D30 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X3XvyUcHs+fgOqovV8Z/Jg5mM/OjLoX/68vvERjS9U8SLhUYJXpFmx1b6+1VrLnJ0+udmGjchEJjo7KOWbc6UoqwaukFeKPX4gkrbOXgT5epGubznmqHFlBo1zaxyF6uH29M4wJRU/8FT9xo3i64P5agJ+nVVaijwi+u8xh7yfkigN6n80FHS00ku4iGOQsLK+WzU/y6ZWU4Ijyqc8EyvkFLP0B6u2CcYb+Ymem01TMGG/q5cY7gJpRcXnokGrKqGXunFNEXnFhvXaRZ07Q1zEv/eRquUakPReWAQ2hL7eYaPKihzigCd7CRAe8Ei+9gvOvB46pn8rXWiw2A3Ht8kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dpVMGXSR2ipOx3PZZxY0GsZG+YRNz5py2XFbFg2D3sQ=; b=FaLHJQOrXq84suX3cbpSl/4DqKDaEgCJ7PRxInvPnw99iAGalnbdT/32zfH+/BX14jvPvXiwvyVsmeKSf25OTP0nIydoYU2WJbcpM8mwld9rMZ6wm6ozn5kWrsVkhMd1G+lskQn7+B2Jvxx3BaMrYhh0aby7NyR+3Dy4XFTc2QzjxVXArLt6NcB18emmYeXp1R5Xr62HPixFDO5pybPzSvamh2gH6Co8Zgitirbjwy6W807izMole/IbfHZZJtDB032Y7SHookTR7EtY15gGMpRkVTtQSAvxxLJVI/EymwXUsUJtS3uor2vYLV1AUp55UzWagmQGpG6cCrcVkvUj5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by AS8PR04MB8609.eurprd04.prod.outlook.com (2603:10a6:20b:424::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.35; Tue, 4 Apr 2023 07:01:05 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::154e:166d:ec25:531b]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::154e:166d:ec25:531b%6]) with mapi id 15.20.6254.035; Tue, 4 Apr 2023 07:01:05 +0000 Message-ID: <9375ae85-ac76-2081-547d-55803c97aadf@suse.com> Date: Tue, 4 Apr 2023 09:01:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: [PATCH 7/8] x86: drop use of setjmp() from disassembler Content-Language: en-US To: Binutils <binutils@sourceware.org> Cc: "H.J. Lu" <hjl.tools@gmail.com>, Alan Modra <amodra@gmail.com> References: <5dac45a8-cd5f-ee4d-52fc-7d283fc29ec4@suse.com> In-Reply-To: <5dac45a8-cd5f-ee4d-52fc-7d283fc29ec4@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0135.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9e::19) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|AS8PR04MB8609:EE_ X-MS-Office365-Filtering-Correlation-Id: 99328554-2e83-4c94-cf61-08db34da5c03 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nFgh6GeKlIDcuhQoG/V6ipzb4QqRnliynYy7KfClSvLWG3pGJg87esXYagtYRpOa6InUw6IBE+fEGFpESW8kuZZBscqlc4+AEKZbTUvTqH37zNc6AARjD1Yhykpxp3N7QcwzWTDQ/8uD81Ok5JOpdQWFp12t0OtoI38uO0TY1SWcTuMGRTHOSTYHToP/FL7xiAfGScyP4UTgGk4+z43I29EKOdt/CSObyJUHIhT969ePYW7qNALseRDaNwVTUw+sGU2ULPro23toF+JD6V2ppuZaHfc17vtaUUdr3x78efg30JbFyd8Xd+Keo31hO+hx4yRBO69YzEADdBiumBNkYGwb88RjLHRK9cxVyy87xQZNv9o0DDZtWtO4/MIZU0ESzznL1VTHv3aZEDwlY19TSrZ99TVLADXcuJfETcGvqrBIsDj3kwCnvp57JI8rWRUOrnOCtuC3EBhLaf1mJsd8eKMHDFnraBuQpWVepoxOPQb9UaZtCfo7NHCw5C8dU2tWtX1BQuzpR4esm88nIHmgV/hHycAlli/EPwK93N2EcuuuM5RoPnDMna5FEEjQAb9q+DteKf7hAjc7li2pmsNygGlJH4VYUCfzKb9R2WOXON0ZetQCRo87sbcSppkkZv+LesroaJAv9QklXvICIAKZQw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6560.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39860400002)(136003)(376002)(366004)(346002)(396003)(451199021)(31686004)(6486002)(54906003)(66476007)(66556008)(66946007)(8676002)(41300700001)(6916009)(4326008)(31696002)(36756003)(478600001)(316002)(86362001)(38100700002)(6506007)(6512007)(186003)(2616005)(8936002)(2906002)(5660300002)(26005)(4744005)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xhyq09WnHsDqU+RJhLBPctyKKfzN?= =?utf-8?q?o2HHF13G1oyUMHm6t3DSDlX4A1FIwfoSH4v0U/ehqdcWJH7j6SCFpARyVNCOVUqM7?= =?utf-8?q?LBvSc9BtyGMH16ECrTT8QB2XXtrpd6ifiSxdOD5d14jImgQGn4SvMuIOuTOl2R/GY?= =?utf-8?q?Rk5tC3OnDnpezTR2bP5wJi0+oYD2l1tPLr1m16yxeTw6ESaHKSMZz6m55dt51onfN?= =?utf-8?q?WPfHAwjJRt29TugSvmNWyU73cR4cW7t5z7Pc3uXiGtVablviI3Cv01l8ZI/MQgRVq?= =?utf-8?q?viUYQz1jnWCKHBs5SaOkHuSDz95OZl65FjvBPgvmcvF+pS7/G12h8l4EBJxw54hsJ?= =?utf-8?q?piv0ZidXwEgotPzKaPVKPzv2XiTIeLyuYubKu1Tg0WjYERoegNaYN9WURyQEBPD0w?= =?utf-8?q?KFPkBFyQAx71xPg1isf48/4NTXIWjVUJm7XslRplI+MOUNTfRuyAmCVud1qQXri/w?= =?utf-8?q?MghUrNm7iGGBVBDvTlHVbPv/Y9gjDcRz71cu5cGEPD0vqg3HvCF3wIaZhOA+4fDdV?= =?utf-8?q?PfzgTprg85vVsZ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D/hfL2sJAxwXhZ9xq01/vK8ATOqm76c+JBNrj0Q9YtjbhE8pIX0O?= =?utf-8?q?E7sQrCBq8fbUitYEQa3LedOhNLQtOMHtXk59FAlKBqrhV1AR+D1PPKaQCMjuCdN7d?= =?utf-8?q?Ir/tj87bfP60?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99328554-2e83-4c94-cf61-08db34da5c03 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2023 07:01:05.5869 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 73hGhZuZcMYMBavxFyoWrdKZVkK2IqmDAUEU+U0OjTiJ2i4dzLVOnKfAeqDAvBmmnRAUf3kbzFE8dbc6S7Uc/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8609 X-Spam-Status: No, score=-3028.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Jan Beulich via Binutils <binutils@sourceware.org> Reply-To: Jan Beulich <jbeulich@suse.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762228200285499826?= X-GMAIL-MSGID: =?utf-8?q?1762228200285499826?= |
Series |
x86: do away with (ab)using setjmp/longjmp for error handling
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Jan Beulich
April 4, 2023, 7:01 a.m. UTC
With the longjmp() uses all gone, the setjmp() isn't necessary anymore either.
--- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -39,7 +39,6 @@ #include "libiberty.h" #include "safe-ctype.h" -#include <setjmp.h> typedef struct instr_info instr_info; static bool dofloat (instr_info *, int); @@ -133,7 +132,6 @@ struct dis_private { bfd_byte the_buffer[MAX_MNEM_SIZE]; bfd_vma insn_start; int orig_sizeflag; - OPCODES_SIGJMP_BUF bailout; }; enum address_mode @@ -9842,9 +9840,6 @@ print_insn (bfd_vma pc, disassemble_info ins.op_out[i] = op_out[i]; } - if (OPCODES_SIGSETJMP (priv.bailout) != 0) - return fetch_error (&ins); - sizeflag = priv.orig_sizeflag; switch (ckprefix (&ins))