Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp958905pxb; Wed, 6 Apr 2022 05:20:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1OiU/5c5oD5QCjpihTFJWmHiIRt2TdJOfcHQRp/l1STpCQnScopbveLC4qH5S12jNbul3 X-Received: by 2002:a63:981a:0:b0:398:49ba:a65e with SMTP id q26-20020a63981a000000b0039849baa65emr6841620pgd.231.1649247607770; Wed, 06 Apr 2022 05:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247607; cv=none; d=google.com; s=arc-20160816; b=rRv2RWtmt7pfm7fHTHjLiIgroHDZ/n+ctA/7tTWk57sz2oWyOnzCC6Vc/5YwsZKTxI xns9Tj1MuqNP62thE/SJbGUbC0vvkPoEGoyGexCcAjBIwF2bIcrvA1tslKUkqYUwdSDC X+Z75FyTLinciZAUN7CPx122MzqCiSiGjllSTiPJdsmXwghzvmMNkwM8PzM4AoZNsIXn 90gHsrV3AwB3+f+WW0b1zwiBtHv2rhj2oESSNoctYj4eMiDh11Eu7Kslhn7pichMRXtM XzYOwi0OJpzWTRhZDvAx7CCmNS+Yez9JUha0CjNNTgYWsFG4Ypm7FEbKfao5FbIBleEs ZBYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=x/t3SjRnhPaSXevc9vrywYcQpK4eEOXAuLXInpS+vPM=; b=M78/KmdKX/KjoCT8kMO7deY/MddRQAllxHyn1cAtcYLE4vhOXGH6zY4gENH1pQ2wPG SQGIilnpsyvaGe6h4DjIty8B74/xmUkrO2DE7cL0eQelfp3+giEAHKtse3C2lBQET2B7 Q02yEMUhE5DsXmw3QEVllbOUZCAejWH1+OlMLBRMw3ftE3x9dWkLJ3XMZBeckhiEI9nQ U20mnYmIu5FWh4rKJSjO1slstRfF27rptWJBCRBoMdFPf5xL9yx/YSwvBKM2g2WpxSgk QU0cbaHenR6dR2zAvLId/Gbr1Ek/YHNDgoRRTPD0iAu5y3fd7r0niKcLfsVix3Be62xq SgVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=g5NkbI2U; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=tRp6stXV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q17-20020a656a91000000b003816043ef9dsi16891303pgu.402.2022.04.06.05.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:20:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=g5NkbI2U; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=tRp6stXV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A127F6D00E5; Wed, 6 Apr 2022 04:05:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1840609AbiDFBLW (ORCPT + 99 others); Tue, 5 Apr 2022 21:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384316AbiDEM1U (ORCPT ); Tue, 5 Apr 2022 08:27:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80CE91081; Tue, 5 Apr 2022 04:37:27 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 437051F745; Tue, 5 Apr 2022 11:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649158646; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=x/t3SjRnhPaSXevc9vrywYcQpK4eEOXAuLXInpS+vPM=; b=g5NkbI2Uzazs6PjANwf0oKp0CY8k/1d3EI+ZMtTjf4vt+uaq6mYDRabxyyYPsAc6BQ9ETo CgvrzD2MBCjEuVmeGDxKOQuBeIBUu1+wcQeF1Uc8CR4B8/YfsWGSuZk7DfLyuX6ppD+pQ9 399xQy4mm72wqT32d2nHWM59mkQsmr4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649158646; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=x/t3SjRnhPaSXevc9vrywYcQpK4eEOXAuLXInpS+vPM=; b=tRp6stXVdOFLRWkZCE2HKzJru0KgZXVn5CMQWw+qQWhAgcr0/CZatdQnQhqSnKqnTTlkUS RXwb0GWRr+Wa6oAw== Received: from murzim.suse.de (murzim.suse.de [10.160.4.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 3C8B8A3B88; Tue, 5 Apr 2022 11:37:26 +0000 (UTC) Date: Tue, 5 Apr 2022 13:37:26 +0200 (CEST) From: Richard Biener To: Borislav Petkov cc: linux-toolchains@vger.kernel.org, Michael Matz , lkml Subject: Re: older gccs and case labels producing integer constants In-Reply-To: Message-ID: References: <7o5nn52-nqn1-oo13-s6o9-59r85r91o768@fhfr.qr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1609908220-1109596832-1649158646=:27745" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1609908220-1109596832-1649158646=:27745 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Tue, 5 Apr 2022, Borislav Petkov wrote: > On Tue, Apr 05, 2022 at 12:06:45PM +0200, Richard Biener wrote: > > Wird auch mit gcc 11 rejected. Kanns sein dass mit gcc 7 andere > > compiler flags genommen werden? > > Found it: > > $ gcc -fsanitize=shift -c switch.c > switch.c: In function ‘foo’: > switch.c:10:7: error: case label does not reduce to an integer constant > case (((0xfc08) << 16) | (0x0101)):; > > $ gcc --version > gcc (SUSE Linux) 7.4.1 20190905 [gcc-7-branch revision 275407] > Copyright (C) 2017 Free Software Foundation, Inc. > > Something not fully backported? Probably early vs. late folding change in the frontend. So yes, don't use -fsanitize=... ;) Richard. -- Richard Biener SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany; GF: Ivo Totev; HRB 36809 (AG Nuernberg) ---1609908220-1109596832-1649158646=:27745--