Commit graph

20 commits

Author SHA1 Message Date
Tim Schendekehl
cce6c95fe0
Fix bugzilla 24651 - Bitfield layout wrong for 48-bit field on 32-bit Linux (#16667) 2024-07-07 07:36:37 +08:00
Johan Engelen
b5130fd880 Fix bugzilla issue 24623 followup.
Rename CppRuntime to _LLVM and _GNU
Also accept c++ for cxx in target string.
2024-06-30 13:45:31 +02:00
Johan Engelen
349b493810 Fix bugzilla issue 24623: Rename CppRuntime_Clang/Gcc to CppRuntime_libcpp/libstdcpp. Add libcpp and libstdcpp -target= option recognition. 2024-06-22 11:55:11 +02:00
Tim Schendekehl
4c82050e94 Fix bugzilla 24592 - ImportC: Bitfield layout wrong for int64 on 32-bit Linux
Type ulong is 64-bit on 32-bit Linux, but has 32-bit alignment.
This affects the layout of bitfields.

Also add a new test for ImportC bitfields, which compares size,
alignment and layout with the host C++ compiler. The existing
tests compared with fixed values instead.
2024-06-17 02:31:02 +02:00
Brian Callahan
a3eb99191d Fix Bugzilla 24598 2024-06-11 07:20:29 +02:00
Tim Schendekehl
56a21cba42 Fix bugzilla 24577 - Struct with constructor returned from C++ wrong
The test case is copied from LDC, where it already worked. It also has
an additional test for a member struct with constructor.
2024-06-08 15:47:29 +02:00
The Dlang Bot
97dc44aa76
Merge pull request #16521 from kinke/rm_cruntime_dm
Get rid of obsolete `{C,Cpp}Runtime_DigitalMars` special cases

Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2024-05-25 22:14:39 +02:00
Martin Kinkelin
47771d49fd Get rid of obsolete DMC special cases 2024-05-25 19:34:44 +02:00
Martin Kinkelin
01c9c22f3f Get rid of obsolete CppRuntime_DigitalMars special cases 2024-05-25 18:58:37 +02:00
Martin Kinkelin
920678a820 Revise remaining 32{omf,mscoff} usages 2024-05-25 16:35:11 +02:00
Martin Kinkelin
f08bbff91f Get rid of obsolete CRuntime_DigitalMars special cases 2024-05-25 15:17:31 +02:00
Iain Buclaw
582bf08cb0 Fix Bugzilla 22556 - Invalid GOT load reloc with -O on MacOS 2024-02-23 12:55:02 +08:00
Tim Schendekehl
a4d6972c08 Fixes issues 20339, 24292: Calculate isPOD without information from semantic run
Issue 20339: isPOD returns true if sizeof is accessed inside struct declaration
Issue 24292: Struct with destructor wrongly returned in register

Function StructDeclaration.isPOD can be called before the semantic run
for the struct is finished. It then uses incomplete information about
destructors, postblits and copy constructors. The result of isPOD is
cached, so later calls will also return the wrong result.

This commit changes isPOD, so it uses variables, which are already
filled before the semantic run.
2023-12-21 23:20:11 +01:00
Iain Buclaw
a2157f073c Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-03-01 18:01:11 +00:00
Martin Kinkelin
5bb19c7b4c
Fix runnable_cxx/test22898.d on macOS-arm64 (#14918)
Apple diverges wrt. `char` signedness:
https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Handle-data-types-and-data-alignment-properly
2023-02-27 11:07:59 +02:00
Walter Bright
9ca5f89979
fix Issue 23195 - Win64 function ABI bug for small non-POD arguments (#14651) 2023-02-09 09:39:00 +02:00
Walter Bright
74e40179b5
fix Issue 23145 - Stack allocation of scope new variables defeats @safe (#14175) 2023-02-08 23:29:07 -08:00
Iain Buclaw
384ebf5a6f ci: Version out C++ test that doesn't work with DMD 2023-01-29 23:45:13 +01:00
Iain Buclaw
cab51f946a runnable_cxx: Remove new_allocator test from cppa.d 2023-01-29 18:30:39 +01:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00