Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2008 18:16:57 +0200
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        freebsd-current@FreeBSD.ORG, julian@elischer.org
Subject:   Re: mprof and new systems..
Message-ID:  <48B42C79.8030906@FreeBSD.org>
In-Reply-To: <200806161408.m5GE89RR096948@lurza.secnetix.de>
References:  <200806161408.m5GE89RR096948@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48B42C79.8030906>