RE: [PATCH 1/2] Add a parameter for the builtin function of prefetch to align with LLVM

2022-10-20 Thread Jiang, Haochen via Gcc-patches
> -Original Message- > From: Segher Boessenkool > Sent: Thursday, October 20, 2022 5:07 AM > To: Jiang, Haochen > Cc: gcc-patches@gcc.gnu.org; rguent...@suse.de; Liu, Hongtao > ; ubiz...@gmail.com; richard.earns...@arm.com; > richard.sandif...@arm.com; marcus.shawcr...@arm.com; > kyrylo.t

Re: [PATCH] Enable shrink wrapping for the RISC-V target.

2022-10-20 Thread Manolis Tsamis
On Tue, Oct 18, 2022 at 8:35 PM Palmer Dabbelt wrote: > > On Tue, 18 Oct 2022 08:57:37 PDT (-0700), j...@ventanamicro.com wrote: > > > > Just a couple more comments in-line. > > > > On 10/18/22 09:18, Manolis Tsamis wrote: > >> > +/* Implement TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS. */ >

Re: [PATCH] Enable shrink wrapping for the RISC-V target.

2022-10-20 Thread Manolis Tsamis
On Wed, Oct 19, 2022 at 8:16 PM Jeff Law via Gcc-patches wrote: > > > On 10/18/22 11:35, Palmer Dabbelt wrote: > > > >> I would have expected things to work fine with libcalls, perhaps with > >> the exception of the save/restore libcalls. So that needs deeper > >> investigation. > > > > The save/

Re: [COMMITTED] PR c++/106654 - Add assume support to VRP.

2022-10-20 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 19, 2022 at 08:37:57PM -0400, Andrew MacLeod wrote: > This patch adds basic support for ASSUME functions to VRP. > > Based on the previous set of patches, Ive cleaned them up, and this provides > the basic support from rangers generalized model. It does not support > non-ssa name param

GCC 13.0.0 Status Report (2022-10-20), Stage 1 ends Nov 13th

2022-10-20 Thread Richard Biener via Gcc-patches
Status == The GCC development branch which will become GCC 13 is open for general development (Stage 1). Stage 1 will end at the end of November 13th after which we will accept no new features that have not yet been submitted. Starting with Novemer 14th we are in a two month general bugfixin

Re: [PATCH 0/6] Add Intel Sierra Forest Instructions

2022-10-20 Thread Hongtao Liu via Gcc-patches
On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu wrote: > > On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe wrote: > > > > Hi Hongtao > > > > > On 17 Oct 2022, at 02:56, Hongtao Liu wrote: > > > > > > On Mon, Oct 17, 2022 at 9:30 AM Bernhard Reutner-Fischer > > > wrote: > > >> > > >> On 17 October 2022

Re: [PATCH 0/6] Add Intel Sierra Forest Instructions

2022-10-20 Thread Iain Sandoe via Gcc-patches
> On 20 Oct 2022, at 10:09, Hongtao Liu via Gcc-patches > wrote: > > On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu wrote: >> >> On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe wrote: >>> >>> Hi Hongtao >>> On 17 Oct 2022, at 02:56, Hongtao Liu wrote: On Mon, Oct 17, 2022 at 9:

Re: [PATCH 0/6] Add Intel Sierra Forest Instructions

2022-10-20 Thread Hongtao Liu via Gcc-patches
On Thu, Oct 20, 2022 at 5:17 PM Iain Sandoe wrote: > > > > > On 20 Oct 2022, at 10:09, Hongtao Liu via Gcc-patches > > wrote: > > > > On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu wrote: > >> > >> On Wed, Oct 19, 2022 at 7:09 PM Iain Sandoe > >> wrote: > >>> > >>> Hi Hongtao > >>> > On 17

Re: [PATCH v3, rs6000] Change mode and insn condition for VSX scalar extract/insert instructions

2022-10-20 Thread Kewen.Lin via Gcc-patches
Hi Haochen, Sorry for late review, some comments are inline. on 2022/9/7 15:44, HAO CHEN GUI wrote: > Hi, > > For scalar extract/insert instructions, exponent field can be stored in a > 32-bit register. So this patch changes the mode of exponent field from DI to > SI. The instructions using DI

[PATCH] c/107305 - avoid ICEing with invalid GIMPLE input to the GIMPLE FE

2022-10-20 Thread Richard Biener via Gcc-patches
The GIMPLE FE was designed to defer semantic error checking to the GIMPLE IL verifier. But that can end up causing spurious ICEs earlier and in fact it will report an internal error. The following tries to improve the situation by explicitely calling into the verifier from the parser and intructi

Re: [PATCH] rs6000: using li/lis+oris/xoris to build constants

2022-10-20 Thread Kewen.Lin via Gcc-patches
Hi Jeff, Sorry for late review, some comments are inline. on 2022/8/24 16:13, Jiufu Guo via Gcc-patches wrote: > Hi, > > PR106708 constaint some constants which can be support by li/lis + oris/xoris. > > For constant C: > if ((c & 0x80008000ULL) == 0x8000ULL) or say: > 32(0)+1(1)+15

Re: [PATCH][AArch64] Improve immediate expansion [PR106583]

2022-10-20 Thread Richard Sandiford via Gcc-patches
Wilco Dijkstra writes: > ping > > > > Hi Richard, > Sounds good, but could you put it before the mode version, to avoid the forward declaration? >>> >>> I can swap them around but the forward declaration is still required as >>> aarch64_check_bitmask is 5000 lines before aarch64_bitmask_

[v4 PATCH 1/4] RISC-V: Minimal support of z*inx extension.

2022-10-20 Thread jiawei
From: Jiawei Minimal support of z*inx extension, include 'zfinx', 'zdinx' and 'zhinx/zhinxmin' corresponding to 'f', 'd' and 'zfh/zfhmin', the 'zdinx' will imply 'zfinx' same as 'd' imply 'f', 'zhinx' will aslo imply 'zfinx', all zfinx extension imply 'zicsr'. Co-Authored-By: Sinan Lin. gcc/C

[v4 PATCH 0/4] RISC-V: Support z*inx extensions.

2022-10-20 Thread jiawei
Zfinx extension[1] had already ratified. Here is the implementation patch set that reuse floating point pattern and ban the use of fpr when use z*inx as a target. Current works can be find in follow links, binutils and simulator works already supported on upstream. https://github.com/pz9115/ri

[v4 PATCH 2/4] RISC-V: Target support for z*inx extension.

2022-10-20 Thread jiawei
From: Jiawei Support 'TARGET_ZFINX' with float instruction pattern and builtin function. Reuse 'TARGET_HADR_FLOAT', 'TARGET_DOUBLE_FLOAT' and 'TARGET_ZHINX' patterns. gcc/ChangeLog: * config/riscv/iterators.md (TARGET_ZFINX):New target. (TARGET_ZDINX): Ditto. (TARGET_ZH

[v4 PATCH 4/4] RISC-V: Add zhinx/zhinxmin testcases.

2022-10-20 Thread jiawei
From: Jiawei Test zhinx/zhinxmin support, same like with zfh/zfhmin testcases but use gprs and don't use fmv instruction. gcc/testsuite/ChangeLog: * gcc.target/riscv/_Float16-zhinx-1.c: New test. * gcc.target/riscv/_Float16-zhinx-2.c: New test. * gcc.target/riscv/_Float1

[v4 PATCH 3/4] RISC-V: Limit regs use for z*inx extension.

2022-10-20 Thread jiawei
From: Jiawei Limit z*inx abi support with 'ilp32','ilp32e','lp64' only. Use GPR instead FPR when 'zfinx' enable, Only use even registers in RV32 when 'zdinx' enable. Enable FLOAT16 when Zhinx/Zhinxmin enabled. Co-Authored-By: Sinan Lin. gcc/ChangeLog: * config/riscv/constraints.md (TA

[pushed] aarch64: Fix matching of BRKNS

2022-10-20 Thread Richard Sandiford via Gcc-patches
Unlike other flag-setting SVE instructions, BRKNS sets the flags based on an all-true governing predicate, rather than the GP operand. Tested on aarch64-linux-gnu & pushed to trunk so far. I'll backport to release branches soon. Richard gcc/ * config/aarch64/iterators.md (SVE_BRKP): Ne

[pushed] aarch64: Prevent generation of /M BRKAS and BRKBS

2022-10-20 Thread Richard Sandiford via Gcc-patches
Bit of a brown-paper-bag bug, but: GCC was generating non-existent merging forms of BRKAS and BRKBS. Those instructions only support zero predication (although BRKA and BRKB support both). Tested on aarch64-linux-gnu & pushed to trunk so far. I'll backport to release branches soon. Richard gc

[pushed] aarch64: Commonise some folding code

2022-10-20 Thread Richard Sandiford via Gcc-patches
Add an aarch64_sve::gimple_folder helper for folding calls to integer constants. SME will make more use of this. Tested on aarch64-linux-gnu & pushed. Richard gcc/ * config/aarch64/aarch64-sve-builtins.h (gimple_folder::fold_to_cstu): New member function. * config/aarch

[pushed] aarch64: Replace CONSTEXPR with constexpr

2022-10-20 Thread Richard Sandiford via Gcc-patches
Move away from the pre-C++11 compatibility macro CONSTEXPR. Tested on aarch64-linux-gnu & pushed. Richard gcc/ * config/aarch64/aarch64-sve-builtins-base.cc: Replace CONSTEXPR with constexpr throughout. * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.

[pushed] aarch64: Use using directives to inherit constructors

2022-10-20 Thread Richard Sandiford via Gcc-patches
Now that the codebase is C++11, we can use using directives to inherit constructors from base classes. Tested on aarch64-linux-gnu & pushed. Richard gcc/ * config/aarch64/aarch64-sve-builtins-functions.h (quiet) (rtx_code_function, rtx_code_function_rotated, unspec_based_functio

Make 'autoreconf' work for 'gcc', 'libobjc' (was: [PATCH] regenerate configure files and config.h.in files)

2022-10-20 Thread Thomas Schwinge
Hi! Given: On 2022-09-20T14:42:53+0100, Iain Sandoe via Gcc-patches wrote: > +1 from me … > .. I have been maintaining something similar locally. On 2022-09-20T17:23:15+0200, Martin Liška wrote: > I do support that as well. ..., I have now pushed to master branch commit 25861cf3a88a07c8dca3

amdgcn: Use FLAT addressing for all functions with pointer arguments [PR105421] (was: [PATCH] [og12] amdgcn: Use FLAT addressing for all functions with pointer arguments)

2022-10-20 Thread Thomas Schwinge
Hi! On 2022-10-14T13:38:55+, Julian Brown wrote: > The GCN backend uses a heuristic to determine whether to use FLAT or > GLOBAL addressing in a particular (offload) function: namely, if a > function takes a pointer-to-scalar parameter, it is assumed that the > pointer may refer to "flat scra

Add 'libgomp.oacc-c-c++-common/private-big-1.c' [PR105421] (was: amdgcn: Use FLAT addressing for all functions with pointer arguments [PR105421])

2022-10-20 Thread Thomas Schwinge
Hi! On 2022-10-20T12:05:28+0200, I wrote: > On 2022-10-14T13:38:55+, Julian Brown wrote: >> The GCN backend uses a heuristic to determine whether to use FLAT or >> GLOBAL addressing in a particular (offload) function: namely, if a >> function takes a pointer-to-scalar parameter, it is assumed

Re: [Patch] libgomp: Add offload_device_gcn check, add requires-4a.c test

2022-10-20 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 12, 2022 at 04:05:32PM +0200, Tobias Burnus wrote: > include/ChangeLog: > > * gomp-constants.h (GOMP_DEVICE_HSA): Comment (unused). Comment out unused define. or so, please. > libgomp/ChangeLog: > > * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):

[PATCH] Avoid PHI - PHI recurrence in vectorization

2022-10-20 Thread Richard Biener via Gcc-patches
The reported regression of libgomp loop-14.C shows that there isn't generally a good reliable place to insert the permute upfront so the following simply restricts recurrence vectorization to the cases where the latch value isn't defined by a PHI. Bootstrapped and tested on x86_64-unknown-linux-gn

[committed] wwwdocs: *: Omit trailing slash for tags

2022-10-20 Thread Gerald Pfeifer
HTML 5 now recommends against trailing slashes on void elements, so it is instead of . --- htdocs/index.html | 2 +- htdocs/news/egcs-vcg.html | 2 +- htdocs/news/gcse.html | 2 +- htdocs/projects/gupc.html | 2 +- htdocs/projects/tree-ssa/index

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Martin Liška
On 10/19/22 18:42, Joseph Myers wrote: > On Wed, 19 Oct 2022, Martin Liška wrote: > >>> Currently, there is a tarball with texinfo sources for all the manuals >>> for each version. >> >> Well, then equivalent would be packaging all .rst files together with the >> corresponding >> conf.py, logo.*

Remove support for Intel MIC offloading (was: [PATCH] Remove dead code.)

2022-10-20 Thread Thomas Schwinge
Hi! On 2021-11-12T06:41:41-0800, "H.J. Lu via Gcc-patches" wrote: > On Fri, Nov 12, 2021 at 6:27 AM Martin Liška wrote: >> On 11/8/21 15:19, Jeff Law wrote: >> > On 11/8/2021 2:59 AM, Jakub Jelinek via Gcc-patches wrote: >> >> liboffloadmic is copied from upstream [...] >> >> But I have no idea

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Martin Liška
On 10/19/22 18:30, Sandra Loosemore wrote: > On 10/19/22 05:09, Martin Liška wrote: >> On 10/18/22 00:26, Sandra Loosemore wrote: >>> On 10/17/22 07:28, Martin Liška wrote: Hello. Based on the very positive feedback I was given at the Cauldron Sphinx Documentation BoF, I'm

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Martin Liška
On 10/20/22 04:26, Xi Ruoyao wrote: > On Mon, 2022-10-17 at 15:28 +0200, Martin Liška wrote: >> Hello. >> >> Based on the very positive feedback I was given at the Cauldron Sphinx >> Documentation BoF, >> I'm planning migrating the documentation on 9th November. There are still >> some minor comm

Re: [DOCS] Python Language Conventions

2022-10-20 Thread Gerald Pfeifer
On Mon, 17 Oct 2022, Martin Liška wrote: > All right, let me install my initial patch with the improved wording. The validator noticed a small issue which I addressed thusly (by moving up the - the beginning of implicitly closes a ). No worries - that's what validators are for. :-) Gerald co

Re: Remove support for Intel MIC offloading (was: [PATCH] Remove dead code.)

2022-10-20 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 20, 2022 at 01:15:43PM +0200, Thomas Schwinge wrote: > I'm proposing the attached "Remove support for Intel MIC offloading" > (generated with 'git format-patch --irreversible-delete', and 'diff's for > regenerated files manually snipped, to reduce its size). ChangeLog missing, you'll n

Add 'gcc.dg/tree-ssa/pr107195-3.c' [PR107195] (was: Add 'c-c++-common/torture/pr107195-1.c' [PR107195] (was: [COMMITTED] [PR107195] Set range to zero when nonzero mask is 0.))

2022-10-20 Thread Thomas Schwinge
Hi! On 2022-10-18T07:41:29+0200, Aldy Hernandez wrote: > On Mon, Oct 17, 2022 at 4:47 PM Thomas Schwinge > wrote: >> On 2022-10-17T15:58:47+0200, Aldy Hernandez wrote: >> > On Mon, Oct 17, 2022 at 9:44 AM Thomas Schwinge >> > wrote: >> >> On 2022-10-11T10:31:37+0200, Aldy Hernandez via Gcc-p

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Xi Ruoyao via Gcc-patches
(CC our team members.) On Thu, 2022-10-20 at 13:27 +0200, Martin Liška wrote: > > Ouch.  This will be very painful for Linux From Scratch.  We'll need to > > add 23 Python modules to build the documentation, while we only have 88 > > packages in total currently...  And we don't want to omit GCC >

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Martin Liška
On 10/20/22 13:49, Xi Ruoyao wrote: > (CC our team members.) > > On Thu, 2022-10-20 at 13:27 +0200, Martin Liška wrote: >>> Ouch.  This will be very painful for Linux From Scratch.  We'll need to >>> add 23 Python modules to build the documentation, while we only have 88 >>> packages in total curr

Re: [DOCS] Python Language Conventions

2022-10-20 Thread Martin Liška
On 10/20/22 13:34, Gerald Pfeifer wrote: > On Mon, 17 Oct 2022, Martin Liška wrote: >> All right, let me install my initial patch with the improved wording. > > The validator noticed a small issue which I addressed thusly (by > moving up the - the beginning of implicitly closes a ). > > No wor

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Xi Ruoyao via Gcc-patches
On Thu, 2022-10-20 at 13:53 +0200, Martin Liška wrote: > On 10/20/22 13:49, Xi Ruoyao wrote: > > (CC our team members.) > > > > On Thu, 2022-10-20 at 13:27 +0200, Martin Liška wrote: > > > > Ouch.  This will be very painful for Linux From Scratch.  We'll need to > > > > add 23 Python modules to bu

Re: [PATCH] libstdc++: Redefine __from_chars_alnum_to_val's table

2022-10-20 Thread Jonathan Wakely via Gcc-patches
On Mon, 17 Oct 2022 at 17:27, Patrick Palka via Libstdc++ wrote: > > It looks like the constexpr commit r13-3313-g378a0f1840e694 > caused some modules regressions: > > FAIL: g++.dg/modules/xtreme-header-4_b.C -std=c++2b (test for excess errors) > FAIL: g++.dg/modules/xtreme-header_b.C -std=c+

[committed] passes: Fix a comment typo

2022-10-20 Thread Jakub Jelinek via Gcc-patches
Hi! This patch fixes a single typo in comment. Committed as obvious to trunk. 2022-10-20 Jakub Jelinek * passes.cc (pass_manager::register_pass): Fix a comment typo - copmilation -> compilation. --- gcc/passes.cc.jj2022-10-18 10:38:48.150406180 +0200 +++ gcc/passes.cc

[committed] testsuite: Add some missing -Wno-psabi options

2022-10-20 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcases FAIL on i686-linux due to excess diagnostics for -Wpsabi. Tested on x86_64-linux with make check-gcc RUNTESTFLAGS='--target_board=unix\{-m32/-msse2,-m32/-mno-mmx/-mno-sse,-m64\} i386.exp=pr107271.c btf.exp=btf-function-3.c' and committed to trunk as obvious. 2022-10

Re: [PATCH][AArch64] Improve immediate expansion [PR106583]

2022-10-20 Thread Wilco Dijkstra via Gcc-patches
Hi Richard, > Can you do the aarch64_mov_imm changes as a separate patch?  It's difficult > to review the two changes folded together like this. Sure, I'll send a separate patch. So here is version 2 again: [PATCH v2][AArch64] Improve immediate expansion [PR106583] Improve immediate expansion o

Re: Add 'gcc.dg/tree-ssa/pr107195-3.c' [PR107195] (was: Add 'c-c++-common/torture/pr107195-1.c' [PR107195] (was: [COMMITTED] [PR107195] Set range to zero when nonzero mask is 0.))

2022-10-20 Thread Aldy Hernandez via Gcc-patches
> I understand 'r & 3' to be logically equivalent to '(r & 2) && (r & 1)', > right? For r == 2, r & 3 == 2, whereas (r & 2) && (r & 1) == 0, so no? Aldy

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Martin Liška
On 10/20/22 13:55, Xi Ruoyao wrote: > On Thu, 2022-10-20 at 13:53 +0200, Martin Liška wrote: >> On 10/20/22 13:49, Xi Ruoyao wrote: >>> (CC our team members.) >>> >>> On Thu, 2022-10-20 at 13:27 +0200, Martin Liška wrote: > Ouch.  This will be very painful for Linux From Scratch.  We'll need to

Re: Remove support for Intel MIC offloading (was: [PATCH] Remove dead code.)

2022-10-20 Thread Michael Matz via Gcc-patches
Hey, On Thu, 20 Oct 2022, Thomas Schwinge wrote: > This had been done in > wwwdocs commit 5c7ecfb5627e412a3d142d8dc212f4cd39b3b73f > "Document deprecation of OpenMP MIC offloading in GCC 12". > > I'm sad about this, because -- in theory -- such a plugin is very useful > for offloading simulation

Re: [PATCH] bpf: add preserve_field_info builtin

2022-10-20 Thread Jose E. Marchesi via Gcc-patches
Hi David. Thanks for the patch. Please see a few comments below. > @@ -975,6 +978,161 @@ static tree bpf_core_compute (tree, vec > *); > static int bpf_core_get_index (const tree); > static bool is_attr_preserve_access (tree); > > +static void > +maybe_make_core_relo (tree expr, enum btf_c

Re: Remove support for Intel MIC offloading (was: [PATCH] Remove dead code.)

2022-10-20 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 20, 2022 at 12:33:28PM +, Michael Matz wrote: > Hey, > > On Thu, 20 Oct 2022, Thomas Schwinge wrote: > > > This had been done in > > wwwdocs commit 5c7ecfb5627e412a3d142d8dc212f4cd39b3b73f > > "Document deprecation of OpenMP MIC offloading in GCC 12". > > > > I'm sad about this,

Re: [PATCH] 16/19 modula2 front end: bootstrap and documentation tools

2022-10-20 Thread Martin Liška
Hello. I noticed the devel/modula-2 branch contains the following dead links: - http://www.gccsummit.org/2006 - http://www.gccsummit.org/2010/speakers.php?types=LIGHTNING - http://floppsie.comp.glam.ac.uk/Papers/paper23/gaius-mulley-gnu-m2.pdf - http://floppsie.comp.glam.ac.uk/Papers/paper15/mull

[PATCH] match.pd: Fix up gcc.dg/pr54346.c on i686-linux [PR54346]

2022-10-20 Thread Jakub Jelinek via Gcc-patches
Hi! The pr54346.c testcase FAILs on i686-linux (without -msse*) for multiple reasons. One is the trivial missing -Wno-psabi which the following patch adds, but that isn't enough. The thing is that without native vector support, we have VEC_PERM_EXPRs in the IL and are actually considering the ne

[PATCH] libstdc++: Don't use gstdint.h anymore

2022-10-20 Thread Arsen Arsenović via Gcc-patches
libstdc++-v3/ChangeLog: * configure.ac: Stop generating gstdint.h. * src/c++11/compatibility-atomic-c++0x.cc: Stop using gstdint.h. --- Tested on x86_64-pc-linux-gnu. libstdc++-v3/configure.ac| 6 -- libstdc++-v3/src/c++11/compatibility-atomic-c++0

Re: [PATCH] match.pd: Fix up gcc.dg/pr54346.c on i686-linux [PR54346]

2022-10-20 Thread Richard Biener via Gcc-patches
> Am 20.10.2022 um 14:49 schrieb Jakub Jelinek via Gcc-patches > : > > Hi! > > The pr54346.c testcase FAILs on i686-linux (without -msse*) for multiple > reasons. One is the trivial missing -Wno-psabi which the following patch > adds, but that isn't enough. The thing is that without native

Re: [PATCH] libstdc++: Don't use gstdint.h anymore

2022-10-20 Thread Jonathan Wakely via Gcc-patches
On Thu, 20 Oct 2022 at 13:58, Arsen Arsenović via Libstdc++ wrote: > > libstdc++-v3/ChangeLog: > > * configure.ac: Stop generating gstdint.h. > * src/c++11/compatibility-atomic-c++0x.cc: Stop using gstdint.h. > --- > Tested on x86_64-pc-linux-gnu. > > libstdc++-v3/configure.ac

Re: Remove support for Intel MIC offloading (was: [PATCH] Remove dead code.)

2022-10-20 Thread Richard Biener via Gcc-patches
> Am 20.10.2022 um 14:41 schrieb Jakub Jelinek via Gcc-patches > : > > On Thu, Oct 20, 2022 at 12:33:28PM +, Michael Matz wrote: >> Hey, >> >>> On Thu, 20 Oct 2022, Thomas Schwinge wrote: >>> >>> This had been done in >>> wwwdocs commit 5c7ecfb5627e412a3d142d8dc212f4cd39b3b73f >>> "Docu

[PATCH]vect: Fix vectype when widening container type in bitfield pattern [PR107326]

2022-10-20 Thread Andre Vieira (lists) via Gcc-patches
Hi, The 'vect_recog_bitfield_ref_pattern' was not correctly adapting the vectype when widening the container. I thought the original tests covered that code-path but they didn't, so I added a new run-test that covers it too. Bootstrapped and regression tested on x86_64 and aarch64. gcc/Cha

Re: [PATCH]vect: Fix vectype when widening container type in bitfield pattern [PR107326]

2022-10-20 Thread Richard Biener via Gcc-patches
> Am 20.10.2022 um 15:59 schrieb Andre Vieira (lists) via Gcc-patches > : > > Hi, > > The 'vect_recog_bitfield_ref_pattern' was not correctly adapting the vectype > when widening the container. > > I thought the original tests covered that code-path but they didn't, so I > added a new run

[PATCH] c++ modules: handle CONCEPT_DECL in node_template_info [PR102963]

2022-10-20 Thread Patrick Palka via Gcc-patches
Here node_template_info is overlooking that CONCEPT_DECL has TEMPLATE_INFO too, which makes get_originating_module_decl for the CONCEPT_DECL fail to return the corresponding TEMPLATE_DECL, which leads to an ICE from import_entity_index while pretty printing the CONCEPT_DECL's module suffix as part

Re: [PATCH v3] Re: OpenMP: Generate SIMD clones for functions with "declare target"

2022-10-20 Thread Jakub Jelinek via Gcc-patches
On Sun, Oct 16, 2022 at 07:23:05PM -0600, Sandra Loosemore wrote: > My sense is that the first approach would be more straightforward than the > second one, and I am willing to continue to work on that. However, I think > I need some direction to get started, as I presently know nothing about > cg

[COMMITTED] Do not set NAN flags for VARYING ranges when !HONOR_NANS.

2022-10-20 Thread Aldy Hernandez via Gcc-patches
Since NANs can't appear in ranges for !HONOR_NANS, there's no reason to set them in a VARYING range. gcc/ChangeLog: * value-range.h (frange::set_varying): Do not set NAN flags for !HONOR_NANS. * value-range.cc (frange::normalize_kind): Adjust for no NAN when !HONOR

[COMMITTED] Replace finite_operands_p with maybe_isnan.

2022-10-20 Thread Aldy Hernandez via Gcc-patches
The finite_operands_p function was incorrectly named, as it only returned TRUE when !NAN. This was leftover from the initial implementation of frange. Using the maybe_isnan() nomenclature is more consistent and easier to understand. gcc/ChangeLog: * range-op-float.cc (finite_operand_p):

Re: [PATCH] c++: Fix up mangling ICE with void{} [PR106863]

2022-10-20 Thread Jason Merrill via Gcc-patches
On 10/19/22 04:00, Jakub Jelinek wrote: Hi! We ICE on the following testcase during mangling, finish_compound_literal returns for void{} void_node and the mangler doesn't handle it. Handling void_node in the mangler seems problematic to me, because we don't know for which case it has been create

[PATCH v2] libstdc++: Don't use gstdint.h anymore

2022-10-20 Thread Arsen Arsenović via Gcc-patches
libstdc++-v3/ChangeLog: * configure.ac: Stop generating gstdint.h. * src/c++11/compatibility-atomic-c++0x.cc: Stop using gstdint.h. --- > > +using guintptr_t = __UINTPTR_TYPE__; > > I think this should be local in the only function that uses it. Sure. Tested on x86_64-pc-linux-g

Re: [PATCH v2] aarch64: update Ampere-1 core definition

2022-10-20 Thread Richard Sandiford via Gcc-patches
Richard Sandiford writes: > Philipp Tomsich writes: >> This brings the extensions detected by -mcpu=native on Ampere-1 systems >> in sync with the defaults generated for -mcpu=ampere1. >> >> Note that some early kernel versions on Ampere1 may misreport the >> presence of PAUTH and PREDRES (i.e.,

[PATCH] c++, v2: Fix up mangling ICE with void{} [PR106863]

2022-10-20 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 20, 2022 at 10:19:59AM -0400, Jason Merrill wrote: > I think in a template we want the same early-return behavior as in the > processing_template_decl block farther down in the function: specifically, > we want to return a CONSTRUCTOR (for which COMPOUND_LITERAL_P is true), so > it mang

Re: [PATCH] c++, v2: Fix up mangling ICE with void{} [PR106863]

2022-10-20 Thread Jason Merrill via Gcc-patches
On 10/20/22 10:38, Jakub Jelinek wrote: On Thu, Oct 20, 2022 at 10:19:59AM -0400, Jason Merrill wrote: I think in a template we want the same early-return behavior as in the processing_template_decl block farther down in the function: specifically, we want to return a CONSTRUCTOR (for which COMP

RE: [PATCH 7/15] arm: Emit build attributes for PACBTI target feature

2022-10-20 Thread Kyrylo Tkachov via Gcc-patches
Hi Andrea, > -Original Message- > From: Gcc-patches bounces+kyrylo.tkachov=arm@gcc.gnu.org> On Behalf Of Andrea > Corallo via Gcc-patches > Sent: Friday, August 12, 2022 4:31 PM > To: Andrea Corallo via Gcc-patches > Cc: Richard Earnshaw ; nd > Subject: [PATCH 7/15] arm: Emit build

Re: [PATCH] c++ modules: handle CONCEPT_DECL in node_template_info [PR102963]

2022-10-20 Thread Nathan Sidwell via Gcc-patches
On 10/20/22 10:07, Patrick Palka wrote: Here node_template_info is overlooking that CONCEPT_DECL has TEMPLATE_INFO too, which makes get_originating_module_decl for the CONCEPT_DECL fail to return the corresponding TEMPLATE_DECL, which leads to an ICE from import_entity_index while pretty printing

Re: [PATCH] c++: Don't shortcut TREE_CONSTANT vector type CONSTRUCTORs in cxx_eval_constant_expression [PR107295]

2022-10-20 Thread Jason Merrill via Gcc-patches
On 10/19/22 03:48, Jakub Jelinek wrote: Hi! The excess precision support broke building skia (dependency of firefox) on ia32 (it has something like the a constexpr variable), but as the other cases show, it is actually a preexisting problem if one uses casts from constants with wider floating po

RE: [PATCH 10/12 V2] arm: Implement cortex-M return signing address codegen

2022-10-20 Thread Kyrylo Tkachov via Gcc-patches
(Sorry, this is a very late reply) > -Original Message- > From: Gcc-patches bounces+kyrylo.tkachov=arm@gcc.gnu.org> On Behalf Of Andrea > Corallo via Gcc-patches > Sent: Monday, August 8, 2022 10:34 AM > To: Richard Earnshaw > Cc: Richard Earnshaw ; nd ; > Andrea Corallo via Gcc-patc

RE: [PATCH 12/15 V2] arm: implement bti injection

2022-10-20 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Andrea Corallo > Sent: Thursday, September 29, 2022 4:46 PM > To: Kyrylo Tkachov > Cc: Andrea Corallo via Gcc-patches ; Richard > Earnshaw ; nd > Subject: [PATCH 12/15 V2] arm: implement bti injection > > Kyrylo Tkachov writes: > > > Hi Andrea, > > [..

[PATCH] libstdc++: Make placeholders inline when inline variables are available

2022-10-20 Thread Arsen Arsenović via Gcc-patches
This slightly lowers the dependency of generated code on libstdc++.so. libstdc++-v3/ChangeLog: * include/std/functional: Make placeholders inline, if possible. --- libstdc++-v3/include/std/functional | 66 - 1 file changed, 37 insertions(+), 29 deletions(-) d

Re: [PATCH 7/15] arm: Emit build attributes for PACBTI target feature

2022-10-20 Thread Richard Earnshaw via Gcc-patches
On 20/10/2022 15:47, Kyrylo Tkachov via Gcc-patches wrote: Hi Andrea, -Original Message- From: Gcc-patches On Behalf Of Andrea Corallo via Gcc-patches Sent: Friday, August 12, 2022 4:31 PM To: Andrea Corallo via Gcc-patches Cc: Richard Earnshaw ; nd Subject: [PATCH 7/15] arm: Emit

Re: [PATCH 0/6] Add Intel Sierra Forest Instructions

2022-10-20 Thread Iain Sandoe
Hi Hongtao, > On 20 Oct 2022, at 10:20, Hongtao Liu wrote: > > On Thu, Oct 20, 2022 at 5:17 PM Iain Sandoe wrote: >> >> >> >>> On 20 Oct 2022, at 10:09, Hongtao Liu via Gcc-patches >>> wrote: >>> >>> On Thu, Oct 20, 2022 at 9:11 AM Hongtao Liu wrote: On Wed, Oct 19, 2022 at 7:

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Joseph Myers
On Thu, 20 Oct 2022, Martin Liška wrote: > > Could generated man and info pages be provided as a tarball on > > gcc.gnu.org or ftp.gnu.org? > > Not planning doing that. Release tarballs (but not snapshots) currently include the info files and man pages, via gcc_release running a build with --e

Re: [PATCH RESEND 1/1] p1689r5: initial support

2022-10-20 Thread Jason Merrill via Gcc-patches
On 10/18/22 08:18, Ben Boeckel wrote: On Tue, Oct 11, 2022 at 07:42:43 -0400, Ben Boeckel wrote: On Mon, Oct 10, 2022 at 17:04:09 -0400, Jason Merrill wrote: Can we share utf8 parsing code with decode_utf8_char in pretty-print.cc? I can look at factoring that out. I'll have to decode its logi

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Martin Liška
On 10/20/22 17:35, Joseph Myers wrote: > On Thu, 20 Oct 2022, Martin Liška wrote: > >>> Could generated man and info pages be provided as a tarball on >>> gcc.gnu.org or ftp.gnu.org? >> >> Not planning doing that. > > Release tarballs (but not snapshots) currently include the info files and > ma

[PATCH] libstdc++: Enable building libstdc++.{a,so} when !HOSTED

2022-10-20 Thread Arsen Arsenović via Gcc-patches
This enables us to provide symbols for placeholders and numeric limits, and allows users to mess about with linker flags less. libstdc++-v3/ChangeLog: * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory. * Makefile.in: Regenerate. * src/Makefile.am [!_GLIBCXX_HOSTED

[PATCH (pushed)] Remove dead link to Buildbot.

2022-10-20 Thread Martin Liška
Removed after a discussion with Jan-Benedict. He's currently working on his testing infrastructure. Cheers, Martin --- htdocs/style.mhtml | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/style.mhtml b/htdocs/style.mhtml index 0790a972..08def35e 100644 --- a/htdocs/style.mhtml +++ b/htdo

[PATCH] OpenMP: Duplicate checking for map clauses in Fortran (PR107214)

2022-10-20 Thread Julian Brown
This patch adds duplicate checking for OpenMP "map" clauses, taking some cues from the implementation for C in c-typeck.cc:c_finish_omp_clauses (and similar for C++). In addition to the existing use of the "mark" and "comp_mark" bitfields in the gfc_symbol structure, the patch adds several new bit

Re: [PATCH] c++: constraint matching, TEMPLATE_ID_EXPR, current inst

2022-10-20 Thread Jason Merrill via Gcc-patches
On 9/17/22 10:31, Patrick Palka wrote: On Sat, 17 Sep 2022, Jason Merrill wrote: On 9/16/22 10:59, Patrick Palka wrote: On Fri, 16 Sep 2022, Jason Merrill wrote: On 9/15/22 11:58, Patrick Palka wrote: Here we're crashing during constraint matching for the instantiated hidden friends due to

PATCH: c++tools: fix compilation

2022-10-20 Thread Guillaume Gomez via Gcc-patches
Hi, This patch fixes the following compilation error: ../.././c++tools/server.cc: In function ‘void server(bool, int, module_resolver*)’: ../.././c++tools/server.cc:756:69: error: ‘readers’ was not declared in this scope; did you mean ‘read’? 756 | if (active < 0 && sock_fd >= 0 &

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Joseph Myers
On Thu, 20 Oct 2022, Martin Liška wrote: > > Also, but not strictly part of the release issue: > > > > (d) Builds with missing or old Sphinx should work regardless of whether > > such files are in the source directory - but if they aren't in the source > > directory, the effect of missing or ol

[COMMITTED] A false UNORDERED_ means neither operand can be a NAN.

2022-10-20 Thread Aldy Hernandez via Gcc-patches
The false side of UNORDERED_ means neither operand can be a NAN. Adjust all the op[12]_range entries for the UNORDERED operators such that a known NAN on one operands means the other operands is undefined. gcc/ChangeLog: * range-op-float.cc (foperator_unordered_le::op1_range): Adjust

Re: Announcement: Porting the Docs to Sphinx - 9. November 2022

2022-10-20 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 20, 2022 at 04:43:06PM +, Joseph Myers wrote: > On Thu, 20 Oct 2022, Martin Liška wrote: > > > > Also, but not strictly part of the release issue: > > > > > > (d) Builds with missing or old Sphinx should work regardless of whether > > > such files are in the source directory - bu

[PATCH] Fix uninitialized variable warnings

2022-10-20 Thread Michael Eager
The attached patch corrects a couple uninitialized variable warnings. The variables are initialized to NULL and tests for this, calling gcc_unreachable(). Replace other calls to abort() for with gcc_unreachable(). Thanks to Jan-Benedict Glaw for bringing this to my attention. ** I'm receiving

[PATCH] Always use TYPE_MODE instead of DECL_MODE for vector field

2022-10-20 Thread H.J. Lu via Gcc-patches
commit e034c5c895722e0092d2239cd8c2991db77d6d39 Author: Jakub Jelinek Date: Sat Dec 2 08:54:47 2017 +0100 PR target/78643 PR target/80583 * expr.c (get_inner_reference): If DECL_MODE of a non-bitfield is BLKmode for vector field with vector raw mode, use TYPE_MOD

Re: [PATCH 1/2] Add a parameter for the builtin function of prefetch to align with LLVM

2022-10-20 Thread Segher Boessenkool
On Thu, Oct 20, 2022 at 01:44:15AM +, Jiang, Haochen wrote: > Maybe the testcase change cause some misunderstanding and concern. > > Actually, the patch did not disrupt the previous builtins, as the > builtin_prefetch > uses vargs. I set the default value of the new parameter as data prefetch

Re: [PATCH] mips: Add appropriate linker flags when compiling with -static-pie

2022-10-20 Thread linted via Gcc-patches
On Wed, Oct 12, 2022 at 2:18 PM Jeff Law via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > > On 9/25/22 09:49, linted via Gcc-patches wrote: > > Hello, > > I'm just checking to see if anyone has had a chance to look at this. > > > > Thank you > > > > On Wed, Sep 14, 2022 at 2:09 PM linted wrote

Re: [PATCH RESEND 1/1] p1689r5: initial support

2022-10-20 Thread Ben Boeckel via Gcc-patches
On Thu, Oct 20, 2022 at 11:39:25 -0400, Jason Merrill wrote: > Oops, I was thinking this was in gcc as well. In libcpp there's > _cpp_valid_utf8 (which calls one_utf8_to_cppchar). This routine has a lot more logic (including UCN decoding) and the `one_utf8_to_cppchar` also supports out-of-bounds

[PATCH] Microblaze: Fix uninitialized variable warnings

2022-10-20 Thread Michael Eager
The attached patch corrects a couple uninitialized variable warnings. The variables are initialized to NULL and tested for this, calling gcc_unreachable(). Replace other calls to abort() for with gcc_unreachable(). Thanks to Jan-Benedict Glaw for bringing this to my attention. ** I'm receivin

Re: [PATCH 1/2] Add a parameter for the builtin function of prefetch to align with LLVM

2022-10-20 Thread Andrew Pinski via Gcc-patches
On Thu, Oct 20, 2022 at 10:28 AM Segher Boessenkool wrote: > > On Thu, Oct 20, 2022 at 01:44:15AM +, Jiang, Haochen wrote: > > Maybe the testcase change cause some misunderstanding and concern. > > > > Actually, the patch did not disrupt the previous builtins, as the > > builtin_prefetch > >

[OG12] libgomp.c-c++-common/requires-4.c: dg-xfail-run-if for USM with -foffload-memory=

2022-10-20 Thread Tobias Burnus
Follow up to the mainline commit (https://gcc.gnu.org/r13-3407 + backported to OG12): "libgomp: Add offload_device_gcn check, add requires-4a.c test" This xfails requires-4.c on pseudo-USM systems. As mentioned in the email for that patch OG12's unified-share memory implemention is for pseudo-U

[OG12] omp-oacc-kernels-decompose.cc: fix -fcompare-debug with GIMPLE_DEBUG

2022-10-20 Thread Tobias Burnus
Given that omp-oacc-kernels-decompose.cc only exists on OG12, the fix only applies to OG12. The fail show up since "Kernels loops annotation: C and C++." as that adds GIMPLE_DEBUG which is not handled in omp-oacc-kernels-decompose.cc at all. (Actually, it even fails with a sorry when compiling wi

Re: [PATCH v4] testsuite: Sanitize fails for SP FPU on Arm

2022-10-20 Thread Joseph Myers
On Wed, 19 Oct 2022, Torbjörn SVENSSON via Gcc-patches wrote: > This patch stops reporting fails for Arm targets with single > precision floating point unit for types wider than 32 bits (the width > of float on arm-none-eabi). > > As reported in PR102017, fenv is reported as supported in recent >

Re: [PATCH RESEND 1/1] p1689r5: initial support

2022-10-20 Thread Jason Merrill via Gcc-patches
On 10/20/22 13:31, Ben Boeckel wrote: On Thu, Oct 20, 2022 at 11:39:25 -0400, Jason Merrill wrote: Oops, I was thinking this was in gcc as well. In libcpp there's _cpp_valid_utf8 (which calls one_utf8_to_cppchar). This routine has a lot more logic (including UCN decoding) and the `one_utf8_to

Re: [PATCH 1/2] Add a parameter for the builtin function of prefetch to align with LLVM

2022-10-20 Thread Segher Boessenkool
On Thu, Oct 20, 2022 at 11:12:01AM +0800, Hongtao Liu wrote: > On Thu, Oct 20, 2022 at 9:39 AM Hongtao Liu wrote: > > On Thu, Oct 20, 2022 at 5:08 AM Segher Boessenkool > > > Please use a separate pattern for this, and leave prefetch to mean data > > > prefetch, as documented! Documentation you d

Re: [PATCH 1/2] Add a parameter for the builtin function of prefetch to align with LLVM

2022-10-20 Thread Segher Boessenkool
On Thu, Oct 20, 2022 at 07:34:13AM +, Jiang, Haochen wrote: > > > + /* Argument 3 must be either zero or one. */ > > > + if (INTVAL (op3) != 0 && INTVAL (op3) != 1) > > > +{ > > > + warning (0, "invalid fourth argument to %<__builtin_prefetch%>;" > > > + " using one"); > > > > "usi

Re: [COMMITTED] Replace finite_operands_p with maybe_isnan.

2022-10-20 Thread Mikael Morin
Hello, Le 20/10/2022 à 16:13, Aldy Hernandez via Gcc-patches a écrit : The finite_operands_p function was incorrectly named, as it only returned TRUE when !NAN. This was leftover from the initial implementation of frange. Using the maybe_isnan() nomenclature is more consistent and easier to un

Re: [COMMITTED] Replace finite_operands_p with maybe_isnan.

2022-10-20 Thread Mikael Morin
Le 20/10/2022 à 20:56, Mikael Morin a écrit : Doesn't this miss a check of flag_finite_math_only to be strictly equivalent?  You keep that check for the two-arguments case, so I guess it's not redundant? Well, the check is removed in the follow-up patch, so maybe is is after all.

Re: [PATCH] Fortran: error recovery with references of bad array constructors [PR105633]

2022-10-20 Thread Mikael Morin
Le 19/10/2022 à 22:49, Harald Anlauf via Fortran a écrit : Dear Fortranners, here's another patch that improves error receovery with references of bad array constructors leading to an ICE after a NULL pointer dereference. Original patch by Steve, which I amended with a logic cleanup. Regtested

  1   2   >