llvm-project/llvm/lib/MC
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
..
MCDisassembler [MC,llvm-objdump,ARM] Target-dependent disassembly resync policy. 2022-07-26 09:35:30 +01:00
MCParser [Sparc] Don't use SunStyleELFSectionSwitchSyntax 2022-08-17 12:59:29 +02:00
CMakeLists.txt [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
ConstantPools.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
ELFObjectWriter.cpp Remove redundaunt virtual specifiers (NFC) 2022-07-25 23:00:59 -07:00
MCAsmBackend.cpp [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
MCAsmInfo.cpp [MC] Make MCAsmInfo::isAcceptableChar reflect MCAsmInfo::doesAllowAtInName 2022-03-29 14:01:32 -07:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmInfoGOFF.cpp
MCAsmInfoWasm.cpp
MCAsmInfoXCOFF.cpp
MCAsmMacro.cpp
MCAsmStreamer.cpp Use drop_begin (NFC) 2022-07-31 15:17:09 -07:00
MCAssembler.cpp Revert "Rebase: [Facebook] [MC] Introduce NeverAlign fragment type" 2022-07-11 09:50:47 -07:00
MCCodeEmitter.cpp
MCCodeView.cpp [MC] Lower case the first letter of EmitCOFF* EmitWin* EmitCV*. NFC 2022-05-26 00:14:08 -07:00
MCContext.cpp [DebugInfo] -fdebug-prefix-map: handle '#line "file"' for asm source 2022-08-14 20:58:23 -07:00
MCDXContainerStreamer.cpp [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
MCDXContainerWriter.cpp [llvm] Don't use Optional::hasValue (NFC) 2022-06-20 10:38:12 -07:00
MCDwarf.cpp [MCDwarf] Respect -fdebug-prefix-map= for generated assembly debug info (DWARF v5) 2022-08-12 12:52:36 -07:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
MCExpr.cpp [NVPTX] Disable parens for identifiers starting with '$' 2022-04-17 18:02:33 +03:00
MCFragment.cpp Revert "Rebase: [Facebook] [MC] Introduce NeverAlign fragment type" 2022-07-11 09:50:47 -07:00
MCInst.cpp
MCInstPrinter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrAnalysis.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrDesc.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrInfo.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachOStreamer.cpp [MC][MachO] Change addrsig format + ensure its size is properly set 2022-07-19 21:22:23 -04:00
MCMachObjectTargetWriter.cpp
MCNullStreamer.cpp [MC] De-capitalize MCStreamer functions 2022-06-07 00:31:02 -07:00
MCObjectFileInfo.cpp Emit a simple StackSizesSection on PS4. 2022-07-27 09:39:24 +01:00
MCObjectStreamer.cpp Revert "Rebase: [Facebook] [MC] Introduce NeverAlign fragment type" 2022-07-11 09:50:47 -07:00
MCObjectWriter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCPseudoProbe.cpp Use llvm::sort instead of std::sort where possible 2022-07-23 15:19:05 +02:00
MCRegisterInfo.cpp [MC] Define and use MCRegisterInfo::regsOverlap 2022-02-14 20:46:02 +00:00
MCSPIRVStreamer.cpp [SPIR-V](3/6) Add MC layer, object file support, and InstPrinter 2022-04-20 01:10:25 +02:00
MCSchedule.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
MCSection.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSectionCOFF.cpp [MC] Fix letter case of some MCSection member functions 2022-03-11 20:07:00 -08:00
MCSectionDXContainer.cpp [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
MCSectionELF.cpp [Object] Add ELF section type for offloading objects 2022-07-07 12:20:30 -04:00
MCSectionMachO.cpp [MC] Allow annotating custom sections as zerofill 2022-06-28 15:08:47 +01:00
MCSectionWasm.cpp [MC] Fix letter case of some MCSection member functions 2022-03-11 20:07:00 -08:00
MCSectionXCOFF.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
MCStreamer.cpp [llvm] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 11:24:15 -07:00
MCSubtargetInfo.cpp Allow data prefetch into non-default address space 2022-07-27 10:01:26 -07:00
MCSymbol.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSymbolELF.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSymbolXCOFF.cpp
MCTargetOptions.cpp [MC][re-land] Omit DWARF unwind info if compact unwind is present where eligible 2022-06-12 17:24:19 -04:00
MCTargetOptionsCommandFlags.cpp [MC][re-land] Omit DWARF unwind info if compact unwind is present where eligible 2022-06-12 17:24:19 -04:00
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp [LLVM] Add exported visibility style for XCOFF 2022-04-28 14:56:00 -04:00
MCWin64EH.cpp [MC] [Win64EH] Fix the calculation of the end of epilogs 2022-08-08 23:03:17 +03:00
MCWinCOFFStreamer.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
MCWinEH.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCXCOFFObjectTargetWriter.cpp
MCXCOFFStreamer.cpp [XCOFF] ignore the cold attribute. 2022-08-11 01:13:05 -04:00
MachObjectWriter.cpp [MC][MachO] Change addrsig format + ensure its size is properly set 2022-07-19 21:22:23 -04:00
SPIRVObjectWriter.cpp [SPIR-V](3/6) Add MC layer, object file support, and InstPrinter 2022-04-20 01:10:25 +02:00
StringTableBuilder.cpp
SubtargetFeature.cpp [llvm] Qualify auto (NFC) 2022-08-07 23:55:27 -07:00
TargetRegistry.cpp TargetRegistry: Don't add "error" to error messages 2022-04-19 22:29:16 -04:00
WasmObjectWriter.cpp [llvm] Use value_or instead of getValueOr (NFC) 2022-06-18 23:07:11 -07:00
WinCOFFObjectWriter.cpp [MC] Avoid UAF in WinCOFFObjectWriter with weak symbols. 2022-07-16 13:24:08 +03:00
XCOFFObjectWriter.cpp [llvm] Remove redundaunt virtual specifiers (NFC) 2022-07-24 21:50:35 -07:00