[PATCH] x86: Add __volatile__ to __cpuid and __cpuid_count

2021-03-21 Thread H.J. Lu via Gcc-patches
Tested on Linux/x86-64 and Linux/i686. OK for master and release branches? Thanks. H.J. --- Since CPUID instruction may return different values on hybrid core. volatile is needed on asm statements in . PR target/99704 * config/i386/cpuid.h (__cpuid): Add __volatile__. (_

Re: [PATCH] rs6000: Fix some unexpected empty split conditions

2021-03-21 Thread Kewen.Lin via Gcc-patches
Hi Segher, on 2021/3/20 上午5:58, Segher Boessenkool wrote: > On Fri, Mar 19, 2021 at 11:50:41PM +0800, Kewen.Lin wrote: >>> I am curious if the splitters ever triggered where they should not have? >> >> Do you have any suggestion to catch this? I thought the regression >> testing probably can show

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

2021-03-21 Thread YunQiang Su
Ping for this patch again.

回复: 回复: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-03-21 Thread yunqiang.su
> -邮件原件- > 发件人: Jeff Law > 发送时间: 2021年3月20日 23:42 > 收件人: yunqiang...@cipunited.com; gcc-patches@gcc.gnu.org > 抄送: ma...@orcam.me.uk; l...@redhat.com; d...@debian.org; > s...@debian.org; jiaxun.y...@flygoat.com > 主题: Re: 回复: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and > -mcompa

[PATCH] AIX struct alignment (PR 99557)

2021-03-21 Thread David Edelsohn via Gcc-patches
The AIX power alignment rules apply the natural alignment of the "first member" if it is of a floating-point data type (or is an aggregate whose recursively "first" member or element is such a type). The alignment associated with these types for subsequent members use an alignment value where the f

Re: [Patch] Fortran: Fix 'name' bound size [PR99688]

2021-03-21 Thread Jerry DeLisle
Hi Tobias and others, Reembering some of my own history, we always have used a +1 on 'LENGTH_MAX' items to allow the C null termination on strings or buffers for obvious reasons. Certainly OK for trunk and backports. Regards, Jerry On 3/21/21 9:08 AM, Tobias Burnus wrote: The gfc_match_se

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

2021-03-21 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 Swedish team of translators. The file is available at: https://translationproject.org/latest/gcc/sv.po (This file, 'gcc-11.1-b20210207.sv.po'

Re: [committed] nios2: Fix format complaints and similar diagnostics

2021-03-21 Thread Martin Sebor via Gcc-patches
On 3/17/21 6:00 PM, Sandra Loosemore wrote: On 3/17/21 4:40 PM, Martin Sebor wrote: [*] Does -Wformat-diag really trigger when using older GCC to build? I thought it only triggered in stage 2 and 3 when using the same GCC to rebuild itself. I always end up hopelessly confused by anything invo

Re: [PING][PATCH] adjust "partly out of bounds" warning (PR 98503)

2021-03-21 Thread Martin Sebor via Gcc-patches
On 3/20/21 10:48 AM, Jeff Law via Gcc-patches wrote: On 3/18/2021 4:18 PM, Martin Sebor via Gcc-patches wrote: Ping: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564483.html The review of this patch digressed into a design discussion of a new, more capable implementation of -Wstrict-

[Patch] Fortran: Fix 'name' bound size [PR99688]

2021-03-21 Thread Tobias Burnus
The gfc_match_select_rank issue showed up in the testsuite and was found by Martin's asan-bootstrapped GCC. First analysis by Harald – thanks to both! However, I think the other variables I fixed were also prone to overflows; see below for its usage. OK for mainline? Other branches? Tobias PS:

Re: [committed] [PR99680] Check empty constraint before using CONSTRAINT_LEN.

2021-03-21 Thread Segher Boessenkool
Hi! On Sat, Mar 20, 2021 at 10:53:32AM -0400, Vladimir Makarov via Gcc-patches wrote: > It seems CONSTRAINT_LEN treats constraint '\0' as one having length 1. Maybe we should fix that? See attached patch. Segher diff --git a/gcc/genpreds.c b/gcc/genpreds.c index 8499a2a2383b..b83a030d6a5d 1

Re: [PATCH] ipa: Check that scalar types that IPA-CP comes up with are sane (PR99122)

2021-03-21 Thread Jeff Law via Gcc-patches
On 3/5/2021 8:27 AM, Martin Jambor wrote: Hi, this patch fixes the last bit of PR 99122 where various bits of IPA infrastructure are presented with a program with type mismatches that make it have undefined behavior, and when inlining or performing IPA-CP, and encountering such mismatch, we ba

Re: [PATCH] dwarf2out: Fix debug info for 2 byte floats [PR99388]

2021-03-21 Thread Jeff Law via Gcc-patches
On 3/5/2021 3:21 AM, Jakub Jelinek via Gcc-patches wrote: Hi! Aarch64, ARM and a couple of other architectures have 16-bit floats, HFmode. As can be seen e.g. on void foo (void) { __fp16 a = 1.0; asm ("nop"); a = 2.0; asm ("nop"); a = 3.0; asm ("nop"); } testcase, GCC mishand

Re: [PATCH] fwprop: Fix single_use_p calculation

2021-03-21 Thread Richard Sandiford via Gcc-patches
Ilya Leoshkevich writes: > Bootstrapped and regtested on x86_64-redhat-linux, ppc64le-redhat-linux > and s390x-redhat-linux. Ok for master? Given what was said downthread, I agree we should fix this for GCC 11. Sorry for missing this problem in the initial review. > Commit efb6bc55a93a ("fwprop

Re: [PATCH] [PR99581] Define relaxed memory and use it for aarch64

2021-03-21 Thread Richard Sandiford via Gcc-patches
Vladimir Makarov writes: > On 2021-03-19 11:42 a.m., Richard Sandiford wrote: >> Vladimir Makarov via Gcc-patches writes: >>> The following patch solves P1 PR99581 >>> >>>     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99581 >>> >>> The patch was successfully tested and bootstrapped on x86-64

[PATCH] d: Add openbsd support for D compiler (PR99691)

2021-03-21 Thread Iain Buclaw via Gcc-patches
Hi, This patch adds necessary backend support for OpenBSD targets so that all relevant predefined version conditions are available, a prerequesite for building most parts of libphobos. Tested gdc by building x86_64-pc-openbsd as a cross compiler, and I've been doing some preliminary testing on an

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

2021-03-21 Thread Iain Buclaw via Gcc-patches
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. Tested gdc by building x86_64-pc-mingw64 as a cross compiler, before I commit it to mainline, is there anyt