From owner-svn-src-all@freebsd.org Wed Feb 19 22:57:32 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B43D9247BBD; Wed, 19 Feb 2020 22:57:32 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48NCmD3J02z4TKG; Wed, 19 Feb 2020 22:57:32 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 4DB967C98; Wed, 19 Feb 2020 22:57:32 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f177.google.com with SMTP id r5so1515188qtt.9; Wed, 19 Feb 2020 14:57:32 -0800 (PST) X-Gm-Message-State: APjAAAWbOTC9wpbQxEd/QLZDwpKgmJD9ba7+uMTOchPc30xk7WpR1Ld1 ewmx8kXirVtmOgZ5JwPjBRgaDyzST4RFK0fDVDk= X-Google-Smtp-Source: APXvYqxTis2dhevulrwHbrq5SDiaJfphE2BUCEddL5I3VFvmoSHl1+lZSshhqbYC1z/Glrlj3QzFbSkiTspQ0Sb9yWw= X-Received: by 2002:aed:3f70:: with SMTP id q45mr23582715qtf.310.1582153051572; Wed, 19 Feb 2020 14:57:31 -0800 (PST) MIME-Version: 1.0 References: <202002192234.01JMYNxX084607@repo.freebsd.org> <20200219224900.GA108593@bec.de> In-Reply-To: <20200219224900.GA108593@bec.de> From: Kyle Evans Date: Wed, 19 Feb 2020 16:57:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r358133 - head/sys/vm To: Joerg Sonnenberger Cc: Jeff Roberson , src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2020 22:57:32 -0000 On Wed, Feb 19, 2020 at 4:49 PM Joerg Sonnenberger wrote: > > On Wed, Feb 19, 2020 at 10:34:23PM +0000, Jeff Roberson wrote: > > Author: jeff > > Date: Wed Feb 19 22:34:22 2020 > > New Revision: 358133 > > URL: https://svnweb.freebsd.org/changeset/base/358133 > > > > Log: > > Silence a gcc warning about no return from a function that handles every > > possible enum in a switch statement. I verified that this emits nothing > > as expected on clang. radix relies on constant propagation to eliminate > > any branching from these access routines. > > __builtin_unreachable() ? > We seem to call that __unreachable() to address compilers where it may not be defined, but it does seem to be the ideal way to handle it.