Re: [PATCH] d: Remove D-specific version definitions from target headers

2022-10-23 Thread ibuclaw--- via Gcc-patches
> On 17/10/2022 20:08 CEST Iain Buclaw wrote: > > > Hi, > > This splits up the targetdm sources so that each file only handles one > target platform. > > Having all logic kept in the headers means that they could become out of > sync when a new target is added (loongarch*-*-linux*) or

[committed] d: Merge upstream dmd d579c467c1, phobos 88aa69b14.

2022-09-27 Thread ibuclaw--- via Gcc-patches
Hi, This patch merges the D front-end/run-time library with upstream dmd d579c467c1, and standard library with phobos 88aa69b14. D front-end changes: - Throwing from contracts of `nothrow' functions has been deprecated, as this breaks the guarantees of `nothrow'. - Added language

[committed] d: Merge upstream dmd 817610b16d, phobos b578dfad9

2022-08-27 Thread ibuclaw--- via Gcc-patches
Hi, This patch merges the D front-end with upstream dmd 817610b16d, and standard library with phobos b578dfad9. D front-end changes: - Import latest bug fixes to mainline. Phobos changes: - Import latest bug fixes to mainline. - std.logger module has been moved out of

[committed] d: Merge upstream dmd 60bfa0ee7, druntime 94bd5bcb, phobos 3a1cd9a01.

2022-05-16 Thread ibuclaw--- via Gcc-patches
Hi, Upstream dmd has now released v2.100.0, this patch merges in the latest bug fixes since the last sync-up of the release branch, as well as all new feature changes on development branch. D front-end changes: - Import dmd v2.100.0. - Add bit fields to D, enabled via the

Re: [PATCH 1/2] libphobos: fix CET for non-glibc targets

2021-12-20 Thread ibuclaw--- via Gcc-patches
> On 20/12/2021 16:41 Alex Xu (Hello71) wrote: > > > Excerpts from ibuc...@gdcproject.org's message of December 20, 2021 8:56 am: > >> On 20/12/2021 01:08 Alex Xu (Hello71) via Gcc-patches > >> wrote: > >> > >> > >> On musl, linking against libphobos fails because it requires ucontext >

Re: [PATCH 1/2] libphobos: fix CET for non-glibc targets

2021-12-20 Thread ibuclaw--- via Gcc-patches
> On 20/12/2021 01:08 Alex Xu (Hello71) via Gcc-patches > wrote: > > > On musl, linking against libphobos fails because it requires ucontext > but is not explicitly linked against it. This is caused by configure > assuming that it is implemented in assembly, but it is actually not >

Re: [PATCH] config: Add check whether D compiler works (PR103528)

2021-12-19 Thread ibuclaw--- via Gcc-patches
> On 18/12/2021 22:30 Segher Boessenkool wrote: > > > On Fri, Dec 17, 2021 at 12:12:28AM +0100, Iain Buclaw wrote: > > Hi, > > > > This patch extends AC_PROG_GDC so that as well as checking for the > > existence of a GDC compiler, also validate that it has also been built > > with libphobos,

Re: [PATCH] Always default to DWARF2_DEBUG if not specified, warn about deprecated STABS

2021-10-29 Thread ibuclaw--- via Gcc-patches
> On 26/10/2021 03:28 Joseph Myers wrote: > > > On Mon, 25 Oct 2021, Richard Biener via Gcc-patches wrote: > > > So it looks like tm_d.h is much more stripped down compared to regular > > tm_p.h but also oddly enough config/default-d.c includes tm_d.h > > while config/default-c.c explicitely

Re: [pushed] Darwin, D: Fix bootstrap when target does not support -Bstatic/dynamic.

2021-10-06 Thread ibuclaw--- via Gcc-patches
> On 05/10/2021 21:57 Iain Sandoe wrote: > > > This fixes a bootstrap fail because saw_static_libcxx was unused for > targets without support for -Bstatic/dynamic. > > The fix applied pushes the -static-libstdc++ back onto the command > line, which allows a target to substitute a static

Re: [committed] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library

2021-10-05 Thread ibuclaw--- via Gcc-patches
> On 04/10/2021 18:48 Iain Sandoe wrote: > > For targets that don’t support HAVE_LD_STATIC_DYNAMIC it would be useful > to push the option back out, so that they can use that to substitute a static > version > of the library using %:replace-outfile(-lx libx+.a%s) [ see darwin.h > for

Re: [PATCH] libiberty: d-demangle: remove parenthesis where it is not needed

2021-10-04 Thread ibuclaw--- via Gcc-patches
> On 29/09/2021 18:26 Luís Ferreira wrote: > > > Those parenthesis doesn't increase readability at all and this patch makes the > source code a bit more consistent with the rest of the dereferencing > assignments. > OK, but can you write up a changelog entry for it? Thanks, Iain.

Re: [PATCH] libiberty: d-demangle: use switch instead of if-else

2021-10-04 Thread ibuclaw--- via Gcc-patches
> On 03/10/2021 23:55 Jeff Law via Gcc-patches wrote: > > > On 9/29/2021 7:08 PM, Luís Ferreira wrote: > > This patch allows the compiler to efficiently generate jump tables instead > > of > > using if-else-if. > > > > Signed-off-by: Luís Ferreira > I'm not sure this is terribly useful. 

Re: [PATCH] libiberty: prevent null dereferencing on dlang_type

2021-09-23 Thread ibuclaw--- via Gcc-patches
> On 22/09/2021 03:31 Luís Ferreira wrote: > > > This patch prevents dereferencing a null reference on a crafted > malformed magled name, often causing SIGSEGV to be raised. > OK, seems reasonable to me. > Signed-off-by: Luís Ferreira > --- > libiberty/d-demangle.c | 2 +-

Re: [PATCH] libiberty: prevent buffer overflow when decoding user input

2021-09-23 Thread ibuclaw--- via Gcc-patches
> On 22/09/2021 03:10 Luís Ferreira wrote: > > > Currently a stack/heap overflow may happen if a crafted mangle is > maliciously used to cause denial of service, such as intentional > crashes > by accessing a reserved memory space. > Hi, Thanks for this. Is there a test that could trigger

Re: [committed] d: Fix ICE in when formating a string with '%' or '`' characters (PR98457)

2021-04-19 Thread ibuclaw--- via Gcc-patches
> On 19/04/2021 19:50 Iain Buclaw wrote: > > > Hi, > > This patch fixes an ICE that occurred in the D front-end diagnostic > handlers. The percentage character was being confused for a format > specifier in pp_format(), whilst the backtick character was confused for > the beginning of a

[PATCH V2][committed] d: Add TARGET_D_REGISTER_OS_TARGET_INFO

2021-04-14 Thread ibuclaw--- via Gcc-patches
> On 05/04/2021 21:43 Iain Buclaw wrote: > > > Hi, > > This patch adds TARGET_D_REGISTER_OS_TARGET_INFO as a new D front-end > target hook, implementing `__traits(getTargetInfo, "objectFormat")' for > all targets that have D support files. > > This trait was added earlier in the front-end as

Re: [PATCH 2/3] d: Add TARGET_D_REGISTER_CPU_TARGET_INFO

2021-04-14 Thread ibuclaw--- via Gcc-patches
> On 05/04/2021 21:43 Iain Buclaw wrote: > > > Hi, > > This patch adds TARGET_D_REGISTER_CPU_TARGET_INFO as a new D front-end > target hook, implementing `__traits(getTargetInfo, "floatAbi")' for all > targets that have D support files. > > This trait was added earlier in the front-end as

Re: [PATCH 1/3] d: Add TARGET_D_HAS_STDCALL_CONVENTION

2021-04-14 Thread ibuclaw--- via Gcc-patches
> On 05/04/2021 21:43 Iain Buclaw wrote: > > > Hi, > > This patch adds TARGET_D_HAS_STDCALL_CONVENTION as a new D front-end > target hook. It replaces the use of the D front-end `is64bit' parameter > in determining whether to insert the "stdcall" function attribute. > > It is also used to

Re: [PATCH] d: Add windows support for D compiler (PR91595)

2021-03-26 Thread ibuclaw--- via Gcc-patches
> On 21/03/2021 12:58 Iain Buclaw wrote: > > > Hi, > > This patch adds necessary backend support for MinGW/Cygwin targets so > that all relevant predefined version conditions are available, a > prerequesite for building most parts of libphobos. > After some more testing done building