Commit graph

1338 commits

Author SHA1 Message Date
Martin Kinkelin
ff698ba103 Convert posix.mak to generic Makefile
Usable on Windows too, with a GNU make.
2023-12-09 15:59:14 +01:00
Martin Kinkelin
812d0611f2 Remove deprecated compiler/test/Makefile 2023-12-09 15:59:14 +01:00
Martin Kinkelin
c847abc42a Remove deprecated compiler Makefiles 2023-12-09 15:59:14 +01:00
Dennis
732090485d
Merge pull request #15893 from adamdruppe/make_pragma_great_again
make pragma great again
2023-12-09 14:50:47 +01:00
Walter Bright
3ff8eb67a7 use isXXX() functions for ReturnStatement semantic 2023-12-09 10:07:43 +01:00
Adam D. Ruppe
2d42fdbcf8 make pragma great again 2023-12-08 15:07:33 -05:00
Walter Bright
d560ead349 fix Issue 24264 - ImportC: inliner trips on _Bool return 2023-12-08 11:01:28 +01:00
Walter Bright
d6ec250275
add SearchOpt to enum type (#15889) 2023-12-08 14:56:03 +08:00
Walter Bright
4b78331358 fix Issue 24266 - ImportC: struct initializer entry gets ignored 2023-12-08 07:52:43 +01:00
Walter Bright
f5de34d7d8 Dscope.search: use out parameter 2023-12-07 05:44:19 +01:00
RazvanN7
c26cf35402 Move dmd.aliasthis.isRecursiveAliasThis to mtype.d 2023-12-05 23:40:24 +01:00
Razvan Nitu
7cfa6dc3d2
Delete useless imports from compiler/src/dmd/init.d (#15884) 2023-12-05 15:01:51 +02:00
Razvan Nitu
4ea10155ab
Move dmd.aliasthis.resolveAliasThis to dsymbolsem (#15885) 2023-12-05 15:01:03 +02:00
Walter Bright
807373ae88
ImportC: support #define IDENT ( expression ) (#15871) 2023-12-04 22:16:07 -08:00
Walter Bright
faa773d627
fix Issue 23714 - compilable/testcstuff1.c:213:1: error: static assertion failed: u'ab' == 0x610062 (#15878) 2023-12-04 22:12:13 -08:00
Iain Buclaw
b932359777 Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-12-02 13:56:46 +00:00
RazvanN7
5a226bac3a Attempt at fixing gdc regression - part 2 2023-12-01 14:06:52 +00:00
RazvanN7
e8b24b7502 Attempt at fixing gdc regression 2023-12-01 14:06:16 +00:00
Razvan Nitu
67da4bdbbe
Move Dsymbol.setScope to dsymbolsem and make it a visitor (#15866) 2023-11-29 12:05:11 +02:00
Martin Kinkelin
1e822de3ff Fix overzealous assert in TemplateInstance.appendToModuleMember()
This assert is hit when compiling a private codebase. I'm not sure
how it comes about, but there are apparently cases where the primary
template instance has a non-root `minst`, but has been added to a
root module's members already (so `memberOf` NOT identical to `minst`),
at the time the primary instance's `minst` is swapped-out with a
root `minst` from a sibling instance (in `templateInstanceSemantic()`).

Previously, the primary instance was appended to 2 root modules in
such a case, most likely causing it to be codegen'd twice.
2023-11-27 23:05:36 +01:00
Dennis
41f3577d7d
Merge pull request #15865 from dlang/stable
Merge stable into master
2023-11-26 13:11:56 +01:00
Walter Bright
ec34292ead
fix Issue 24262 - Assert error with bit fields (#15864) 2023-11-26 11:52:07 +01:00
Walter Bright
e1197fc765
fix Issue 24257 - ImportC: ICE on accessing last _Bool bitfield (#15861) 2023-11-25 22:45:30 +01:00
Walter Bright
16426601d6
fix Issue 24042 - ImportC: Error: no definition for static function (#15857) 2023-11-24 09:42:20 +01:00
Walter Bright
b063e0c45c
fix Issue 24031 - ImportC: rejects nested C initializers (#15858) 2023-11-24 09:41:12 +01:00
Walter Bright
a423208c7a
Fix Issue 24125 - ImportC: vector type initializer not understood (#15838)
* fix Issue 24125 - ImportC: vector type initializer not understood

* fix Issue 24125 - ImportC: vector type initializer not understood
2023-11-22 20:10:44 -08:00
Razvan Nitu
ed0e42332f
Break dependency of dsymbol.d on dsymbolsem.d (#15851) 2023-11-22 18:10:09 +02:00
Walter Bright
8547e96ee1
fix Issue 24200 - ImportC: .di file collected macro conflicts with Special Token (#15797) 2023-11-22 11:41:55 +02:00
Walter Bright
f6802dd63f
replace common.smallbuffer.asDstring() with inline code (#15846) 2023-11-22 15:02:51 +08:00
Nicholas Wilson
3d0e2d5c38
Revert "Revert "Move a couple of functions out of dsymbol.d"" (#15842) 2023-11-22 14:38:10 +08:00
Walter Bright
4a7d803384
glue code does not need to be C++ (#15850) 2023-11-21 22:36:28 -08:00
Walter Bright
b59bc93e2d
fillHole() parameter poffset need not be pointer (#15849) 2023-11-21 22:33:23 -08:00
Walter Bright
3c63ad6392
setEthis2(): use ref parameters (#15848) 2023-11-22 13:03:24 +08:00
Walter Bright
2b6d6ede1a
simplify toWStringz() (#15847) 2023-11-22 13:02:40 +08:00
Nick Treleaven
fe4084e799
Fix error message when leftParenthesis is missing for is expression (#15844) 2023-11-22 10:58:46 +08:00
Walter Bright
9c06347eeb rename common/string.d to common/smallbuffer.d 2023-11-21 23:39:34 +01:00
Walter Bright
b280d6b7ba
modernize scanelf.d (#15550) 2023-11-21 11:06:28 -08:00
Walter Bright
1e1cc72f96 use SmallBuffer for directive 2023-11-21 12:07:02 +01:00
Walter Bright
b1c0018702
add nothrow to lib*.d and scan*.d (#15841) 2023-11-21 19:05:56 +08:00
Iain Buclaw
fc8a07b8c8
Merge pull request #15802 from dlang/revert-15789-dsymbol_sema2
Revert "Move a couple of functions out of dsymbol.d"
2023-11-21 09:04:55 +00:00
Martin Kinkelin
b5fb3b1eb8
Azure CI: Avoid deprecated compiler/src/win{32,64}.mak Makefiles (#15835)
* Azure CI: Avoid deprecated compiler/src/win{32,64}.mak Makefiles

Using build.d directly instead.

* Azure CI: Fix MODEL=32omf job
2023-11-21 10:16:02 +02:00
Walter Bright
67a4603500
toobj.d: remove some casts (#15839) 2023-11-21 10:13:54 +02:00
Iain Buclaw
0b18acb9bb
Merge pull request #15829 from ibuclaw/merge_stable
merge stable
2023-11-20 11:13:16 +00:00
Iain Buclaw
7afce7f466 Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-11-20 10:03:05 +01:00
Nick Treleaven
31c5a894d2 Fix 'no overloads callable using mutable object' wording
The error is wrong, it should include the argument types as well.
E.g. `fail_compilation/ctor_attr.d` shows this error even though there
is actually a mutable overload `foo(string)`.
2023-11-19 22:52:49 +01:00
Martin Kinkelin
d0ccbea626 Move d_do_test unittest build+run from Makefile to run.d
AFAICT, the last piece missing from run.d to fully replace the
compiler/test/Makefile.
2023-11-19 13:37:20 +01:00
Walter Bright
d1284d45b0 refactor pointerBitmap() 2023-11-18 23:45:53 +01:00
Razvan Nitu
f29a92dcbf
Extract Dsymbol.search from dsymbols.d and transform it into a visitor (#15787) 2023-11-19 06:39:57 +08:00
The Dlang Bot
428cc6d3c4
Merge pull request #15827 from ntrel/const-ctor
Fix Issue 24248 - const constructor call with mutable target gives wrong error message

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>
2023-11-18 01:40:41 +01:00
Nick Treleaven
14a49f62d5 Also show argument types 2023-11-17 21:36:23 +00:00