-
-
Notifications
You must be signed in to change notification settings - Fork 268
Merge upstream stable #4962
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
Draft
kinke
wants to merge
123
commits into
master
Choose a base branch
from
merge-2.112
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Merge upstream stable #4962
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
or terminating, to do necessary initialization or cleanup. Move blkcache destruction to the the cleanup function from the conservative GC.
Because the GCC-style IASM parser uses the same routine as `mixin()`, cascading errors that fly off the end of the tokens list result in not very helpful "End Of File" errors. Where the parser can control it, opt to stop doing any more parsing of the asm tokens at the first error detected. This doesn't help in cases where there's issues in parsing primary expressions (`asm { (a[; }`), but then again `mixin("(a[");` suffers from the same.
Handle the mix of colon and colonColon tokens in the GCC IASM parser instead of the D and ImportC parsers.
Closes: dlang/dmd!21299
Add hooks to the GC to manage thread lifetimes
It should fix running clang-cpp on linux x86_64. This involves moving some linux+aarch64 fixes to linux+clang since clang was the actual issue. See-also: dlang/dmd#15320 Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
It happens with both clang and gcc. Tested with ldc2 Part of the full error: ``` Error: undefined identifier `__Float32x4_t` Error: undefined identifier `__Float64x2_t` Error: undefined identifier `__SVFloat32_t` Error: undefined identifier `__SVFloat64_t` Error: undefined identifier `__SVBool_t` /usr/include/bits/math-vector.h(162): Error: undefined identifier `__Float32x4_t` __attribute__ ((__aarch64_vector_pcs__)) __f32x4_t _ZGVnN4vv_atan2f (__f32x4_t, __f32x4_t); ^ /usr/include/bits/math-vector.h(162): Error: undefined identifier `__Float32x4_t` __attribute__ ((__aarch64_vector_pcs__)) __f32x4_t _ZGVnN4vv_atan2f (__f32x4_t, __f32x4_t); ^ /usr/include/bits/math-vector.h(162): Error: undefined identifier `__Float32x4_t` __attribute__ ((__aarch64_vector_pcs__)) __f32x4_t _ZGVnN4vv_atan2f (__f32x4_t, __f32x4_t); ^ /usr/include/bits/math-vector.h(163): Error: undefined identifier `__Float32x4_t` __attribute__ ((__aarch64_vector_pcs__)) __f32x4_t _ZGVnN4v_acosf (__f32x4_t); ^ /usr/include/bits/math-vector.h(163): Error: undefined identifier `__Float32x4_t` __attribute__ ((__aarch64_vector_pcs__)) __f32x4_t _ZGVnN4v_acosf (__f32x4_t); ^ ``` Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
Stay consistent with the rest of the preprocessor conditionals by checking for __linux__ instead of linux. Additionally, the former also works with -std=c11 whereas the latter only works with -std=gnu11. Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
With -std=c11, on linux, alloca no longer comes from stdlib.h. Also fix the URL bug number which never pointed to the right one. Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
This reverts commit d527426.
Use existing `Unqual` and `__arrayAlloc` templates Remove redundant array assignment Update templatized `_d_arrayappendcTX` Remove old `_d_arrayappendcTX` hook Remove redundant variable Replace `size_t` with `auto` Fix slice passed to `gc_expandArrayUsed` Avoid casting pointer retuned by `GC.malloc` Remove `pure` attribute from `_d_arrayappendT` Fix spacing for `version` statements Add newline at EOF in `appending.d` Remove explicit pure attribute from `_d_arrayappendcTX` Remove implementations details from docs Trim trailing whitespace Fix spacing in if statements Remove unnecessary casts refactor: Replace `void*` with `T*` Mark gc extern(C) functions as private Add docs explaining the purpose of `@trusted` attribute Fix newlines Call `typeid` directly without storing the result Add changelog file
This reverts commit 075b76e.
missing bitfield support for hashing, this uses the original types and more space
Incl. supporting `__declspec(_Noreturn)` in ImportC, as apparently used in Microsoft headers when running with `/std:c11`, e.g.: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\intrin.h(204): Error: extended-decl-modifier expected after `__declspec(`, saw `_Noreturn` instead __declspec(_Noreturn) void __fastfail(unsigned int);
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
…folder 64, not to 64.obj (dlang/dmd!21401) this avoids concurrently creating the same file multiple times
…in (dlang/dmd!21411) Because the compiler can pass rvalues to ref parameters with preview=in, it is confusing and potentially misleading to have it mention rvalues.
remove some now unused semantic symbols from the import list.
…dmd!21544) set location info on return statement, not only on return expression
remove `dmodule.d` dependance of a few more `dsymbolsem.d` symbols.
…md!21542) and make private
* Mark array literals as `on-stack` to bypass `@nogc` analysis * Update `fail_compilation` test output After updating the memcmp-ability criteria, now dynamic array can also be compared using `memcmp` if their element type is comparable bit by bit.
….112 Conflicts: dmd/denum.d dmd/dsymbol.d dmd/enum.h dmd/func.d dmd/main.d dmd/mars.d runtime/druntime/src/core/checkedint.d tests/dmd/compilable/issue15574.sh
… the Phobos unittests
A cherry-pick of dlang/dmd#21705.
This regressed after an upstream refactoring and caused compilable/testcolor.sh to fail.
… DMD-specific macOS workaround Don't add the `-arch x86_64` CXXFLAGS workaround.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Master was merged into stable 2 weeks ago, so this is a 2nd bigger jump for v2.112.