From patchwork Fri Jul 14 03:35:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 120207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2247202vqm; Thu, 13 Jul 2023 20:36:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDXL2vXvr/z9Qjz2WZ1GFTuJqNeouGvfXX5mKJMT6kPnsd9DEWByP4h6U4jC57FOyMzKUH X-Received: by 2002:a17:906:7397:b0:994:18c4:3303 with SMTP id f23-20020a170906739700b0099418c43303mr3052273ejl.18.1689305762678; Thu, 13 Jul 2023 20:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689305762; cv=none; d=google.com; s=arc-20160816; b=vWRGf4Y4NrzSikcR7/e0nznBgEPD9mwb2bYfinObZ27bINbJagNtp/3UWEpMKeNzxc wFf7ZkwlSKIUaabP0vyfH3GI7AzcI1jRyER5x6oAw5sasFkwn+sSnp4qeg5TQdLE5AJr yVqmZerV64T3AjtZrYxLaoE0rvBA1de4lnWbODTUDzwfqgRU9+uYCQTI5v1UPQos42vm Gn/U447YWtaVhlbj27LeoPEyxOjuFcvQ5jXtzabQ4FWEa1YBqWI0E+6QNhkJOgrsFgzb 7R5Q79gZD29pCcA8QQL2jTbmwKtaQQ1S39EpSLUKdHE1EtIw3OfuuHWvqg71Qhuwv06U jaJw== 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 :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=G4Fo+5af7DHDovP9rZZZiT9HkQgZqi7Bk8UnGd3yzKw=; fh=HNIqzTA9Dp00ovCAyCdXfuEvWDT00OlFxFRPLybXRis=; b=JuX1AIC5HJstv8fzGgSbIJ0j8w/NOd632THLSxX1Q+Tyu9NBC2gm9mKkt1L+CQ9pUr ODECrP1pPQ+Xaplqv06BTaYlEBD115EICooitnOlcRjBAEow5rc4EaM8hw3cd49O63/A 5VYph4Xu51cjelD416rrWp2EABQT8117ZP7mFBx6c0W2wnS2ZRB7KjuasUQI5Iib/WAy skhG00tIxPwcRprk9TDHDp81AcHMyH/zV1/d6kz+Ehn2hs/yZhm1+35kKjyr3SGnP4wV cGsj5Xh4PY1pVFwk7yrsiu2o9ZfmuLwzyUNccWAMUom1Z2Qyt7xJzSXri32DGBFlRzJ0 CMXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=VpFxz2dd; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c25-20020a170906529900b0099332d4ed30si8419911ejm.677.2023.07.13.20.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 20:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=VpFxz2dd; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 8075E3857B98 for ; Fri, 14 Jul 2023 03:36:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8075E3857B98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689305760; bh=G4Fo+5af7DHDovP9rZZZiT9HkQgZqi7Bk8UnGd3yzKw=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=VpFxz2ddXoC+n9OjSmDVKFKmO/M+8Z9gODT8fo1Na5kECWtHnWemfAmI5B42PjBKN kZ+bNIGTDvhPY3NN26I5ekYhE9nRNqfuGiLtJlg3iPw89pAcuD18z6iXiWLgHwzV8Z kq+6VulysOcUyD8f4n5Yf5NoTo65miuqyAmh2VCE= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id CBB863858422 for ; Fri, 14 Jul 2023 03:35:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CBB863858422 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-34637362297so6279985ab.2 for ; Thu, 13 Jul 2023 20:35:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689305751; x=1691897751; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G4Fo+5af7DHDovP9rZZZiT9HkQgZqi7Bk8UnGd3yzKw=; b=UHOPhj9gHgOXAuzHyjSKwaHfbcbCb9gvBGHLbSY97UkfmJJpm8298Pg6NYXkGXeZRh mJIN8XF4ypwM79MmjJQtz5ixvDGcGeRuWiPJjmErSy8R/BtGAf/FDnAkIKZIlrf8b036 DQA5hwVePRX4VGRI3Btd820MBJbe9W/OTJbSQ/LqAzcgVekFINZQRY4ananz7jMBfZ8P hKT0S8UTjebv63vc4vkie8nRJFSZzpm2H2I3UciJ7Yhpl88JaFKlSb90U9nxTgKxexjy IizpLwiHqMeKAp7NQkbaDyZYY4h+aJTqKoaQPmJ4zpWldcKaattfkLmV6XnwQ/ZJFL02 LtDQ== X-Gm-Message-State: ABy/qLaQSoCtmt4qz6P81eT+iZSKlJwWlkG7HEppYoF3Klx3IWNaPhob LWK6av4ExQZNU8y62cdc+L4AxhXdo7U= X-Received: by 2002:a92:130f:0:b0:346:58b5:9012 with SMTP id 15-20020a92130f000000b0034658b59012mr2929416ilt.16.1689305751313; Thu, 13 Jul 2023 20:35:51 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:5588:e1d7:5a7:3081]) by smtp.gmail.com with ESMTPSA id gz18-20020a17090b0ed200b00263dfe9b972sm251457pjb.0.2023.07.13.20.35.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 20:35:50 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 6C27E1142A51; Fri, 14 Jul 2023 13:05:48 +0930 (ACST) Date: Fri, 14 Jul 2023 13:05:48 +0930 To: binutils@sourceware.org Subject: Fix loongarch build with gcc-4.5 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3033.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771365479294947630 X-GMAIL-MSGID: 1771365479294947630 * loongarch-opc.c (loongarch_alias_opcodes): Don't trigger gcc-4.5 bug in handling of struct initialisation. diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c index c83e4810db1..2f02e33dbec 100644 --- a/opcodes/loongarch-opc.c +++ b/opcodes/loongarch-opc.c @@ -359,7 +359,7 @@ static struct loongarch_opcode loongarch_alias_opcodes[] = { 0x60000000, 0xfc0003e0, "bgtz", "r0:5,sb10:16<<2", 0, 0, 0, INSN_DIS_ALIAS }, /* blt zero, rd, offset */ { 0x64000000, 0xfc00001f, "bgez", "r5:5,sb10:16<<2", 0, 0, 0, INSN_DIS_ALIAS }, /* bge rj, zero, offset */ { 0x64000000, 0xfc0003e0, "blez", "r0:5,sb10:16<<2", 0, 0, 0, INSN_DIS_ALIAS }, /* bge zero, rd, offset */ - { 0 } /* Terminate the list. */ + { 0, 0, 0, 0, 0, 0, 0, 0 } /* Terminate the list. */ };