From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id A3267386F430 for ; Thu, 28 May 2020 11:41:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A3267386F430 Received: by mail-pf1-x42d.google.com with SMTP id 131so5054622pfv.13 for ; Thu, 28 May 2020 04:41:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=+9bQ+sooambB57ytPDaEZyDktHCckDOmYUlKE38FjD0=; b=OFECxMUQrOjSjp8MxXdzo1K5hu03e5CmR1pHrEPxTJvnxqI4f7dNJdYec7QjKYy+a2 sMeqS4DsKo1qBy88jKTijJkZbXC8McQbXUaCU0JqXLbHU5yDrPNUqE3+PMr1y9k3TYpt ZuE/YQR0yDJqf8whv2h1sMND3SNAxEbq87KrOIIffIYlNNpxfcgPMpG/lDEBmzRqwqGC rykzD+aZkkqltA+HvCWZlZA6bDO7WfiriY3vf9oHx/5aaIHpPTBAxzdrROD1RKlCwb5I 1O5psZSoMqAOuNZ6oqsHVDRY7by9Kejh3dsO+QlkdfGBtPtXxFppZdAd/Ht0PZWVrrtT 26TA== X-Gm-Message-State: AOAM532ovPjb1SSSPxKqKUFmzfQh1nCl+bCZO2J+QzBKpEQSIqGyXtI8 Pxww8lLpqflKBLi7AZtYowLSQCeSfSc= X-Google-Smtp-Source: ABdhPJyluqVHmPKyCvmc6nhitKJhTJyNQYOoDowN5RWgPPNqUz6R+tc+KPOheaotmN0hDxq2+1NwDA== X-Received: by 2002:a63:7407:: with SMTP id p7mr2637492pgc.268.1590666069401; Thu, 28 May 2020 04:41:09 -0700 (PDT) Received: from bubble.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id p10sm4267979pgh.61.2020.05.28.04.41.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 04:41:08 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 439A680D07; Thu, 28 May 2020 21:11:05 +0930 (ACST) Date: Thu, 28 May 2020 21:11:05 +0930 From: Alan Modra To: binutils@sourceware.org Subject: PR26044, Some targets can't be compiled with GCC 10 (tilepro) Message-ID: <20200528114105.GD5475@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-14.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Thu, 28 May 2020 11:41:11 -0000 Since this value is used in fields of type tilepro_pipeline (as NO_PIPELINE, see tc-tilepro.c) it is appropriate to put it in the tilepro_pipelen enum. This avoids a warning about converting from one enum type to another. PR 26044 * opcode/tilepro.h (TILEPRO_NUM_PIPELINE_ENCODINGS): Move to tilepro_pipeline enum. diff --git a/include/opcode/tilepro.h b/include/opcode/tilepro.h index 511df96a44..1c2d399df4 100644 --- a/include/opcode/tilepro.h +++ b/include/opcode/tilepro.h @@ -1412,6 +1412,7 @@ typedef enum TILEPRO_PIPELINE_Y0, TILEPRO_PIPELINE_Y1, TILEPRO_PIPELINE_Y2, + TILEPRO_NUM_PIPELINE_ENCODINGS } tilepro_pipeline; #define tilepro_is_x_pipeline(p) ((int)(p) <= (int)TILEPRO_PIPELINE_X1) @@ -1432,9 +1433,6 @@ enum /* Maximum number of instructions in a bundle (2 for X, 3 for Y). */ TILEPRO_MAX_INSTRUCTIONS_PER_BUNDLE = 3, - /* How many different pipeline encodings are there? X0, X1, Y0, Y1, Y2. */ - TILEPRO_NUM_PIPELINE_ENCODINGS = 5, - /* Log base 2 of TILEPRO_BUNDLE_SIZE_IN_BYTES. */ TILEPRO_LOG2_BUNDLE_SIZE_IN_BYTES = 3, -- Alan Modra Australia Development Lab, IBM