This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/69482] Writing through pointers to volatile not always preserved
- From: "wipedout at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Jan 2016 12:51:57 +0000
- Subject: [Bug rtl-optimization/69482] Writing through pointers to volatile not always preserved
- Auto-submitted: auto-generated
- References: <bug-69482-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69482
wipedout at yandex dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wipedout at yandex dot ru
--- Comment #2 from wipedout at yandex dot ru ---
I also found that this code
int x[4];
memset_s(x, 6);
also emits no writes. Is this because of undefined behavior or is it for any
other reason?