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

Unified Diff: sandbox/linux/seccomp/trusted_thread.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/sandbox.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp/trusted_thread.cc
===================================================================
--- sandbox/linux/seccomp/trusted_thread.cc (revision 29794)
+++ sandbox/linux/seccomp/trusted_thread.cc (working copy)
@@ -586,7 +586,7 @@
:
: "g"(&args)
: "rax", "rcx", "rdx", "rdi", "rsi", "r8", "r9", "r10", "r11", "r12",
- "r13", "r14", "r15"
+ "r13", "r14", "r15", "rsp", "memory"
#elif defined(__i386__)
struct user_desc u;
u.entry_number = (typeof u.entry_number)-1;
@@ -1197,7 +1197,7 @@
"pop %%ebx\n"
:
: "g"(&args)
- : "eax", "ecx", "edx", "edi", "esi"
+ : "eax", "ecx", "edx", "edi", "esi", "esp", "memory"
#else
#error Unsupported target platform
#endif
« no previous file with comments | « sandbox/linux/seccomp/sandbox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698