summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
Diffstat (limited to 'missing')
-rw-r--r--missing/explicit_bzero.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/missing/explicit_bzero.c b/missing/explicit_bzero.c
index f140acb374..c89bdbc0a8 100644
--- a/missing/explicit_bzero.c
+++ b/missing/explicit_bzero.c
@@ -7,6 +7,15 @@
Linux has none. *Sigh*
*/
+/*
+ * Following URL explain why memset_s is added to the standard.
+ * http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1381.pdf
+ */
+
+#ifdef __GNUC__
+#pragma GCC optimize ("O0")
+#endif
+
#ifndef HAVE_EXPLICIT_BZERO
/* Similar to bzero(), but have a guarantee not to be eliminated from compiler
optimization. */