Restrict LLVM inline asm location cookie usage. Fixes #150451 - #160197
Restrict LLVM inline asm location cookie usage. Fixes #150451#160197susitsm wants to merge 3 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
1238b04 to
e840de9
Compare
This comment has been minimized.
This comment has been minimized.
e840de9 to
4326f37
Compare
|
cc @bjorn3 |
|
Is it possible to add a test case for this? |
|
Reminder, once the PR becomes ready for a review, use |
4326f37 to
dbef79f
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a22e364 to
6d6d87d
Compare
| // Global assembly errors don't have line numbers, so no error on ARM. | ||
|
|
||
| //[arm]~? ERROR unknown directive | ||
| //[arm]~? ERROR unknown directive |
There was a problem hiding this comment.
This change (and its equivalent in tests/ui/asm/inline-syntax.arm.stderr) should be reverted, since the flags were added above?
There was a problem hiding this comment.
Interesting, the tests pass.
Why did these diagnostics change?
There was a problem hiding this comment.
I didn't request a review because I am still trying to get to the bottom of this. I don't know why there were 2 of those in the first place. Both of them came from the global_asm! in the test.
There was a problem hiding this comment.
Setting -Cembed-bitcode=false before my patches also removes the copy.
There was a problem hiding this comment.
I have moved the last commit (one changing the asm ui test flags) to be the first. This already requires changing the expected stderr to not have duplicate errors. The later change to loc cookie encoding has no effect on the output, the ui tests pass without more changes.
As for why it was duplicated when embedding bitcode, I have no idea.
|
@bors try jobs=dist-armv7-linux |
This comment has been minimized.
This comment has been minimized.
Restrict LLVM inline asm location cookie usage. Fixes #150451 try-job: dist-armv7-linux
…O is enabled The parallel frontend makes the cookies nondeterministic in their current form, resulting in nondeterministic outputs when bitcode is emitted or LTO is used. Causes minor diagnostic regression for inline asm in release builds.
6d6d87d to
970cb98
Compare
The parallel frontend makes the cookies nondeterministic in their current form, resulting in nondeterministic outputs when bitcode is emitted or LTO is used.
Causes minor diagnostic regression for inline asm in release builds. See #150451 for details.
Fixes #150451
r? bjorn3