Re: [patch] Fix thinko in powerpc default specs for -mabi

2022-10-02 Thread Olivier Hainque via Gcc-patches
Hello, Gentle ping for https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602143.html > 2022-09-14 Olivier Hainque > > * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): > Have any -mabi, not only -mabi=elfv*, override the --with-abi > configuration defa

[PATCH] Set discriminators for call stmts on the same line within the same basic block

2022-10-02 Thread Eugene Rozenfeld via Gcc-patches
This change is based on commit 1e6c4a7a8fb8e20545bb9f9032d3854f3f794c18 by Dehao Chen in vendors/google/heads/gcc-4_8. Tested on x86_64-pc-linux-gnu. gcc/ChangeLog: * tree-cfg.cc (assign_discriminators): Set discriminators for call stmts on the same line within the same basic bloc

Re: Adding a new thread model to GCC

2022-10-02 Thread Bernhard Reutner-Fischer via Gcc-patches
On 2 October 2022 14:54:54 CEST, LIU Hao wrote: >在 2022-10-02 04:02, Bernhard Reutner-Fischer 写道: >> On 1 October 2022 20:34:45 CEST, LIU Hao via Gcc-patches >> wrote: >>> Greetings. >> >>> The first patch is necessary because somewhere in libgfortran, `pthread_t` >>> is referenced. If the thr

Re: [PATCH] RISC-V missing __builtin_lceil and __builtin_lfloor

2022-10-02 Thread Kevin Lee
Thank you for the update Palmer. I'll certainly look into the corrupted patch issue and the floating-point test failure in gfortran. On Sun, Oct 2, 2022 at 1:42 PM Palmer Dabbelt wrote: > On Sat, 17 Sep 2022 14:16:13 PDT (-0700), Kito Cheng wrote: > > LGTM, thanks, I guess I just missed this bef

Re: [PATCH] RISC-V missing __builtin_lceil and __builtin_lfloor

2022-10-02 Thread Palmer Dabbelt
On Sat, 17 Sep 2022 14:16:13 PDT (-0700), Kito Cheng wrote: LGTM, thanks, I guess I just missed this before No worries, I'd just stubmled on it looking through old stuff. Kevin: Looks like this got corrupted, possibly from copy/paste into gmail. I resurrect it, but there's a floating-point t

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

2022-10-02 Thread Palmer Dabbelt
On Tue, 06 Sep 2022 03:39:02 PDT (-0700), manolis.tsa...@vrull.eu wrote: This commit implements the target macros (TARGET_SHRINK_WRAP_*) that enable separate shrink wrapping for function prologues/epilogues in RISC-V. Tested against SPEC CPU 2017, this change always has a net-positive effect on

[patch, RFC. Fortran] Some clobbering for INTENT(OUT) arrays

2022-10-02 Thread Thomas Koenig via Gcc-patches
Hi, following Mikael's recent patch series, here is a first idea of what extending clobbering to arrays wold look like. The attached patch works for a subset of cases, for example program main implicit none interface subroutine foo(a) integer, intent(out) :: a(*) end subrouti

Re: [Patch] libgomp/nvptx: Prepare for reverse-offload callback handling

2022-10-02 Thread Tobias Burnus
On 27.09.22 11:23, Tobias Burnus wrote: We do support #if __PTX_SM__ >= 600 (CUDA >= 8.0, ptx isa >= 5.0) and we also can configure GCC with --with-arch=sm_70 (or sm_80 or ...) Thus, adding atomics with .sys scope is possible. See attached patch. This seems to work fine and I hope I got the a

[Patch] Fortran: Add OpenMP's assume(s) directives

2022-10-02 Thread Tobias Burnus
This patch adds '!$omp assume' and '!$omp assumes' support. None of the directives is used after resolution. When we actually start using for 'assumes', it has to be stored in .mod files. The other question is how to handle 'holds()' expressions with 'assumes'. -fopenmp-simd: I used a longer wor

[committed] tree-cfg: Fix a verification diagnostic typo [PR107121]

2022-10-02 Thread Jakub Jelinek via Gcc-patches
Hi! Obvious typo in diagnostics. Committed as obvious to trunk. 2022-10-02 Jakub Jelinek PR tree-optimization/107121 * tree-cfg.cc (verify_gimple_call): Fix a typo in diagnostics, DEFFERED_INIT -> DEFERRED_INIT. --- gcc/tree-cfg.cc.jj 2022-09-29 09:13:31.321641176 +

Re: Adding a new thread model to GCC

2022-10-02 Thread LIU Hao via Gcc-patches
在 2022-10-02 04:02, Bernhard Reutner-Fischer 写道: On 1 October 2022 20:34:45 CEST, LIU Hao via Gcc-patches wrote: Greetings. The first patch is necessary because somewhere in libgfortran, `pthread_t` is referenced. If the thread model is not `posix`, it fails to compile. One of several sh

[PATCH] c++: Disallow jumps into statement expressions

2022-10-02 Thread Jakub Jelinek via Gcc-patches
On Fri, Sep 30, 2022 at 04:39:25PM -0400, Jason Merrill wrote: > > --- gcc/cp/decl.cc.jj 2022-09-22 00:14:55.478599363 +0200 > > +++ gcc/cp/decl.cc 2022-09-22 00:24:01.121178256 +0200 > > @@ -223,6 +223,7 @@ struct GTY((for_user)) named_label_entry > > bool in_transaction_scope; > >

New Swedish PO file for 'gcc' (version 12.2.0)

2022-10-02 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-12.2.0.sv.po', has ju