https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89589
Bug ID: 89589
Summary: [8.3 regression] "asm volatile (" leads to "expected
'(' before
Product: gcc
Version: 8.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: eb at emlix dot com
Target Milestone: ---
tee >> JITStubs.cpp << EOF
#define SYMBOL_STRING(name) #name
asm volatile (
".text\n"
".globl " SYMBOL_STRING(ctiTrampoline) "\n"
SYMBOL_STRING(ctiTrampoline) ":" "\n"
"pushq %rbp" "\n"
"popq %rbp" "\n"
"ret" "\n"
);
EOF
x86_64-unknown-linux-gnu-g++ -c -pipe -O2 -o JITStubs.o JITStubs.cpp
+JITStubs.cpp:3:5: error: expected '(' before 'volatile'
+ asm volatile (
+ ^~~~~~~~
+ (
+JITStubs.cpp:4:1: error: expected unqualified-id before string constant
+ ".text\n"
+ ^~~~~~~~~
+JITStubs.cpp:3:15: error: expected ')' before string constant
+ asm volatile (
+ ~^
+ )
+ ".text\n"
+ ~~~~~~~~~