Skip to content

Conversation

@llvmbot
Copy link
Member

@llvmbot llvmbot commented Aug 22, 2022

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

(cherry picked from commit d999348)
@llvmbot
Copy link
Member Author

llvmbot commented Aug 22, 2022

@MaskRay What do you think about merging this PR to the release branch?

@MaskRay
Copy link
Member

MaskRay commented Aug 22, 2022

LGTM

@tru tru merged commit b6889f0 into release/15.x Aug 22, 2022
@tru tru deleted the llvm-issue57272 branch August 22, 2022 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge d9993484ee40abaab6d9e96872d3a29044202aea into 15.0.0

5 participants