From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3779 invoked by alias); 5 Dec 2019 22:37:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 3052 invoked by uid 89); 5 Dec 2019 22:37:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=card, eyes X-HELO: mail-wr1-f65.google.com Received: from mail-wr1-f65.google.com (HELO mail-wr1-f65.google.com) (209.85.221.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Dec 2019 22:37:46 +0000 Received: by mail-wr1-f65.google.com with SMTP id c14so5622168wrn.7; Thu, 05 Dec 2019 14:37:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g7F1VHjcDVjc6akgJ54uE/vO+GWwsC296+7dRGZN8+Q=; b=H+KHyfsfR4J52wUmeVIrhzMGOU7FYCJeR9p5DI2Jdb1wSYxv+lE+k7f2wRr6xx37ib Fs5jbPm1S0VTbwn8SCwPw+u+pbxjvU4kPmd47ZOtW2mvUBHP4Dv+up9TyMDa8y2pZK0z r/kRwiHYqYTkeZiqwGliG17uyStadzD3aYGxP6XafmifHxbCktCZxXEg0shmvbgiWj6T aClCbpXI3PyXBtXWEdxeEcEy6Wa9Hwfa+5Hmpj11rkd1lFBf0S8t0AuMs+Y0jz+zYtE0 0Rzt2NHyza/1qe+FOio7suPZN/948Zt/X5krz+QvBd3WV5nnkjarxdOCl//DUpte3vW8 l4gg== MIME-Version: 1.0 References: <8be82276-81b1-817c-fcd2-51f24f5fe2d2@codesourcery.com> <20191205151515.GS10088@tucnak> <87lfrq6ahm.fsf@euler.schwinge.homeip.net> <20191205200650.GI3152@gate.crashing.org> <20191205221939.GN3152@gate.crashing.org> In-Reply-To: <20191205221939.GN3152@gate.crashing.org> From: Jonathan Wakely Date: Thu, 05 Dec 2019 22:37:00 -0000 Message-ID: Subject: Re: [RFC] Characters per line: from punch card (80) to line printer (132) (was: [Patch][OpenMP/OpenACC/Fortran] Fix mapping of optional (present|absent) arguments) To: Segher Boessenkool Cc: Michael Matz , Thomas Schwinge , "gcc@gcc.gnu.org" , gcc-patches , "fortran@gcc.gnu.org List" Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-12/txt/msg00389.txt.bz2 On Thu, 5 Dec 2019 at 22:19, Segher Boessenkool wrote: > Or you could write > > auto __c = (__builtin_memcmp(&*__first1, &*__first2, __len) <=> 0); > if (__c) > return __c; > > which is much easier to read, to my eyes anyway. And it is exactly the > same for the compiler. In this case yes, but not in general. Given: auto x = foo(); if (bar(x)) { } some_type y; The destructor of x won't run until after y has been destroyed. That's not at all identical to: if (auto x = foo(); bar(x)) { } some_type y; Please don't try to tell me how C++ works :-)