llvm-project/llvm/lib/MC/MCParser
Rainer Orth d9993484ee [Sparc] Don't use SunStyleELFSectionSwitchSyntax
As discussed in D85414 <https://reviews.llvm.org/D85414>, two tests
currently `FAIL` on Sparc since that backend uses the Sun assembler syntax
for the `.section` directive, controlled by
`SunStyleELFSectionSwitchSyntax`.

Instead of adapting the affected tests, this patch changes that default.
The internal assembler still accepts both forms as input, only the output
syntax is affected.

Current support for the Sun syntax is cursory at best: the built-in
assembler cannot even assemble some of the directives emitted by GCC, and
the set supported by the Solaris assembler is even larger: SPARC Assembly
Language Reference Manual, 3.4 Pseudo-Op Attributes
<https://docs.oracle.com/cd/E37838_01/html/E61063/gmabi.html#scrolltoc>.

A few Sparc test cases need to be adjusted. At the same time, the patch
fixes the failures from D85414 <https://reviews.llvm.org/D85414>.

Tested on `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D85415
2022-08-17 12:59:29 +02:00
..
AsmLexer.cpp [llvm] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 11:24:15 -07:00
AsmParser.cpp Revert "[MCParser] Use default member initialization (NFC)" 2022-06-18 21:02:09 -07:00
CMakeLists.txt [SystemZ][z/OS] Introduce initial support for GOFF asm parser 2021-10-01 10:29:14 -04:00
COFFAsmParser.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
COFFMasmParser.cpp [ms] [llvm-ml] Add support for nested PROC/ENDP pairs 2022-08-11 14:19:02 +00:00
DarwinAsmParser.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
ELFAsmParser.cpp [Sparc] Don't use SunStyleELFSectionSwitchSyntax 2022-08-17 12:59:29 +02:00
GOFFAsmParser.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
MCAsmLexer.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
MCAsmParser.cpp [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
MCAsmParserExtension.cpp Cleanup MCParser headers 2022-02-11 10:39:29 +01:00
MCTargetAsmParser.cpp
MasmParser.cpp [llvm] Qualify auto in range-based for loops (NFC) 2022-08-13 12:55:42 -07:00
WasmAsmParser.cpp [llvm] Don't use Optional::getValue (NFC) 2022-06-20 22:45:45 -07:00
XCOFFAsmParser.cpp Cleanup MCParser headers 2022-02-11 10:39:29 +01:00