This is an archive of the discontinued LLVM Phabricator instance.

[clang] Update ASM goto documentation to reflect how Clang differs from GCC
ClosedPublic

Authored by void on Oct 12 2022, 2:45 PM.

Diff Detail

Event Timeline

void created this revision.Oct 12 2022, 2:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 2:45 PM
void requested review of this revision.Oct 12 2022, 2:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 2:45 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
shafik added a subscriber: shafik.Oct 12 2022, 3:35 PM

Thank you for updating the documents!

clang/docs/LanguageExtensions.rst
1570

It would be helpful to provide an example of what is not supported. If you can provide an example that actually results in undefined behavior that would be even better.

void updated this revision to Diff 467284.Oct 12 2022, 3:46 PM

Update with example.

clang/docs/LanguageExtensions.rst
1570

I added an example, but it's hard to determine whether a given piece of code will have undefined behavior as it sometimes occurs only on a specific optimization level.

nickdesaulniers accepted this revision.Oct 13 2022, 10:31 AM
nickdesaulniers added inline comments.
clang/docs/LanguageExtensions.rst
1553

Consider adding a link to https://github.com/llvm/llvm-project/issues/53562?

Clang doesn't yet support... but support is planned.

or something.

1557

Do we need to keep the code block to retain formatting?

This revision is now accepted and ready to land.Oct 13 2022, 10:31 AM
shafik added inline comments.Oct 13 2022, 12:04 PM
clang/docs/LanguageExtensions.rst
1570

Understood, I think what you have is good. Thank you.

void marked 2 inline comments as done.Oct 13 2022, 12:05 PM
void added inline comments.
clang/docs/LanguageExtensions.rst
1553

I'll add the link to the commit message. I don't know if it's very useful here, as it pertains mostly to compiler developers rather than end users.

This revision was automatically updated to reflect the committed changes.
void marked an inline comment as done.