-
-
Notifications
You must be signed in to change notification settings - Fork 668
Fix Issue 18013 - DMD test suite assertion failure in test_cdvecfill.d #7454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ]), | ||
| ); | ||
| version(D_PIC) | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned at #7427 (comment) running the update script is really useful and we shouldn't break that. Hence, I think it's best to make a copy of this file for version(D_PIC)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifically, which update script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one which can be used to generate this output. Who did you get the -fPIC instructions?
Check the header of this file ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I changed the update code to generate either PIC or non-PIC depending on what kind of machine it's run on.
|
cc @MartinNowak |
|
btw, The diff in Github looks really screwy. It's probably easier to just review without the diff. |
test/runnable/test_cdvecfill.d
Outdated
| replaceFirstInto!((_, orng) => formattedWrite(orng, "// dfmt off\n%s// dfmt on", sink.data))(orng, content, ctRegex!(`^// dfmt off[^$]*// dfmt on$`, "m")); | ||
| version(D_PIC) | ||
| { | ||
| replaceFirstInto!((_, orng) => formattedWrite(orng, "// dfmtpic off\n%s// dfmtpic on", sink.data))(orng, content, ctRegex!(`^// dfmtpic off[^$]*// dfmtpic on$`, "m")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ehm I think you need to leave // dfmt off as it's a known directive.
Maybe sth. like:
// PIC\n// dfmt off[^$]*// dfmt off
See also: https://github.com/dlang-community/dfmt#disabling-formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆 I thought that was a strange moniker to use. I've updated the code to keep the // dfmt directives and use different strings for the codegen.
wilzbach
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. So if @MartinNowak doesn't complain in a few days, I suggest we move forward with this. After all, we want to get the testsuite running with -fPIC ...
|
I would strongly prefer if we could include this in the 2.078.0 release, as not being able to run test suite is a regression. Can you change the target of your PR to |
PetarKirov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and thanks for doing the work @JinShil. I think we should get this in as soon as possible.
|
Would have been sufficient to put |
|
I was scratching my head like crazy trying to remember when I added this PIC code and more importantly why, see #7716. |
fixup for #7454 - always run asm tests with PIC merged-on-behalf-of: Mike Franklin <JinShil@users.noreply.github.com>
No description provided.