Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1367)

Unified Diff: sandbox/linux/seccomp/sandbox.cc

Issue 320008: Add assembly constraints to disable some overly aggressive GCC optimizations (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/linux/seccomp/linux_syscall_support.h ('k') | sandbox/linux/seccomp/trusted_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp/sandbox.cc
===================================================================
--- sandbox/linux/seccomp/sandbox.cc (revision 29794)
+++ sandbox/linux/seccomp/sandbox.cc (working copy)
@@ -329,6 +329,13 @@
".popsection\n"
"999:pop %0\n"
: "=g"(fnc)
+ :
+ : "memory"
+#if defined(__x86_64__)
+ , "rsp"
+#elif defined(__i386__)
+ , "esp"
+#endif
);
return fnc;
}
« no previous file with comments | « sandbox/linux/seccomp/linux_syscall_support.h ('k') | sandbox/linux/seccomp/trusted_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698