From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8983 invoked by alias); 26 May 2011 19:38:59 -0000 Received: (qmail 8974 invoked by uid 22791); 26 May 2011 19:38:58 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp-154-thursday.nerim.net (HELO maiev.nerim.net) (194.79.134.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 May 2011 19:38:44 +0000 Received: from hector.lesours (ours.starynkevitch.net [213.41.244.95]) by maiev.nerim.net (Postfix) with ESMTPS id 43B142E009; Thu, 26 May 2011 21:38:43 +0200 (CEST) Received: from glinka.lesours ([192.168.0.1]) by hector.lesours with smtp (Exim 4.76) (envelope-from ) id 1QPgNi-0007tb-0n; Thu, 26 May 2011 21:38:06 +0200 Date: Thu, 26 May 2011 21:56:00 -0000 From: Basile Starynkevitch To: Paul Koning Cc: Andi Kleen , Jakub Jelinek , Richard Guenther , Andrew Haley , "H.J. Lu" , Subject: Re: PATCH: Add pause intrinsic Message-Id: <20110526213748.fc5bf65b.basile@starynkevitch.net> In-Reply-To: References: <4DDD31C2.2010607@redhat.com> <4DDE55E0.2050908@redhat.com> <4DDE5B64.5070101@redhat.com> <20110526164639.GZ17079@tyan-ft48-01.lab.bos.redhat.com> <20110526173715.GD4065@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2011-05/txt/msg02101.txt.bz2 On Thu, 26 May 2011 13:48:13 -0400 Paul Koning wrote: > Relax? Weird. "Pause" is just as weird. It might be an ia32 instruction, > so as an ia32 builtin it is a reasonable name But if you want a generic > builtin, you need a name that actually has some plausible connection with > what it does, and neither "pause" nor "relax" do that. I still think that having a builtin which do a "compiler flush" that is which spill all registers to memory is useful, eg a builtin_compiler_flush() And I even think there is another reason to use it. If you are debugging a program compiled with -O2 -g, and if you know where there could be a bug or a fault, temporarily adding a call to that builtin_compiler_flush () would probably help the gdb debugger a lot. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***