i386: Fix up x86_function_profiler -masm=intel support [PR114094]
commit6987f16742bd4fc6bb8118b9efde52fb9169b327
authorJakub Jelinek <jakub@redhat.com>
Mon, 26 Feb 2024 06:30:05 +0000 (26 07:30 +0100)
committerJakub Jelinek <jakub@redhat.com>
Mon, 26 Feb 2024 06:30:05 +0000 (26 07:30 +0100)
treeeb2d2c3f5c32f473afb5a5102a8b538e5f71594f
parent4972f97a265c574d51e20373ddefd66576051e5c
i386: Fix up x86_function_profiler -masm=intel support [PR114094]

In my r14-8214 changes I apparently forgot one \n at the end of an instruction.
The corresponding AT&T line looks like:
"1:\tcall\t*%s@GOTPCREL(%%rip)\n"
but the Intel variant was
"1:\tcall\t[QWORD PTR %s@GOTPCREL[rip]]"

Fixed thusly.

2024-02-26  Jakub Jelinek  <jakub@redhat.com>

PR target/114094
* config/i386/i386.cc (x86_function_profiler): Add missing new-line
to printed instruction.

* gcc.target/i386/pr114094.c: New test.
gcc/config/i386/i386.cc
gcc/testsuite/gcc.target/i386/pr114094.c [new file with mode: 0644]