mprof and new systems..

Pietro Cerutti gahr at FreeBSD.org
Tue Aug 26 16:17:46 UTC 2008


-----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 at 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-----


More information about the freebsd-current mailing list