Re: [PATCH] testsuite: Add check_effective_target_d_runtime_has_std_library procedure

2020-04-18 Thread Iain Buclaw via Gcc-patches
On 15/04/2020 17:26, Rainer Orth wrote: > Hi Richard, > >> Iain Buclaw via Gcc-patches writes: >>> Hi, >>> >>> This patch adds an effect target d_runtime_has_std_library to >>> target-supports.exp, and some preliminary uses of it. >>> >>> The current check_effective_target_d_runtime procedure ret

[PATCH] c++: Fix crash with template spec in different namespace [PR94255]

2020-04-18 Thread Marek Polacek via Gcc-patches
This is an ICE on invalid, because we're specializing S::foo in the wrong namespace. cp_parser_class_specifier_1 parses S::foo in M and then it tries to push the nested-name-specifier of foo, which is S. By that, we're breaking the assumption of push_inner_scope that the pushed scope must be a sc

[committed][PR debug/94439] Don't let DEBUG_INSNSs change register renaming decisions

2020-04-18 Thread Jeff Law via Gcc-patches
In this BZ we're getting a debug compare failure. Thanks to a nice hint from Jakub it was pretty easy to track it back to the register renaming pass which was making different renaming decisions based on the existence of DEBUG_INSNs. The culprit is check_new_reg_p which potentially changes its

[PATCH] libphobos: Add --with-libphobos-druntime-only option.

2020-04-18 Thread Iain Buclaw via Gcc-patches
Hi, This patch adds a new configure option --with-libphobos-druntime-only. The intended purpose of the option is both for targets that don't support phobos yet, and for gdc itself to support bootstrapping itself as a self-hosted D compiler. The libphobos testsuite has been updated to only add li

Re: [PATCH][c++] Do not warn about unused macros while processing #pragma GCC optimize

2020-04-18 Thread Piotr H. Dabrowski
Ping. > Fixes c++/91318. > > libcpp/ChangeLog: > > 2019-08-06 Piotr Henryk Dabrowski > > PR c++/91318 > * include/cpplib.h: Added cpp_define_unused(), > cpp_define_formatted_unused() > * directives.c: Likewise. > > gcc/c-family/ChangeLog: > > 2019-08-06 Piotr Henryk D

[PATCH] c, objc: Fix up c_parser_objc_selector_arg after CPP_SCOPE changes [PR94637]

2020-04-18 Thread Jakub Jelinek via Gcc-patches
Hi! Similarly to inline asm, :: (or any other number of consecutive colons) can appear in ObjC @selector argument and with the introduction of CPP_SCOPE into the C FE, we need to trat CPP_SCOPE as two CPP_COLON tokens. The C++ FE does that already that way. Bootstrapped/regtested on x86_64-linux