[committed] gcse, ipa-devirt: Use %wd/%wu instead of HOST_WIDE_INT_PRINT* in diagnostics [PR99288]

2021-02-27 Thread Jakub Jelinek via Gcc-patches
Hi! HOST_WIDE_INT_PRINT* in the string literals of warning/error/inform etc. make those messages non-translatable, and we have a perfectly fine alternative when not using system *printf - %w{d,u}. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2021-02-27 J

PR analyzer/94362 Partial Fix

2021-02-27 Thread brian.sobulefsky via Gcc-patches
Hi, Please find a patch to fix part of the bug PR analyzer/94362. This bug is a false positive for a null dereference found when compiling openssl. The cause is the constraint_manager not knowing that i >= 0 within the for block: for ( ; i-- > 0; ) The bug can be further reduced to the constrain

[PATCH] dwarf2out: Fix -gsplit-dwarf on riscv or other non-.uleb128 targets [PR99090]

2021-02-27 Thread Jakub Jelinek via Gcc-patches
Hi! As mentioned in the PR, riscv* only supports .uleb128 with constant arguments, doesn't support difference of two labels because of aggressive linker relaxations. But I bet various other targets, especially those not using GNU assembler, might suffer from the same problem. As the FIXME comment

[PATCH/RFA] libstdc++: provide conversion from day, month to unsigned long, PR99301

2021-02-27 Thread Hans-Peter Nilsson via Gcc-patches
Since 97d6161f6a7fa712 / r11-7370 "libstdc++: More efficient days from date" I see an additional 81 testsuite-errors for cris-elf, with this in g++.log for one randomly picked regressing test: FAIL: g++.dg/cpp1y/pr57640.C -std=c++2a (test for excess errors) Excess errors: /x/gccobj/cris-elf/libst

New German PO file for 'gcc' (version 11.1-b20210207)

2021-02-27 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the German team of translators. The file is available at: https://translationproject.org/latest/gcc/de.po (This file, 'gcc-11.1-b20210207.de.po',

Re: [PATCH/RFA] libstdc++: provide conversion from day, month to unsigned long, PR99301

2021-02-27 Thread Jonathan Wakely via Gcc-patches
On 27/02/21 12:42 +0100, Hans-Peter Nilsson via Libstdc++ wrote: Since 97d6161f6a7fa712 / r11-7370 "libstdc++: More efficient days from date" I see an additional 81 testsuite-errors for cris-elf, with this in g++.log for one randomly picked regressing test: FAIL: g++.dg/cpp1y/pr57640.C -std=c++

[PATCH] libgomp, testsuite : Require alias support for PR96390 testcase.

2021-02-27 Thread Iain Sandoe
Hi, This test fails everywhere on Darwin, which does not have support for symbol aliases. Add a dg-require-alias to UNSUPPORT it. Ordinarily, I would have considered adding the dg-require as ‘obvious’ but I see that you already handled one case specifically (so wonder if there is some reason no

Re: [PATCH] libgomp, testsuite : Require alias support for PR96390 testcase.

2021-02-27 Thread Jakub Jelinek via Gcc-patches
On Sat, Feb 27, 2021 at 02:59:03PM +, Iain Sandoe wrote: > This test fails everywhere on Darwin, which does not have support for symbol > aliases. Add a dg-require-alias to UNSUPPORT it. > > Ordinarily, I would have considered adding the dg-require as ‘obvious’ but I > see > that you already

[pushed] Darwin : Update a disgnostic message [NFC].

2021-02-27 Thread Iain Sandoe
Hi The avoids a contraction and a format diagnostic warning. (it’s debatable whether this is really a useful user-facing error - but leaving that to another day). tested on x86_64-darwin, pushed to master, thanks Iain gcc/ChangeLog: * config/host-darwin.c (darwin_gt_pch_use_address): M

[pushed] c++: Allow GNU attributes before lambda -> [PR90333]

2021-02-27 Thread Jason Merrill via Gcc-patches
In my 9.3/10 patch for 90333 I allowed attributes between [] and (), and after the trailing return type, but not in the place that GCC 8 expected them, and we've gotten several bug reports about that. So let's allow them there, as well. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/Chang

Re: [PATCH] coroutines : Remove throwing_cleanup marks from the ramp [PR95822].

2021-02-27 Thread Jason Merrill via Gcc-patches
On 2/26/21 4:36 PM, Iain Sandoe wrote: Jason Merrill wrote: On 2/24/21 3:06 PM, Iain Sandoe wrote: The FE contains a mechanism for cleaning up return expressions if a function throws during the execution of cleanups prior to the return. If the original function has a return value with a non

Re: V3 [PATCH 3/5] Support the PGO build for binutils+gdb

2021-02-27 Thread Mike Frysinger via Gcc-patches
On 19 Dec 2020 10:10, H.J. Lu via Gdb-patches wrote: > --- a/Makefile.in > +++ b/Makefile.in > > +PGO_BUILD_TRAINING_FLAGS_TO_PASS = \ > + PGO_BUILD_TRAINING=yes \ > + CFLAGS_FOR_TARGET="$(PGO_BUILD_TRAINING_CFLAGS)" \ > + CXXFLAGS_FOR_TARGET="$(PGO_BUILD_TRAINING_CXXFLAGS)" > + > +# Ig

[PATCH] MIPS: R6: load/store can process unaligned address

2021-02-27 Thread YunQiang Su
MIPS release 6 requires the lw/ld/sw/sd can work with unaligned address, while it can be implemented by full hardware or trap&emulate. Since it is may be fully done by hardware, we add an option -m(no-)unaligned-access, the kernel may need it. gcc/ChangeLog: * config/mips/mips.h (ISA_HAS