Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork747
math: add LDC restritions on usage of x87 extensions#8323
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
dlang-bot commentedNov 28, 2021
Thanks for your pull request,@ljmf00! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, pleasereference a Bugzilla issue or create amanual changelog. Testing this PR locallyIf you don't have alocal development environment setup, you can useDigger to test this PR: dub run digger -- build"master + phobos#8323" |
This patch adds some restrictions if the library is compiled with LDC compilertargeting MSVC C runtime.Partially cherry picked from:https://github.com/ldc-developers/phobosCo-authored-by: Martin Kinkelin <noone@nowhere.com>Signed-off-by: Luís Ferreira <contact@lsferreira.net>
kinke commentedNov 29, 2021
More details please, and why upstreaming some ugliness from LDC is needed here. This could simpler when moving away from |
ljmf00 commentedNov 29, 2021
I have talked about this in aforum thread, maybe we can discuss this more in depth, in a separate one. The idea would be to add the possibility of fuzzing the official standard library or at least making it simpler. We don't have anything set up on Google oss-fuzz and we should start worrying about it. If we want to have a secure implementation, we should not only fuzz the official standard library but also run the test suite against ASAN/UBSAN, and this is a step forward towards that.
Is the behaviour of |
kinke commentedNov 29, 2021
I'm not sure what the goal is - getting upstream Phobos here to be usable and testable with the current LDC and LDC's druntime version? That's a much bigger task. I've been hesitant to upstream pure LDC specifics; stuff that is also interesting for GDC is a different topic. [And much of that has only recently been enabled, by LDC supporting the GDC/GCC inline asm syntax.]
We currently have 3/4 As for |
kinke commentedNov 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
In case I misunderstood - the ugliness comes from defining extra helper staticif (real.mant_dig==64)version = abc;// Error: version `abc` defined after useversion (abc)void foo() {} So that would require moving from versions to private enums and static-ifs. |
ljmf00 commentedDec 10, 2021
Oh, I understand. Is there any compiler issue about it I can reference here, or is this supposed to be the intended behaviour and perhaps a language limitation? If it is a compiler error, I can stale this and try to fix it. |
ljmf00 commentedJan 7, 2022 • edited by 0xEAB
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by 0xEAB
Uh oh!
There was an error while loading.Please reload this page.
I marked this as draft due to |
LightBender commentedOct 27, 2024
This related to:#7668 |
Uh oh!
There was an error while loading.Please reload this page.
This patch adds some restrictions if the library is compiled with LDC compiler
targeting MSVC C runtime.
Partially cherry picked from: ldc-developers/phobos
We need this if we want to go forward with compiling and running the test suite with sanitization and heuristic-based fuzzing.
CC@kinke