]> git.ipfire.org Git - thirdparty/glibc.git/commit
More aggressively prevent a buffer from being optimized out
authorShu-Chun Weng <scw@google.com>
Mon, 3 May 2021 23:12:44 +0000 (16:12 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:06 +0000 (17:26 -0700)
commitdf64d523104d05a17c9ef66345077154588a5424
tree267825fc544f193c8812c17c9592a766e7df80ee
parenta21d58a0dcd816bd97b9de328ad1870cc7098d9b
More aggressively prevent a buffer from being optimized out

The volatile global variable was first introduced in e86f9654c. I have
noticed the compiler still optimizing the buffer out on AArch64
presumably because the assignment is after all other observable
behaviors so it's still valid to eliminate it.
string/tst-xbzero-opt.c