From patchwork Fri Aug 2 13:21:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1968361 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=a9cxaSG7; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wb61q6Vklz1yZl for ; Fri, 2 Aug 2024 23:22:07 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C8E373858D3C for ; Fri, 2 Aug 2024 13:22:05 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 7EEB83858D20 for ; Fri, 2 Aug 2024 13:21:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7EEB83858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7EEB83858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722604910; cv=none; b=ItL0n+pKzslJZCQHhRYf61VJF8fxydZfG5xMQiuuj1LQbjwLOWff7jz5QksRVPtOy1IbwlkzrhSgAseSxe8IsEQzLobb3SlwDWeo0F67pvEodrjUaGDNriUlNC8RuX9ic0MSZE9yNXYGhXC6j5iJH3T92WcaBJ0HQ+GYzFIxCTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722604910; c=relaxed/simple; bh=iTNM8iMbCz8S+JQ+6LurBMWL5sQwIwkaK9MVyfkZWAc=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=vwU18zzSovc4dV7Ql65pAi2hEzffjDnEPgL1VyrK5GezzX88wkTOLgbH6l60YPYpjaIu47pM5v4Y6MEnwHKn/QqZDFAauU4B3Q/f5RxJBGrWvB3DdGl6vFJgeNWGBFy5vDYSixhQ/b+2jQXekVakojb314F429nsly1TcNYt4s8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722604909; 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; bh=H8LzUSWAdv2wD9g71wwbRrYVveYXhU+cbpbgw5KOSOU=; b=a9cxaSG7eQgnbYJsD4NnlvuyfF+V1m0g0CX4q/3mBXCFCgNpw67yCDkEk4hH7aZKirQrD0 g/9fC7+00XbnedFBmzpGz1Mbp8NyLj7/mVMzKLkJ/DvJmdb/6JFkitlLkmaoSJJI1OP+gM yfNG6TxrRmCJBmIa+i04LTqPTzllFfU= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-281-Q_MqWP_cMBeiZMd-NRrhKg-1; Fri, 02 Aug 2024 09:21:47 -0400 X-MC-Unique: Q_MqWP_cMBeiZMd-NRrhKg-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 37D901955F69 for ; Fri, 2 Aug 2024 13:21:47 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.139]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E4C0F300018D; Fri, 2 Aug 2024 13:21:45 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Cc: carlos@redhat.com Subject: [PATCH 0/4] Turn on -Wimplicit-fallthrough Message-ID: X-From-Line: 2a5b17ba992abd2311da130c18a531f89c21ee79 Mon Sep 17 00:00:00 2001 Date: Fri, 02 Aug 2024 15:21:42 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org This causes the build to fail if there is a switch/case fallthrough. Tested on x8_64-linux-gnu. Built with build-many-glibcs.py (except for sparcv8-linux-gnu-leon3 due to its unrelated failure). Thanks, Florian Florian Weimer (4): x86: Add missing switch/case fall-through markers to init_cpu_features x86: Tunables may incorrectly set Prefer_PMINUB_for_stringop (bug 32047) nss: Fix incorrect switch fall-through in tst-nss-gai-actions Turn on -Wimplicit-fallthrough by default if available Makeconfig | 3 +++ config.make.in | 1 + configure | 12 ++++++++++++ configure.ac | 10 ++++++++++ nss/tst-nss-gai-actions.c | 1 + sysdeps/x86/cpu-features.c | 2 ++ sysdeps/x86/cpu-tunables.c | 1 + 7 files changed, 30 insertions(+) base-commit: fb507de8fcd0124ff8b2eb483701899d78f6cc7e