aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNick Desaulniers <[email protected]>2020-10-13 16:47:58 -0700
committerLinus Torvalds <[email protected]>2020-10-13 18:38:26 -0700
commita25c13b3aa1bdbf100e8770902c30908728f8410 (patch)
treead8781532e484b4b35525614b89c551e75a16be2 /tools/perf/scripts/python/bin
parentc8db3b0a7ba7614f761f309d6aa7499127b18a0b (diff)
compiler.h: avoid escaped section names
The stringification operator, `#`, in the preprocessor escapes strings. For example, `# "foo"` becomes `"\"foo\""`. GCC and Clang differ in how they treat section names that contain \". The portable solution is to not use a string literal with the preprocessor stringification operator. In this case, since __section unconditionally uses the stringification operator, we actually want the more verbose __attribute__((__section__())). Fixes: commit e04462fb82f8 ("Compiler Attributes: remove uses of __attribute__ from compiler.h") Signed-off-by: Nick Desaulniers <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Miguel Ojeda <[email protected]> Cc: Luc Van Oostenryck <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Arvind Sankar <[email protected]> Link: https://bugs.llvm.org/show_bug.cgi?id=42950 Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions