Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp942504pxb; Wed, 6 Apr 2022 04:58:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcBIU1AiUePEhVt0RgVORtfAzQcNQMFfr7tsRqH/9WGau4AjbaXkG+btyoRphGW978e9a0 X-Received: by 2002:a17:90b:3e88:b0:1c7:87e9:61ff with SMTP id rj8-20020a17090b3e8800b001c787e961ffmr9493687pjb.234.1649246313635; Wed, 06 Apr 2022 04:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246313; cv=none; d=google.com; s=arc-20160816; b=eznX52XTFADW6ZlUr/QvTggvBPW0vSVfrvN+LjANdRwIyc0mVCiRECgG0OYJ4Ip6PZ MGEVc0hyp2qBxsQW5WwDmgcOMptbU0MYXAVYyV8QO4crRqZk/ClbqRluiwrjSXtK++rE GJ3FA1UqwdniYQ6L489R+bfC0x0YVEpYUrLY9C75wWuxP2r8zvmClWEekAU33+nN2Q0P pnmW4VxpQF1deK27DThUUbnRmKMaSJSWOVU1n7po2eTctDdM7mH0eZIn45qryOqisW7t gxE6RVWADEnmLEC8Og/GkoadUIbOm0IciM60WcYHRP6qJUfq0pbKKi1r2Zs79DXwg+qX Iidw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=DH5S/er9X11ZTTBEd8YblMTm3IG7JzpUoyr29PRpMNs=; b=iW0MNt18UmxwTHqwuqGqoxf3XMdlkfmAOnb8LA17Yzvq2vMJSz7lBlVyu6aTNUT5rP I0n8BljMahyp5mpQnTKgfMvCO9dKQC66h9AvpU5St8nNrpc6TCyz5OyFqJ2rlo6kFPom Nnwo5rgDdKU5uwt+B6wN8w4GRR+YMB0Y8CgUszE52RubFZTO6SnciLtytwwG5qEuURhy JdH1IfLCigNquZckI0jFPzES3cCD0gKtoOQqhdUXOo9LTI6srh+Dwqjbe5AoBr5rv0WG HvXe3Og5GNeG6ljISZ2X2FmNwc+qLvlGAuTy6PoJnh/i3sGVXWibPlQ5nO/TMdXRR2+T vFWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=VIf0HM2j; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q10-20020a056a00084a00b004fa8ece959esi16544457pfk.37.2022.04.06.04.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:58:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=VIf0HM2j; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A416965CB51; Wed, 6 Apr 2022 03:21:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1589150AbiDFASs (ORCPT + 99 others); Tue, 5 Apr 2022 20:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350074AbiDEJwk (ORCPT ); Tue, 5 Apr 2022 05:52:40 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C3F4889C; Tue, 5 Apr 2022 02:50:42 -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 961E91EC03D2; Tue, 5 Apr 2022 11:50:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1649152237; 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: references; bh=DH5S/er9X11ZTTBEd8YblMTm3IG7JzpUoyr29PRpMNs=; b=VIf0HM2jX1YdtVb5hTAEgk5DFZTyEuqB0Pr2VtXo15eB3Lg0QQ7MuRjsaRQs136zI4aywp bSprUvF1W0ywkt8M/DAHxjVwZ+OtKoJp/xTcidpsqD7LVltVOQHQBZxqKj78+xD2NEhT1J QCKGfo65e4Bz0Y2TF92Xu4qJHDWsF9A= Date: Tue, 5 Apr 2022 11:50:35 +0200 From: Borislav Petkov To: linux-toolchains@vger.kernel.org Cc: Michael Matz , Richard Biener , lkml Subject: older gccs and case labels producing integer constants Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Hi folks, I'm starting to see failures like this on allmodconfig builds: sound/usb/midi.c: In function ‘snd_usbmidi_out_endpoint_create’: sound/usb/midi.c:1389:2: error: case label does not reduce to an integer constant case (((0xfc08) << 16) | (0x0101)): ^~~~ (The case statement is a macro but it evaluates to what I have there) and that thing fails with $ gcc --version gcc (SUSE Linux) 7.5.0 although it doesn't have any problems building with newer compilers. I'm presuming older gccs consider those case statements signed ints and the following fixes it: case ((((unsigned int)0xfc08) << 16) | (0x0101)): and I guess we can whack the couple of occurrences but what I'm wondering is why does this work with newer gccs? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette