From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28F0FC43217 for ; Tue, 5 Apr 2022 12:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238158AbiDEMol (ORCPT ); Tue, 5 Apr 2022 08:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356944AbiDELPz (ORCPT ); Tue, 5 Apr 2022 07:15:55 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D416C546AC; Tue, 5 Apr 2022 03:37:05 -0700 (PDT) Received: from zn.tnic (p2e55dff8.dip0.t-ipconnect.de [46.85.223.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 642EC1EC02B9; Tue, 5 Apr 2022 12:37:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1649155020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aAiETv6NNGhLTTzIDJkzKivJQy7gSmYaJopESRTcDRQ=; b=F6XF/rJjfwXREbr0pfnpBYgpNjGCPYK6nNqwoTSXR6Gfdo/AZreDbP6b5t6kW4MpUzL89c XCX8+pyP9quh9tkkJ0KxtKIpPJIolvLGZdQnpaGnI+4Ewz5fgr2HHJTH8/tVuS57trpB3v JXBPpkUNIbGrrM98joAlAPTpsj4hG8Y= Date: Tue, 5 Apr 2022 12:36:58 +0200 From: Borislav Petkov To: Richard Biener Cc: linux-toolchains@vger.kernel.org, Michael Matz , lkml Subject: Re: older gccs and case labels producing integer constants Message-ID: References: <7o5nn52-nqn1-oo13-s6o9-59r85r91o768@fhfr.qr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-toolchains@vger.kernel.org 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? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette