Commit graph

40461 commits

Author SHA1 Message Date
Dennis
12c1363f86
Add changelog entry for error message changes (#20753)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-22 05:01:00 +08:00
Dennis
ff2543f768
opover.d: remove goto, reduce indentation (#20748) 2025-01-21 13:24:16 +01:00
Dennis
f05ccbd0e7
Remove class allocator parsing (#20747) 2025-01-21 19:32:51 +08:00
Dennis
6493805d0a
Remove more D1 operator code (#20746) 2025-01-21 10:27:23 +01:00
Dennis
fc2b2271a6
Remove D1 operators from the D2 language (#20744) 2025-01-21 06:08:05 +08:00
Dennis
2a627016f6
Disallow initializing fields with themself (#20696) 2025-01-21 05:49:24 +08:00
Jonas Meeuws
2ecfa63ce7
Use selective imports when importing from core.stdc in rt (#20742) 2025-01-20 21:12:30 +01:00
Jonas Meeuws
5a02544ea3
Use selective imports when importing from core.stdc in druntime tests (#20743) 2025-01-20 19:59:19 +01:00
Iain Buclaw
ad947b55a8 druntime: Add GNU_InlineAsm implementations 2025-01-19 15:46:27 +01:00
Iain Buclaw
3e50cd8f94 druntime: Update GNU implementation of callWithStackShell 2025-01-19 15:46:00 +01:00
Andrey Penechko
ec7c24bb72
Add test cases for static arrays initialization with hex string (#20738) 2025-01-19 21:13:58 +08:00
Iain Buclaw
5c47e5cdc6 druntime: Add version(GNU) imports to rt.deh and sections modules 2025-01-19 11:30:20 +01:00
Iain Buclaw
37dddf5dd0 druntime: Add version(GNU) definitions of c_long and c_ulong 2025-01-19 11:28:34 +01:00
Jonas Meeuws
8c5051803a
Use selective imports when importing from core.stdc in core.internal (#20723) 2025-01-19 09:45:13 +08:00
Jonas Meeuws
d115713410
Add an assert-based segfault handler to etc.linux.memoryerror (#20643)
* Add an assert-based segfault handler to `etc.linux.memoryerror`

* Commit memoryAssertError review feedback

* Indent the MemoryErrorSupported version block

* Fix a bad ucontext_t in memoryerror.d

* Fix bad imports in memoryerror.d

* Use a module-scope version: in memoryerror.d

* Add a memoryerror.d unittest

* Prefer version-else-version... in memoryerror.d
2025-01-18 22:38:54 +01:00
Jonas Meeuws
e49b67e969
Remove usage of obsolete _fdToHandle in rt/dmain2.d (#20722) 2025-01-18 22:38:22 +01:00
Iain Buclaw
283b5f6fea
dcast: Don't pass format string over varargs (#20732) 2025-01-18 22:38:03 +01:00
Iain Buclaw
8061aa84c1
Don't reference DMD-specific flags when IN_GCC (#20731) 2025-01-18 22:37:35 +01:00
0-v-0
9c9720493d
Use number suffix instead of cast (#20729) 2025-01-18 22:31:58 +01:00
Dennis
670a6c153c
backend: Replace C pointer syntax with D (#20726) 2025-01-18 08:08:53 +08:00
Dennis
971a1d6943
backend: Make BC a D enum (#20724)
* backend: Make BC a D enum

* Fix default initialization of BC to be 0
2025-01-17 15:20:56 +01:00
Jonas Meeuws
c71c3b231d
Use selective imports when importing from core.stdc in core (#20725) 2025-01-17 15:20:47 +01:00
Dennis
ac9e8a5a70
Fix bypassing nothrow in debug statements (#20720)
* Fix bypassing nothrow in debug statements

* Fix debug walking null statements
2025-01-17 01:50:17 +01:00
Dennis
803db11017
Re-enable tests of temporary in condition and throwing callee (#20721) 2025-01-16 23:35:13 +01:00
Dennis Korpel
a78abc4328 Improve error locations when lexing number literals 2025-01-16 22:05:21 +01:00
Dennis Korpel
924ba452eb backend: Make FL a D enum 2025-01-16 22:04:25 +01:00
0-v-0
a847aa321b
Remove redundant else (#20717) 2025-01-16 17:48:00 +01:00
Iain Sandoe
f224123e56
Fix build on i686, arm64 and x86_64+32b multilib for Darwin. (#20710)
* Fix build on i686, arm64 and x86_64+32b multilib for Darwin.

osthread.d needs to import the thread state definitions for each
supported arch (but was only importing x86_64).

NOTE1: Iain Buclaw pointed out that the ucontext import was unused
and do I have removed that too.

NOTE2: I did not add the data for 32bit Arm (as distinct from the
possible use of AArch64/ILP32), because there is no way I know
to test that - since there's no upstream 32b Arm implementation.

NOTE3: The earlier Darwin versions (equivalent to MacOSX 10.5) have
quite limited D support - but both i686 and PowerPC should be able
(at least) to build the druntime.

I tested on x86_64,i686-Darwin17 and aarch64-darwin23.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

* Address code reviews.

---------

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Co-authored-by: Iain Buclaw <ibuclaw@gdcproject.org>
2025-01-16 22:35:06 +08:00
Dennis Korpel
8783066576 Use variadic arguments for AttributeViolation format string 2025-01-16 15:34:13 +01:00
Dennis
709e07df52
Store messages directly in AttributeViolation (#20714) 2025-01-16 15:24:12 +08:00
Dennis
888917669c
Remove debug() / version() integers (#20713) 2025-01-16 15:20:06 +08:00
Dennis
c0315897f6
Fix format string injection in safe errors (#20712) 2025-01-16 01:42:17 +01:00
Dennis
20090aba96
Make inferred attribute failure errors more compact and consistent (#20711) 2025-01-16 01:42:05 +01:00
Dennis
3daeb3a33d
Improve diff based AUTO_UPDATE (#20703)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-15 23:25:32 +01:00
Dennis
1c2b6e3541
Add fieldwise to Previews (#20708) 2025-01-15 23:13:56 +01:00
Nicholas Wilson
ace0e63295
Update unknown ICE error message to point to GitHub (#20706) 2025-01-15 12:11:50 +08:00
Nicholas Wilson
93ca4676b6
Merge pull request #20698 from schveiguy/gcfinalizerarrays
Move all array and finalizer functionality into the GC
2025-01-15 06:27:36 +08:00
Iain Buclaw
4485b0d58e
globals.h: Add missing C++ constructors for ImportPathInfo (#20702) 2025-01-15 06:23:16 +08:00
Steven Schveighoffer
ed08053424 fix translation of nested array construction length. 2025-01-14 15:20:09 -05:00
Steven Schveighoffer
4f93c2a1a2 Trying to "fix" obvious non-deterministic test. 2025-01-14 14:21:29 -05:00
Steven Schveighoffer
6b914aef11 Zero out padding for 32-bit systems for large blocks. 2025-01-14 11:14:53 -05:00
Steven Schveighoffer
76fb1c03f2 Fix issue with appending zero items to an array that was previously
handled by allocating an empty array with metadata!
2025-01-14 10:20:55 -05:00
Steven Schveighoffer
d370a117b4 Remove almost all blockmeta/cache functionality from rt, using the GC
API instead.
2025-01-14 09:49:03 -05:00
Walter Bright
d6f693b46a
fix #20516 ImportC undefined identifier _Float16 (#20699) 2025-01-14 15:14:28 +08:00
0-v-0
b2c4f89d53 Remove redundant else 2025-01-14 08:11:48 +01:00
Steven Schveighoffer
b711f1ac89 Fix custom_gc to avoid alignment issues on platforms where alignment
matters.
2025-01-13 20:29:49 +01:00
Nicholas Wilson
4ad3fc7942
Fix #20691 - Add SO_REUSEPORT for Solaris (#20692) 2025-01-13 20:06:12 +08:00
Nicholas Wilson
6455cb27ef
Fix #20688 SO_REUSEPORT not defined (#20689) 2025-01-13 16:38:19 +08:00
0-v-0
caf0e12e0c
Use const when possible (#20687)
* Use const when possible

* Fix error
2025-01-12 17:53:04 +01:00
Walter Bright
10eb368c1b fix #20686 infer attributes for generated functions 2025-01-12 19:29:12 +08:00