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

Unified Diff: lss/linux_syscall_support.h

Issue 300923005: Fix literal-suffix warning when using GCC 4.8 (Closed) Base URL: https://linux-syscall-support.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lss/linux_syscall_support.h
diff --git a/lss/linux_syscall_support.h b/lss/linux_syscall_support.h
index f790bfacd405cc785c93b68160432ec8aa298ac0..4a3c7570f238e45a690cdd05d0ff8c963f971fc0 100644
--- a/lss/linux_syscall_support.h
+++ b/lss/linux_syscall_support.h
@@ -1613,29 +1613,30 @@ struct kernel_statfs {
void (**entrypoint)(void);
asm volatile(".bss\n"
".align 8\n"
- ".globl "SYS_SYSCALL_ENTRYPOINT"\n"
- ".common "SYS_SYSCALL_ENTRYPOINT",8,8\n"
+ ".globl " SYS_SYSCALL_ENTRYPOINT "\n"
+ ".common " SYS_SYSCALL_ENTRYPOINT ",8,8\n"
".previous\n"
/* This logically does 'lea "SYS_SYSCALL_ENTRYPOINT", %0' */
"call 0f\n"
"0:pop %0\n"
"add $_GLOBAL_OFFSET_TABLE_+[.-0b], %0\n"
- "mov "SYS_SYSCALL_ENTRYPOINT"@GOT(%0), %0\n"
+ "mov " SYS_SYSCALL_ENTRYPOINT "@GOT(%0), %0\n"
: "=r"(entrypoint));
return entrypoint;
}
#define LSS_ENTRYPOINT ".bss\n" \
".align 8\n" \
- ".globl "SYS_SYSCALL_ENTRYPOINT"\n" \
- ".common "SYS_SYSCALL_ENTRYPOINT",8,8\n" \
+ ".globl " SYS_SYSCALL_ENTRYPOINT "\n" \
+ ".common " SYS_SYSCALL_ENTRYPOINT ",8,8\n" \
".previous\n" \
/* Check the SYS_SYSCALL_ENTRYPOINT vector */ \
"push %%eax\n" \
"call 10000f\n" \
"10000:pop %%eax\n" \
"add $_GLOBAL_OFFSET_TABLE_+[.-10000b], %%eax\n" \
- "mov "SYS_SYSCALL_ENTRYPOINT"@GOT(%%eax), %%eax\n"\
+ "mov " SYS_SYSCALL_ENTRYPOINT \
+ "@GOT(%%eax), %%eax\n" \
"mov 0(%%eax), %%eax\n" \
"test %%eax, %%eax\n" \
"jz 10002f\n" \
@@ -1907,10 +1908,10 @@ struct kernel_statfs {
void (**entrypoint)(void);
asm volatile(".bss\n"
".align 8\n"
- ".globl "SYS_SYSCALL_ENTRYPOINT"\n"
- ".common "SYS_SYSCALL_ENTRYPOINT",8,8\n"
+ ".globl " SYS_SYSCALL_ENTRYPOINT "\n"
+ ".common " SYS_SYSCALL_ENTRYPOINT ",8,8\n"
".previous\n"
- "mov "SYS_SYSCALL_ENTRYPOINT"@GOTPCREL(%%rip), %0\n"
+ "mov " SYS_SYSCALL_ENTRYPOINT "@GOTPCREL(%%rip), %0\n"
: "=r"(entrypoint));
return entrypoint;
}
@@ -1918,10 +1919,10 @@ struct kernel_statfs {
#define LSS_ENTRYPOINT \
".bss\n" \
".align 8\n" \
- ".globl "SYS_SYSCALL_ENTRYPOINT"\n" \
- ".common "SYS_SYSCALL_ENTRYPOINT",8,8\n" \
+ ".globl " SYS_SYSCALL_ENTRYPOINT "\n" \
+ ".common " SYS_SYSCALL_ENTRYPOINT ",8,8\n" \
".previous\n" \
- "mov "SYS_SYSCALL_ENTRYPOINT"@GOTPCREL(%%rip), %%rcx\n" \
+ "mov " SYS_SYSCALL_ENTRYPOINT "@GOTPCREL(%%rip), %%rcx\n" \
"mov 0(%%rcx), %%rcx\n" \
"test %%rcx, %%rcx\n" \
"jz 10001f\n" \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698