Date: Wed, 3 Jun 2015 23:00:53 +0200 (CEST) From: Sebastian Huber <sebastian.huber@embedded-brains.de> To: Joerg Sonnenberger <joerg@britannica.bec.de> Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] timecounters: Fix timehand generation read/write Message-ID: <2023236942.13088.1433365253885.JavaMail.zimbra@embedded-brains.de> In-Reply-To: <20150603203228.GA9774@britannica.bec.de> References: <1433331966-27548-1-git-send-email-sebastian.huber@embedded-brains.de> <20150603203228.GA9774@britannica.bec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In my interpretation of the C standard this is implementation defined behav= iour. See also: https://gcc.gnu.org/onlinedocs/gcc/Volatiles.html ----- Joerg Sonnenberger <joerg@britannica.bec.de> schrieb: > On Wed, Jun 03, 2015 at 01:46:06PM +0200, Sebastian Huber wrote: > > The compiler is free to re-order load/store instructions to non-volatil= e > > variables around a load/store of a volatile variable. >=20 > This part is wrong. The *compiler* is not free to do such reorder. The > CPU may, as it doesn't really care about volatile. >=20 > Joerg > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber at embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2023236942.13088.1433365253885.JavaMail.zimbra>