Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit fb02f4f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into stable
2 parents b524311 + 246d15a commit fb02f4f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+3239
-2013
lines changed

.github/workflows/cxx.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ jobs:
102102
# Setting up the host D compiler #
103103
########################################
104104
- name: Prepare compiler
105-
uses: mihails-strasuns/setup-dlang@v0.5.0
105+
uses: dlang-community/setup-dlang@v1
106106
with:
107107
compiler: dmd-2.091.0
108-
gh_token: ${{ secrets.GITHUB_TOKEN }}
109108

110109
#########################################
111110
# Checking out up DMD, druntime, Phobos #

benchmark/aabench/bulk.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
66
* Authors: Martin Nowak
77
*/
8-
import std.random, std.typetuple, std.conv;
8+
import std.conv, std.meta, std.random;
99

1010
version (VERBOSE) import std.datetime, std.stdio;
1111

12-
alias ValueTuple = TypeTuple!(void[0], uint, void*, Object, ubyte[16], ubyte[64]);
12+
alias ValueTuple = AliasSeq!(void[0], uint, void*, Object, ubyte[16], ubyte[64]);
1313

1414
size_t Size = 2 ^^ 16;
1515
size_t trot;

benchmark/gcbench/vdparser.extra/vdc/interpret.d

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ import vdc.ast.writer;
4242
import stdext.util;
4343
import stdext.string;
4444

45-
import std.variant;
4645
import std.conv;
47-
import std.typetuple;
46+
import std.meta;
4847
import std.string;
49-
import std.utf;
5048
import std.traits;
49+
import std.utf;
50+
import std.variant;
5151

5252
template Singleton(T, ARGS...)
5353
{
@@ -414,23 +414,23 @@ T createInitValue(T)(Context ctx, Value initValue)
414414
return v;
415415
}
416416

417-
alias TypeTuple!(bool, byte, ubyte, short, ushort,
418-
int, uint, long, ulong,
419-
char, wchar, dchar,
420-
float, double, real,
421-
ifloat, idouble, ireal,
422-
cfloat, cdouble, creal) BasicTypes;
417+
alias AliasSeq!(bool, byte, ubyte, short, ushort,
418+
int, uint, long, ulong,
419+
char, wchar, dchar,
420+
float, double, real,
421+
ifloat, idouble, ireal,
422+
cfloat, cdouble, creal) BasicTypes;
423423

424-
alias TypeTuple!(BoolValue, ByteValue, UByteValue, ShortValue, UShortValue,
425-
IntValue, UIntValue, LongValue, ULongValue,
426-
CharValue, WCharValue, DCharValue,
427-
FloatValue, DoubleValue, RealValue) BasicTypeValues;
428-
alias TypeTuple!(BasicTypeValues, SetLengthValue) RHS_BasicTypeValues;
424+
alias AliasSeq!(BoolValue, ByteValue, UByteValue, ShortValue, UShortValue,
425+
IntValue, UIntValue, LongValue, ULongValue,
426+
CharValue, WCharValue, DCharValue,
427+
FloatValue, DoubleValue, RealValue) BasicTypeValues;
428+
alias AliasSeq!(BasicTypeValues, SetLengthValue) RHS_BasicTypeValues;
429429

430-
alias TypeTuple!(TOK_bool, TOK_byte, TOK_ubyte, TOK_short, TOK_ushort,
431-
TOK_int, TOK_uint, TOK_long, TOK_ulong,
432-
TOK_char, TOK_wchar, TOK_dchar,
433-
TOK_float, TOK_double, TOK_real) BasicTypeTokens;
430+
alias AliasSeq!(TOK_bool, TOK_byte, TOK_ubyte, TOK_short, TOK_ushort,
431+
TOK_int, TOK_uint, TOK_long, TOK_ulong,
432+
TOK_char, TOK_wchar, TOK_dchar,
433+
TOK_float, TOK_double, TOK_real) BasicTypeTokens;
434434

435435
int BasicType2Token(T)() { return BasicTypeTokens[staticIndexOf!(T, BasicTypes)]; }
436436

@@ -1304,7 +1304,7 @@ class StaticArrayValue : ArrayValue!TypeStaticArray
13041304

13051305
}
13061306

1307-
alias TypeTuple!(CharValue, WCharValue, DCharValue, StringValue) StringTypeValues;
1307+
alias AliasSeq!(CharValue, WCharValue, DCharValue, StringValue) StringTypeValues;
13081308

13091309
class StringValue : Value
13101310
{

changelog/add_exit_group.dd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add `exit_group` to `core.sys.linux.unistd`
2+
3+
add `exit_group` to `core.sys.linux.unistd`, exits all threads in a process, present since linux 2.5.35

changelog/darwin_bindings.dd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Added module `core.sys.darwin.mach.nlist` and `core.sys.darwin.mach.stab`
2+
3+
Those modules contains bindings for the 64 bits part of Mac OSX's
4+
`<mach-o/nlish.h>` and `<mach-o/stab.h>`, respectively,
5+
and can be used by users wishing to inspect binary data of Mach-O object files.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Deprecated `object.selector`
2+
3+
The public import of `selector` in the module `object` has been deprecated.
4+
Please explicitly import `selector` instead using: `import core.attribute : selector;`
5+
6+
The following code has been deprecated:
7+
8+
```
9+
extern (Objective-C)
10+
extern class NSObject
11+
{
12+
static NSObject alloc() @selector("alloc");
13+
}
14+
```
15+
16+
Replace with:
17+
18+
```
19+
import core.attribute : selector;
20+
21+
extern (Objective-C)
22+
extern class NSObject
23+
{
24+
static NSObject alloc() @selector("alloc");
25+
}
26+
```

changelog/gc_suffixes.dd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Memory releated GC options can now be specified with higher accuracy
2+
3+
Memory-related GC options stored in bytes instead of megabytes to
4+
provide fine-tune GC on low memory devices.
5+
6+
Added ability to use suffixes B, K, M or G:
7+
---
8+
extern(C) __gshared string[] rt_options =
9+
[ "gcopt=minPoolSize:4K maxPoolSize:2M incPoolSize:8K" ];
10+
---
11+
12+
Values without suffix treated as megabytes.

mak/COPY

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ COPY=\
111111
$(IMPDIR)\core\sys\darwin\mach\getsect.d \
112112
$(IMPDIR)\core\sys\darwin\mach\kern_return.d \
113113
$(IMPDIR)\core\sys\darwin\mach\loader.d \
114+
$(IMPDIR)\core\sys\darwin\mach\nlist.d \
114115
$(IMPDIR)\core\sys\darwin\mach\port.d \
115116
$(IMPDIR)\core\sys\darwin\mach\semaphore.d \
117+
$(IMPDIR)\core\sys\darwin\mach\stab.d \
116118
$(IMPDIR)\core\sys\darwin\mach\thread_act.d \
117119
\
118120
$(IMPDIR)\core\sys\darwin\netinet\in_.d \
@@ -265,6 +267,8 @@ COPY=\
265267
$(IMPDIR)\core\sys\posix\netinet\in_.d \
266268
$(IMPDIR)\core\sys\posix\netinet\tcp.d \
267269
\
270+
$(IMPDIR)\core\sys\posix\stdc\time.d \
271+
\
268272
$(IMPDIR)\core\sys\posix\sys\filio.d \
269273
$(IMPDIR)\core\sys\posix\sys\ioccom.d \
270274
$(IMPDIR)\core\sys\posix\sys\ioctl.d \
@@ -438,6 +442,7 @@ COPY=\
438442
$(IMPDIR)\core\sys\windows\sspi.d \
439443
$(IMPDIR)\core\sys\windows\stacktrace.d \
440444
$(IMPDIR)\core\sys\windows\stat.d \
445+
$(IMPDIR)\core\sys\windows\stdc\time.d \
441446
$(IMPDIR)\core\sys\windows\subauth.d \
442447
$(IMPDIR)\core\sys\windows\threadaux.d \
443448
$(IMPDIR)\core\sys\windows\tlhelp32.d \
@@ -471,6 +476,7 @@ COPY=\
471476
$(IMPDIR)\core\sys\windows\wtsapi32.d \
472477
$(IMPDIR)\core\sys\windows\wtypes.d \
473478
\
479+
$(IMPDIR)\core\thread\context.d \
474480
$(IMPDIR)\core\thread\fiber.d \
475481
$(IMPDIR)\core\thread\osthread.d \
476482
$(IMPDIR)\core\thread\package.d \

mak/DOCS

Lines changed: 94 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -70,107 +70,109 @@ DOCS=\
7070
$(DOCDIR)\core_sys_darwin_mach_getsect.html \
7171
$(DOCDIR)\core_sys_darwin_mach_kern_return.html \
7272
$(DOCDIR)\core_sys_darwin_mach_loader.html \
73+
$(DOCDIR)\core_sys_darwin_mach_nlist.html \
7374
$(DOCDIR)\core_sys_darwin_mach_port.html \
7475
$(DOCDIR)\core_sys_darwin_mach_semaphore.html \
76+
$(DOCDIR)\core_sys_darwin_mach_stab.html \
7577
$(DOCDIR)\core_sys_darwin_mach_thread_act.html \
7678
$(DOCDIR)\core_sys_darwin_netinet_in_.html \
7779
\
7880
$(DOCDIR)\core_thread.html \
7981
$(DOCDIR)\core_thread_fiber.html \
8082
$(DOCDIR)\core_thread_osthread.html \
8183
\
82-
$(DOCDIR)\core_internal_execinfo.html \
83-
\
84-
$(DOCDIR)\rt_aaA.html \
85-
$(DOCDIR)\rt_aApply.html \
86-
$(DOCDIR)\rt_aApplyR.html \
87-
$(DOCDIR)\rt_adi.html \
88-
$(DOCDIR)\rt_alloca.html \
89-
\
90-
$(DOCDIR)\rt_arrayassign.html \
91-
$(DOCDIR)\rt_arraycat.html \
92-
\
93-
$(DOCDIR)\rt_backtrace_dwarf.html \
94-
$(DOCDIR)\rt_backtrace_elf.html \
95-
$(DOCDIR)\rt_backtrace_macho.html \
96-
\
97-
$(DOCDIR)\rt_cast_.html \
98-
$(DOCDIR)\rt_cmath2.html \
99-
$(DOCDIR)\rt_config.html \
100-
$(DOCDIR)\rt_cover.html \
101-
$(DOCDIR)\rt_critical_.html \
102-
$(DOCDIR)\rt_deh.html \
103-
$(DOCDIR)\rt_deh_win32.html \
104-
$(DOCDIR)\rt_deh_win64_posix.html \
105-
$(DOCDIR)\rt_dmain2.html \
106-
$(DOCDIR)\rt_dwarfeh.html \
107-
$(DOCDIR)\rt_ehalloc.html \
108-
$(DOCDIR)\rt_invariant.html \
109-
$(DOCDIR)\rt_lifetime.html \
110-
$(DOCDIR)\rt_llmath.html \
111-
$(DOCDIR)\rt_memory.html \
112-
$(DOCDIR)\rt_memset.html \
113-
$(DOCDIR)\rt_minfo.html \
114-
$(DOCDIR)\rt_monitor_.html \
115-
$(DOCDIR)\rt_profilegc.html \
116-
$(DOCDIR)\rt_qsort.html \
117-
$(DOCDIR)\rt_sections_android.html \
118-
$(DOCDIR)\rt_sections.html \
119-
$(DOCDIR)\rt_sections_darwin_64.html \
120-
$(DOCDIR)\rt_sections_elf_shared.html \
121-
$(DOCDIR)\rt_sections_osx_x86_64.html \
122-
$(DOCDIR)\rt_sections_osx_x86.html \
123-
$(DOCDIR)\rt_sections_solaris.html \
124-
$(DOCDIR)\rt_sections_win32.html \
125-
$(DOCDIR)\rt_sections_win64.html \
126-
$(DOCDIR)\rt_tlsgc.html \
127-
$(DOCDIR)\rt_trace.html \
128-
$(DOCDIR)\rt_tracegc.html \
84+
$(DOCDIR)\core_internal_execinfo.html \
12985
\
130-
$(DOCDIR)\rt_typeinfo_ti_Acdouble.html \
131-
$(DOCDIR)\rt_typeinfo_ti_Acfloat.html \
132-
$(DOCDIR)\rt_typeinfo_ti_Acreal.html \
133-
$(DOCDIR)\rt_typeinfo_ti_Adouble.html \
134-
$(DOCDIR)\rt_typeinfo_ti_Afloat.html \
135-
$(DOCDIR)\rt_typeinfo_ti_Ag.html \
136-
$(DOCDIR)\rt_typeinfo_ti_Aint.html \
137-
$(DOCDIR)\rt_typeinfo_ti_Along.html \
138-
$(DOCDIR)\rt_typeinfo_ti_Areal.html \
139-
$(DOCDIR)\rt_typeinfo_ti_Ashort.html \
140-
$(DOCDIR)\rt_typeinfo_ti_byte.html \
141-
$(DOCDIR)\rt_typeinfo_ti_C.html \
142-
$(DOCDIR)\rt_typeinfo_ti_cdouble.html \
143-
$(DOCDIR)\rt_typeinfo_ti_cent.html \
144-
$(DOCDIR)\rt_typeinfo_ti_cfloat.html \
145-
$(DOCDIR)\rt_typeinfo_ti_char.html \
146-
$(DOCDIR)\rt_typeinfo_ti_creal.html \
147-
$(DOCDIR)\rt_typeinfo_ti_dchar.html \
148-
$(DOCDIR)\rt_typeinfo_ti_delegate.html \
149-
$(DOCDIR)\rt_typeinfo_ti_double.html \
150-
$(DOCDIR)\rt_typeinfo_ti_float.html \
151-
$(DOCDIR)\rt_typeinfo_ti_idouble.html \
152-
$(DOCDIR)\rt_typeinfo_ti_ifloat.html \
153-
$(DOCDIR)\rt_typeinfo_ti_int.html \
154-
$(DOCDIR)\rt_typeinfo_ti_ireal.html \
155-
$(DOCDIR)\rt_typeinfo_ti_long.html \
156-
$(DOCDIR)\rt_typeinfo_ti_n.html \
157-
$(DOCDIR)\rt_typeinfo_ti_ptr.html \
158-
$(DOCDIR)\rt_typeinfo_ti_real.html \
159-
$(DOCDIR)\rt_typeinfo_ti_short.html \
160-
$(DOCDIR)\rt_typeinfo_ti_ubyte.html \
161-
$(DOCDIR)\rt_typeinfo_ti_ucent.html \
162-
$(DOCDIR)\rt_typeinfo_ti_uint.html \
163-
$(DOCDIR)\rt_typeinfo_ti_ulong.html \
164-
$(DOCDIR)\rt_typeinfo_ti_ushort.html \
165-
$(DOCDIR)\rt_typeinfo_ti_void.html \
166-
$(DOCDIR)\rt_typeinfo_ti_wchar.html \
86+
$(DOCDIR)\rt_aaA.html \
87+
$(DOCDIR)\rt_aApply.html \
88+
$(DOCDIR)\rt_aApplyR.html \
89+
$(DOCDIR)\rt_adi.html \
90+
$(DOCDIR)\rt_alloca.html \
16791
\
168-
$(DOCDIR)\rt_unwind.html \
92+
$(DOCDIR)\rt_arrayassign.html \
93+
$(DOCDIR)\rt_arraycat.html \
16994
\
170-
$(DOCDIR)\rt_util_container_array.html \
171-
$(DOCDIR)\rt_util_container_common.html \
172-
$(DOCDIR)\rt_util_container_hashtab.html \
173-
$(DOCDIR)\rt_util_container_treap.html \
174-
$(DOCDIR)\rt_util_utility.html \
175-
$(DOCDIR)\rt_util_random.html \
176-
$(DOCDIR)\rt_util_typeinfo.html \
95+
$(DOCDIR)\rt_backtrace_dwarf.html \
96+
$(DOCDIR)\rt_backtrace_elf.html \
97+
$(DOCDIR)\rt_backtrace_macho.html \
98+
\
99+
$(DOCDIR)\rt_cast_.html \
100+
$(DOCDIR)\rt_cmath2.html \
101+
$(DOCDIR)\rt_config.html \
102+
$(DOCDIR)\rt_cover.html \
103+
$(DOCDIR)\rt_critical_.html \
104+
$(DOCDIR)\rt_deh.html \
105+
$(DOCDIR)\rt_deh_win32.html \
106+
$(DOCDIR)\rt_deh_win64_posix.html \
107+
$(DOCDIR)\rt_dmain2.html \
108+
$(DOCDIR)\rt_dwarfeh.html \
109+
$(DOCDIR)\rt_ehalloc.html \
110+
$(DOCDIR)\rt_invariant.html \
111+
$(DOCDIR)\rt_lifetime.html \
112+
$(DOCDIR)\rt_llmath.html \
113+
$(DOCDIR)\rt_memory.html \
114+
$(DOCDIR)\rt_memset.html \
115+
$(DOCDIR)\rt_minfo.html \
116+
$(DOCDIR)\rt_monitor_.html \
117+
$(DOCDIR)\rt_profilegc.html \
118+
$(DOCDIR)\rt_qsort.html \
119+
$(DOCDIR)\rt_sections_android.html \
120+
$(DOCDIR)\rt_sections.html \
121+
$(DOCDIR)\rt_sections_darwin_64.html \
122+
$(DOCDIR)\rt_sections_elf_shared.html \
123+
$(DOCDIR)\rt_sections_osx_x86_64.html \
124+
$(DOCDIR)\rt_sections_osx_x86.html \
125+
$(DOCDIR)\rt_sections_solaris.html \
126+
$(DOCDIR)\rt_sections_win32.html \
127+
$(DOCDIR)\rt_sections_win64.html \
128+
$(DOCDIR)\rt_tlsgc.html \
129+
$(DOCDIR)\rt_trace.html \
130+
$(DOCDIR)\rt_tracegc.html \
131+
\
132+
$(DOCDIR)\rt_typeinfo_ti_Acdouble.html \
133+
$(DOCDIR)\rt_typeinfo_ti_Acfloat.html \
134+
$(DOCDIR)\rt_typeinfo_ti_Acreal.html \
135+
$(DOCDIR)\rt_typeinfo_ti_Adouble.html \
136+
$(DOCDIR)\rt_typeinfo_ti_Afloat.html \
137+
$(DOCDIR)\rt_typeinfo_ti_Ag.html \
138+
$(DOCDIR)\rt_typeinfo_ti_Aint.html \
139+
$(DOCDIR)\rt_typeinfo_ti_Along.html \
140+
$(DOCDIR)\rt_typeinfo_ti_Areal.html \
141+
$(DOCDIR)\rt_typeinfo_ti_Ashort.html \
142+
$(DOCDIR)\rt_typeinfo_ti_byte.html \
143+
$(DOCDIR)\rt_typeinfo_ti_C.html \
144+
$(DOCDIR)\rt_typeinfo_ti_cdouble.html \
145+
$(DOCDIR)\rt_typeinfo_ti_cent.html \
146+
$(DOCDIR)\rt_typeinfo_ti_cfloat.html \
147+
$(DOCDIR)\rt_typeinfo_ti_char.html \
148+
$(DOCDIR)\rt_typeinfo_ti_creal.html \
149+
$(DOCDIR)\rt_typeinfo_ti_dchar.html \
150+
$(DOCDIR)\rt_typeinfo_ti_delegate.html \
151+
$(DOCDIR)\rt_typeinfo_ti_double.html \
152+
$(DOCDIR)\rt_typeinfo_ti_float.html \
153+
$(DOCDIR)\rt_typeinfo_ti_idouble.html \
154+
$(DOCDIR)\rt_typeinfo_ti_ifloat.html \
155+
$(DOCDIR)\rt_typeinfo_ti_int.html \
156+
$(DOCDIR)\rt_typeinfo_ti_ireal.html \
157+
$(DOCDIR)\rt_typeinfo_ti_long.html \
158+
$(DOCDIR)\rt_typeinfo_ti_n.html \
159+
$(DOCDIR)\rt_typeinfo_ti_ptr.html \
160+
$(DOCDIR)\rt_typeinfo_ti_real.html \
161+
$(DOCDIR)\rt_typeinfo_ti_short.html \
162+
$(DOCDIR)\rt_typeinfo_ti_ubyte.html \
163+
$(DOCDIR)\rt_typeinfo_ti_ucent.html \
164+
$(DOCDIR)\rt_typeinfo_ti_uint.html \
165+
$(DOCDIR)\rt_typeinfo_ti_ulong.html \
166+
$(DOCDIR)\rt_typeinfo_ti_ushort.html \
167+
$(DOCDIR)\rt_typeinfo_ti_void.html \
168+
$(DOCDIR)\rt_typeinfo_ti_wchar.html \
169+
\
170+
$(DOCDIR)\rt_unwind.html \
171+
\
172+
$(DOCDIR)\rt_util_container_array.html \
173+
$(DOCDIR)\rt_util_container_common.html \
174+
$(DOCDIR)\rt_util_container_hashtab.html \
175+
$(DOCDIR)\rt_util_container_treap.html \
176+
$(DOCDIR)\rt_util_utility.html \
177+
$(DOCDIR)\rt_util_random.html \
178+
$(DOCDIR)\rt_util_typeinfo.html \

0 commit comments

Comments
 (0)