x86, asm: Fix CFI macro invocations to deal with shortcomings in gas
authorJan Beulich <JBeulich@novell.com>
Tue, 19 Oct 2010 13:52:26 +0000 (14:52 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 19 Oct 2010 21:28:02 +0000 (14:28 -0700)
commit3234282f33b29d349bcada40204fc7c8fda7fe72
treed1855c5d9d8e6db25b72b17461da1459cd51fa71
parentd0ed0c32662e756e7daf85e70a5a27a9c1111331
x86, asm: Fix CFI macro invocations to deal with shortcomings in gas

gas prior to (perhaps) 2.16.90 has problems with passing non-
parenthesized expressions containing spaces to macros. Spaces, however,
get inserted by cpp between any macro expanding to a number and a
subsequent + or -. For the +, current x86 gas then removes the space
again (future gas may not do so), but for the - the space gets retained
and is then considered a separator between macro arguments.

Fix the respective definitions for both the - and + cases, so that they
neither contain spaces nor make cpp insert any (the latter by adding
seemingly redundant parentheses).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
LKML-Reference: <4CBDBEBA020000780001E05A@vpn.id2.novell.com>
Cc: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Kbuild
arch/x86/include/asm/calling.h
arch/x86/include/asm/entry_arch.h
arch/x86/include/asm/segment.h
arch/x86/kernel/asm-offsets_32.c
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_64.S