From owner-freebsd-current@FreeBSD.ORG Tue Aug 26 16:17:46 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C17BC1065680 for ; Tue, 26 Aug 2008 16:17:46 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 88C388FC0C for ; Tue, 26 Aug 2008 16:17:46 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from 80-218-191-31.dclient.hispeed.ch ([80.218.191.31] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KY1Ej-0001bI-E5; Tue, 26 Aug 2008 18:17:41 +0200 Message-ID: <48B42C79.8030906@FreeBSD.org> Date: Tue, 26 Aug 2008 18:16:57 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080807) MIME-Version: 1.0 To: freebsd-current@FreeBSD.ORG, julian@elischer.org References: <200806161408.m5GE89RR096948@lurza.secnetix.de> In-Reply-To: <200806161408.m5GE89RR096948@lurza.secnetix.de> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: mprof and new systems.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 16:17:46 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Oliver Fromme wrote: | Julian Elischer wrote: | > in addition, with -O2 it seems that the address of the variable | > may actually be wring if the optimiser never bothers to | > have the variable actually saved. | | Maybe I'm missing the obvious here, but you can prevent | the compiler from optimizing the variable by declaring | it as "volatile". Or by faking access to it through (void)&variable; | | Best regards | Oliver | - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAki0LHkACgkQwMJqmJVx94467ACfe4fXXTNqdlrTzAqjLxJ4Za+J 9y0AoKSli9OVUfS6z0/om9dONIRxKzkg =AF/u -----END PGP SIGNATURE-----