Re: [PATCH RFA] libstdc++: #ifdef out #pragma GCC system_header

2024-09-24 Thread Jonathan Wakely
On 23/09/24 11:06 -0400, Jason Merrill wrote: Tested x86_64-pc-linux-gnu, OK for trunk? Yes please, I've wanted this for years, but it wasn't practical until you changed some of the warnings recently. Thanks!

Re: [wwwdocs][Patch] gcc-15: Fortran - mention -funsigned + PowerPC Darwin IEEE module support

2024-09-21 Thread Gerald Pfeifer
On Fri, 20 Sep 2024, Tobias Burnus wrote: > Comments, remarks to, approval of the attached wwwdocs patch? + Experimental support for unsigned integers; enabled by the + -funsigned, see https://gcc.gnu.org/onlinedocs/gfortran/Experimental-features-for-Fortran-202Y.html"; + >gfortran docu

Re: [wwwdocs][Patch] gcc-15: Update OpenMP section for constr/destr on devices + UID routines

2024-09-20 Thread Gerald Pfeifer
On Fri, 20 Sep 2024, Tobias Burnus wrote: > A minor update for a bug fix / impl.-quality feature and a proper new > feature. Looks fine to me. Gerald

[wwwdocs][Patch] gcc-15: mention wider offloading arch combination support (e.g. aarch64 + nvptx)

2024-09-20 Thread Tobias Burnus
This is supposed to document that GCC now supports offloading, e.g., from an ARM CPU to a Nvidia GPU (i.e. Grace<->Hopper) or, e.g., x86-64 to RISC-V. → https://gcc.gnu.org/PR96265 and https://gcc.gnu.org/PR111937 for the associated PRs. I think it is important enough to get it into the r

[wwwdocs][Patch] gcc-15: Update OpenMP section for constr/destr on devices + UID routines

2024-09-20 Thread Tobias Burnus
A minor update for a bug fix / impl.-quality feature and a proper new feature. Any comments before I apply it? Tobias gcc-15: Update OpenMP section for constr/destr on devices + UID routines diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html index 7c372688..14514131 100644

[wwwdocs][Patch] gcc-15: Fortran - mention -funsigned + PowerPC Darwin IEEE module support

2024-09-20 Thread Tobias Burnus
Hi all, I thought it makes sense to have a look at what went into GCC 15 to update the Fortran section. However, while several bugs were fixed (and extended some features a tiny bit) [hooray!], I did not really see many newsworthy features. Comments, remarks to, approval of the attached wwwdocs

GCC 15: nvptx '-mptx=3.1' multilib variants are deprecated

2024-09-19 Thread Thomas Schwinge
Hi! Regarding ongoing maintenance efforts, and avoiding to build multilib variants that probably nobody uses apart from a few of us testing these out of routine (via building/linking with explicit '-mptx=3.1'), I propose: "GCC 15: nvptx '-mptx=3.1' multilib variants are

Re: [gcc-wwwdocs PATCH] gcc-14: Mention -march=gracemont support in x86_64

2024-09-19 Thread Gerald Pfeifer
On Thu, 19 Sep 2024, Haochen Jiang wrote: > When I was backporting my doc patch in gcc trunk today, I found when > adding -march=gracemont in GCC14, the corresponding wwwdoc is missing. > This patch is adding that. This looks fine, thank you. Gerald

[gcc-wwwdocs PATCH] gcc-14: Mention -march=gracemont support in x86_64

2024-09-18 Thread Haochen Jiang
Hi all, When I was backporting my doc patch in gcc trunk today, I found when adding -march=gracemont in GCC14, the corresponding wwwdoc is missing. This patch is adding that. Ok for wwwdocs trunk? Thx, Haochen --- htdocs/gcc-14/changes.html | 4 1 file changed, 4 insertions(+) diff

Re: [PATCH v2] GCC Driver : Enable very long gcc command-line option

2024-09-17 Thread Andrew Pinski
On Tue, Sep 17, 2024 at 3:40 AM Dora, Sunil Kumar wrote: > > Hi Andrew, > > Initially, I thought to address long command line options (when exceeding > 128KB) without disrupting the existing GCC driver behavior. > > As you suggested, I implemented changes to use the

Re: [PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-17 Thread Jakub Jelinek
On Tue, Sep 17, 2024 at 11:13:09AM +0200, Jakub Jelinek wrote: > So maybe better > tree arg = e_p->value; > tree f; > if ((in_typeof || in_alignof) > && TREE_CODE (arg) == COMPONENT_REF > && (f = TREE_OPERAND (arg, 1)) > && TRE

Re: [PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-17 Thread Jakub Jelinek
On Sat, Sep 14, 2024 at 08:58:28PM +0200, Jakub Jelinek wrote: > if (has_counted_by_object (e_p->value)) > expr.value = get_counted_by_ref (e_p->value); > else if (in_typeof && TREE_CODE (e_p->value) == COMPONENT_REF) > { > tree counted_by_t

Re: [PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-15 Thread Qing Zhao
> On Sep 14, 2024, at 8:59 PM, Jakub Jelinek wrote: > > On Wed, Sep 11, 2024 at 09:13:40PM +, Qing Zhao wrote: >> @@ -11741,6 +11770,55 @@ c_parser_postfix_expression (c_parser *parser) >>set_c_expr_source_range (&expr, loc, close_paren_loc); >>break; >> } >> +case

New Chinese (simplified) PO file for 'gcc' (version 14.2.0)

2024-09-14 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 Chinese (simplified) team of translators. The file is available at: https://translationproject.org/latest/gcc/zh_CN.po (This

Re: [PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-14 Thread Jakub Jelinek
On Wed, Sep 11, 2024 at 09:13:40PM +, Qing Zhao wrote: > @@ -11741,6 +11770,55 @@ c_parser_postfix_expression (c_parser *parser) > set_c_expr_source_range (&expr, loc, close_paren_loc); > break; > } > + case RID_BUILTIN_COUNTED_BY_REF: > + { > + vec

Re: [PATCH v1][GCC] aarch64: Add GCS build attributes support.

2024-09-12 Thread Eric Gallager
t; available at [1]. > > To check whether the assembler being used to build the toolchain > supports these directives, a new gcc configure check is added in > gcc/configure.ac. > > If the assembler support these directives, .aeabi_subsection and > .aeabi_attribute directiv

Re: [PATCH v1][GCC] aarch64: Add GCS build attributes support.

2024-09-12 Thread Kyrylo Tkachov
bler being used to build the toolchain > supports these directives, a new gcc configure check is added in > gcc/configure.ac. > > If the assembler support these directives, .aeabi_subsection and > .aeabi_attribute directives are emitted in the generated assembly, > when -mbran

Re: [PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-11 Thread Qing Zhao
;>*__p = kmalloc(__size); \ >> }) >> >> Right now, any addition of a counted_by annotation must also >> include an open-coded assignment of the counter variable after >> the allocation: >> >> p = alloc(p, array, how_many); >> p->counter =

Re: [PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-11 Thread Bill Wendling
; \ > *__p = kmalloc(__size); \ > }) > > Right now, any addition of a counted_by annotation must also > include an open-coded assignment of the counter variable after > the allocation: > > p = alloc(p, array, how_many); > p->counter = how_many; > >

[PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-11 Thread Qing Zhao
ually adding the open-coded counted-by intializations everywhere in the Linux kernel, a new GCC builtin __builtin_counted_by_ref will be very useful to be added to help the adoption of the counted-by attribute. -- Built-in Function: TYPE __builtin_counted_by_ref (PTR) The built-in function '__bu

[PATCH v1][GCC] aarch64: Add GCS build attributes support.

2024-09-11 Thread Srinath Parvathaneni
available at [1]. To check whether the assembler being used to build the toolchain supports these directives, a new gcc configure check is added in gcc/configure.ac. If the assembler support these directives, .aeabi_subsection and .aeabi_attribute directives are emitted in the generated asse

Re: Is it possible to get an old posed Patch from gcc-patches archive??

2024-09-11 Thread Arsen Arsenović
Qing Zhao writes: > Hi, > > I was trying to study an old posted patch (but was not approved and > committed) in the following link: > > https://gcc.gnu.org/pipermail/gcc-patches/2020-December/561096.html > > However, I cannot get the patch from the atta

Re: [PATCH v4] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-11 Thread Qing Zhao
> On Sep 10, 2024, at 17:47, Jakub Jelinek wrote: > > On Tue, Sep 10, 2024 at 09:28:04PM +, Qing Zhao wrote: >> @@ -11741,6 +11770,54 @@ c_parser_postfix_expression (c_parser *parser) >>set_c_expr_source_range (&expr, loc, close_paren_loc); >>break; >> } >> + case RID_BUILTIN_COUNT

Is it possible to get an old posed Patch from gcc-patches archive??

2024-09-11 Thread Qing Zhao
Hi, I was trying to study an old posted patch (but was not approved and committed) in the following link: https://gcc.gnu.org/pipermail/gcc-patches/2020-December/561096.html However, I cannot get the patch from the attachment part as following: -- next part -- A non

Re: [PATCH v4] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Jakub Jelinek
On Tue, Sep 10, 2024 at 09:28:04PM +, Qing Zhao wrote: > @@ -11741,6 +11770,54 @@ c_parser_postfix_expression (c_parser *parser) > set_c_expr_source_range (&expr, loc, close_paren_loc); > break; > } > + case RID_BUILTIN_COUNTED_BY_REF: > + { > + vec

[PATCH v4] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Qing Zhao
rone work of manually adding the open-coded counted-by intializations everywhere in the Linux kernel, a new GCC builtin __builtin_counted_by_ref will be very useful to be added to help the adoption of the counted-by attribute. -- Built-in Function: TYPE __builtin_counted_by_ref (PTR

Re: [PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Qing Zhao
offsetof(__typeof(*__p), FAM), >> you can't have an offset outside of a structure (ok, except doing something >> like use fld[100] as FAM). offsetof + sizeof (elt) * count is the actually >> needed size, say if it is > > (offset + sizeof * c) could be smaller than si

Re: [PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Martin Uecker
Am Dienstag, dem 10.09.2024 um 20:36 +0200 schrieb Jakub Jelinek: > On Tue, Sep 10, 2024 at 06:31:23PM +, Qing Zhao wrote: > > > > > > > On Sep 10, 2024, at 14:09, Jakub Jelinek wrote: > > > > > > On Tue, Sep 10, 2024 at 06:02:45PM +, Qing Zhao wrote: > > > > > #define alloc(P, FAM, COU

Re: [PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Jakub Jelinek
On Tue, Sep 10, 2024 at 06:31:23PM +, Qing Zhao wrote: > > > > On Sep 10, 2024, at 14:09, Jakub Jelinek wrote: > > > > On Tue, Sep 10, 2024 at 06:02:45PM +, Qing Zhao wrote: > >>> #define alloc(P, FAM, COUNT) ({ \ > >>> __auto_type __p = &(P); \ > >>> __auto_type __c = (COUNT); \ > >>>

Re: [PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Qing Zhao
> On Sep 10, 2024, at 14:09, Jakub Jelinek wrote: > > On Tue, Sep 10, 2024 at 06:02:45PM +, Qing Zhao wrote: >>> #define alloc(P, FAM, COUNT) ({ \ >>> __auto_type __p = &(P); \ >>> __auto_type __c = (COUNT); \ >>> size_t __size = sizeof(*(*__p)) + sizeof(*(*__p)->FAM) * __c; \ > > Shouldn

[PATCH v3] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Qing Zhao
dious and error-prone work of manually adding the open-coded counted-by intializations everywhere in the Linux kernel, a new GCC builtin __builtin_counted_by_ref will be very useful to be added to help the adoption of the counted-by attribute. -- Built-in Function: TYPE __builtin_counted_by_ref (P

Re: [PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Jakub Jelinek
On Tue, Sep 10, 2024 at 06:02:45PM +, Qing Zhao wrote: > > #define alloc(P, FAM, COUNT) ({ \ > > __auto_type __p = &(P); \ > > __auto_type __c = (COUNT); \ > > size_t __size = sizeof(*(*__p)) + sizeof(*(*__p)->FAM) * __c; \ Shouldn't that be size_t __size = offsetof(__typeof(*__p), FAM) +

Re: [PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Qing Zhao
Thanks a lot for the tips. I updated the 2 testing cases per your suggestion, they work well. I will send the 3rd version of the patch soon. Qing > On Sep 10, 2024, at 11:42, Martin Uecker wrote: > > Am Dienstag, dem 10.09.2024 um 13:51 + schrieb Qing Zhao: >> #define alloc(P, FAM, COUN

Re: [PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Martin Uecker
Am Dienstag, dem 10.09.2024 um 13:51 + schrieb Qing Zhao: >   #define alloc(P, FAM, COUNT) ({ \ >     typeof(P) __p; \ >     size_t __size = sizeof(*P) + sizeof(*P->FAM) * COUNT; \ >     __p = kmalloc(__size, GFP); \ >     typeof(_Generic(__builtin_counted_by_ref(__p->FAM), \ >   

[PATCH v2] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-10 Thread Qing Zhao
_many; In order to avoid the tedious and error-prone work of manually adding the open-coded counted-by intializations everywhere in the Linux kernel, a new GCC builtin __builtin_counted_by_ref will be very useful to be added to help the adoption of the counted-by attribute. -- Built-i

Re: [PATCH] ada: Fix gcc-interface/misc.cc compilation on SPARC

2024-09-10 Thread Marc Poulhiès
Ada build on SPARC: >> >> In file included from ./tm_p.h:4, >> from >> /vol/gcc/src/hg/master/local/gcc/ada/gcc-interface/misc.cc:31: >> /vol/gcc/src/hg/master/local/gcc/config/sparc/sparc-protos.h:46:47: error: >> use of enum ‘memmodel’ without prev

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-09 Thread Bill Wendling
On Sun, Sep 8, 2024 at 3:07 AM Martin Uecker wrote: > > Am Sonntag, dem 08.09.2024 um 02:09 -0700 schrieb Bill Wendling: > > On Fri, Sep 6, 2024 at 10:50 PM Martin Uecker wrote: > > > > > > Am Freitag, dem 06.09.2024 um 13:59 -0700 schrieb Bill Wendling: > > > > On Fri, Sep 6, 2024 at 12:32 PM Ma

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-09 Thread Qing Zhao
> On Sep 9, 2024, at 10:20, Jakub Jelinek wrote: > > On Mon, Sep 09, 2024 at 02:10:05PM +, Qing Zhao wrote: >> Okay, now after finishing reading all the discussion so far, I realized that >> we are back to the previous pointer approach: >> >> __builtin_get_counted_by (p->FAM) >> >> Works

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-09 Thread Jakub Jelinek
On Mon, Sep 09, 2024 at 02:10:05PM +, Qing Zhao wrote: > Okay, now after finishing reading all the discussion so far, I realized that > we are back to the previous pointer approach: > > __builtin_get_counted_by (p->FAM) > > Works as: > > If (has_counted_by (p->FAM)) > return &p->COUNT; >

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-09 Thread Qing Zhao
Okay, now after finishing reading all the discussion so far, I realized that we are back to the previous pointer approach: __builtin_get_counted_by (p->FAM) Works as: If (has_counted_by (p->FAM)) return &p->COUNT; else return (void *)0; Then the user will use it as: auto p = __builtin_get

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-09 Thread Qing Zhao
t;>>> Hi, >>>>>>> >>>>>>> Thanks for the information. >>>>>>> >>>>>>> Yes, providing a unary operator similar as __counted_by(PTR) as >>>>>>> suggested by mu

Re: [PATCH 1/4] testsuite: Use dg-compile, not gcc -c

2024-09-08 Thread Jørgen Kvalsvik
On 8/23/24 09:41, Jan Hubicka wrote: Since this is a pure compile test it makes sense to inform dejagnu of it. gcc/testsuite/ChangeLog: * gcc.misc-tests/gcov-23.c: Use dg-compile, not gcc -c OK, Honza Thanks, Pushed. --- gcc/testsuite/gcc.misc-tests/gcov-23.c | 3 ++- 1 file

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-08 Thread Martin Uecker
Am Sonntag, dem 08.09.2024 um 02:09 -0700 schrieb Bill Wendling: > On Fri, Sep 6, 2024 at 10:50 PM Martin Uecker wrote: > > > > Am Freitag, dem 06.09.2024 um 13:59 -0700 schrieb Bill Wendling: > > > On Fri, Sep 6, 2024 at 12:32 PM Martin Uecker wrote: > > > > > > > ... > > > > > > > > My reco

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-08 Thread Martin Uecker
. The idea is that if the > counter can't be used as an l-value, we wouldn't add an implicit > r-value -> l-value cast (an internal Clang AST node). In the cases > where it can be used as an l-value, we add the implicit cast. I > imagine GCC has some kind of analogue to tha

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-08 Thread Bill Wendling
On Fri, Sep 6, 2024 at 11:16 PM Martin Uecker wrote: > > Am Samstag, dem 07.09.2024 um 00:12 + schrieb Qing Zhao: > > Now, if > > > > 1. __builtin_get_counted_by should return a LVALUE instead of a pointer > > (required by CLANG’s design) > > And > > 2. It’s better not to change the behavior

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-08 Thread Bill Wendling
t; Yes, providing a unary operator similar as __counted_by(PTR) as > >>>>> suggested by multiple people previously is a cleaner approach. > >>>>> > >>>>> Then the programmer will use the following: > >>>>> > >>>>&

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-08 Thread Bill Wendling
unted_by(PTR) as > > > > > > suggested by multiple people previously is a cleaner approach. > > > > > > > > > > > > Then the programmer will use the following: > > > > > > > > > > > > __builtin_choose_expr( &

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-07 Thread Jakub Jelinek
On Sat, Sep 07, 2024 at 07:50:29AM +0200, Martin Uecker wrote: > > 2. Apple's implementation supports expressions in the '__counted_by' > > attribute, thus the 'count' may be an R-value that can't have its > > address taken. > > > > [1] > > https://discourse.llvm.org/t/rfc-introducing-new-clang

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-06 Thread Martin Uecker
gt; > > > > > > > > > > Yes, providing a unary operator similar as __counted_by(PTR) as > > > > > > > suggested by multiple people previously is a cleaner approach. > > > > > > > > > > > > > > Then the programm

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-06 Thread Martin Uecker
; > > > > > > > > > > > Yes, providing a unary operator similar as __counted_by(PTR) as > > > > > > suggested by multiple people previously is a cleaner approach. > > > > > > > > > > > > Then the pro

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-06 Thread Martin Uecker
n the programmer will use the following: > > > > > > > > > > __builtin_choose_expr( > > > > > __builtin_has_attribute (__p->FAM, "counted_by”) > > > > > __builtin_get_counted_by(__p->FAM) = COUNT, 0

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-06 Thread Qing Zhao
ggested >>>>> by multiple people previously is a cleaner approach. >>>>> >>>>> Then the programmer will use the following: >>>>> >>>>> __builtin_choose_expr( >>>>>__builtin_has_attribute (__p->FAM, "counte

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-06 Thread Bill Wendling
d_by”) > > > > __builtin_get_counted_by(__p->FAM) = COUNT, 0); > > > > > > > > From the programmer’s point of view, it’s cleaner too. > > > > > > > > However, there is one issue with “__builtin_choose_expr” currently in > >

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-06 Thread Martin Uecker
rogrammer will use the following: > > > > > > __builtin_choose_expr( > > > __builtin_has_attribute (__p->FAM, "counted_by”) > > > __builtin_get_counted_by(__p->FAM) = COUNT, 0); > > > > > > From the programmer’s point of view, it’s

Re: [PATCH v2] GCC Driver : Enable very long gcc command-line option

2024-09-06 Thread Andrew Pinski
Following your suggestion, I have updated the logic to avoid hardcoding > /tmp. > Please find the revised version of patch at the following link: > > https://gcc.gnu.org/pipermail/gcc-patches/2024-September/662519.html > > Thanks, > Sunil Dora >

Re: [PATCH v2] GCC Driver : Enable very long gcc command-line option

2024-09-06 Thread Dora, Sunil Kumar
ed the logic to avoid hardcoding /tmp. Please find the revised version of patch at the following link: https://gcc.gnu.org/pipermail/gcc-patches/2024-September/662519.html Thanks, Sunil Dora From: Andrew Pinski Sent: Friday, August 30, 2024 8:05 PM To: Hemraj, Deept

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-06 Thread Qing Zhao
_builtin_get_counted_by(__p->FAM) = COUNT, 0); >> >> From the programmer’s point of view, it’s cleaner too. >> >> However, there is one issue with “__builtin_choose_expr” currently in GCC, >> its documentation explicitly mentions this limitation: >> (https:

[PATCH v3] GCC Driver : Enable very long gcc command-line option

2024-09-06 Thread Deepthi . Hemraj
From: Deepthi Hemraj For excessively long environment variables i.e >128KB Store the arguments in a temporary file and collect them back together in collect2. This commit patches for COLLECT_GCC_OPTIONS issue: GCC should not limit the length of command line passed to collect2. ht

New Ukrainian PO file for 'gcc' (version 14.2.0)

2024-09-06 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 Ukrainian team of translators. The file is available at: https://translationproject.org/latest/gcc/uk.po (This file, 'gcc-14.

Re: [PATCH] ada: Fix gcc-interface/misc.cc compilation on SPARC

2024-09-06 Thread Eric Botcazou
file included from ./tm_p.h:4, > from > /vol/gcc/src/hg/master/local/gcc/ada/gcc-interface/misc.cc:31: > /vol/gcc/src/hg/master/local/gcc/config/sparc/sparc-protos.h:46:47: error: > use of enum ‘memmodel’ without previous declaration 46 | extern void > sparc_e

[PATCH] ada: Fix gcc-interface/misc.cc compilation on SPARC

2024-09-06 Thread Rainer Orth
/gcc/src/hg/master/local/gcc/ada/gcc-interface/misc.cc:31: /vol/gcc/src/hg/master/local/gcc/config/sparc/sparc-protos.h:46:47: error: use of enum ‘memmodel’ without previous declaration 46 | extern void sparc_emit_membar_for_model (enum memmodel, int, int

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-09-05 Thread Bill Wendling
the programmer will use the following: > > __builtin_choose_expr( > __builtin_has_attribute (__p->FAM, "counted_by”) > __builtin_get_counted_by(__p->FAM) = COUNT, 0); > > From the programmer’s point of view, it’s cleaner too. > > However, there is o

[committed, gcc-14] libstdc++: Fix std::variant to reject array types [PR116381]

2024-09-04 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to gcc-14. -- >8 -- For the backport, rejecting array types is only done in strict modes. libstdc++-v3/ChangeLog: PR libstdc++/116381 * include/std/variant (variant): Fix conditions for static_assert to match the spec. * testsu

[committed, wwwdocs] gcc-15: Fiji gfx803 device support removed

2024-09-02 Thread Andrew Stubbs
--- htdocs/gcc-15/changes.html | 7 +++ 1 file changed, 7 insertions(+) diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html index edce138e..7c372688 100644 --- a/htdocs/gcc-15/changes.html +++ b/htdocs/gcc-15/changes.html @@ -123,6 +123,13 @@ a work-in-progress. +AMD

[PATCH v12 2/4] gcc/: Rename array_type_nelts() => array_type_nelts_minus_one()

2024-08-31 Thread Alejandro Colomar
The old name was misleading. While at it, also rename some temporary variables that are used with this function, for consistency. Link: <https://inbox.sourceware.org/gcc-patches/9fffd80-dca-2c7e-14b-6c9b509a7...@redhat.com/T/#m2f661c67c8f7b2c405c8c7fc3152dd85dc729120> gcc/Cha

Re: [PATCH v2] GCC Driver : Enable very long gcc command-line option

2024-08-30 Thread Andrew Pinski
On Fri, Aug 30, 2024 at 12:34 AM wrote: > > From: Deepthi Hemraj > > For excessively long environment variables i.e >128KB > Store the arguments in a temporary file and collect them back together in > collect2. > > This commit patches for COLLECT_GCC_OPTIONS issue:

Re: PING ^1 [PATCH] GCC Driver : Enable very long gcc command-line option

2024-08-30 Thread Dora, Sunil Kumar
Thank you, Richard, for your feedback. I have removed the FILE_GCC_OPTION and used COLLECT_GCC_OPTION exclusively to manage the long command line option. The revised V2 patch has been posted and can be found at the following link: https://gcc.gnu.org/pipermail/gcc-patches/2024-August/661842

[PATCH v2] GCC Driver : Enable very long gcc command-line option

2024-08-30 Thread Deepthi . Hemraj
From: Deepthi Hemraj For excessively long environment variables i.e >128KB Store the arguments in a temporary file and collect them back together in collect2. This commit patches for COLLECT_GCC_OPTIONS issue: GCC should not limit the length of command line passed to collect2. ht

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-29 Thread Qing Zhao
unted_by”) __builtin_get_counted_by(__p->FAM) = COUNT, 0); From the programmer’s point of view, it’s cleaner too. However, there is one issue with “__builtin_choose_expr” currently in GCC, its documentation explicitly mentions this limitation: (https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins

RE: [gcc-wwwdocs PATCH] gcc-15: Mention recent update for x86_64 backend

2024-08-28 Thread Jiang, Haochen
> -Original Message- > From: Gerald Pfeifer > Sent: Thursday, August 29, 2024 3:20 AM > > On Wed, 28 Aug 2024, Haochen Jiang wrote: > > Sorry for the disturb since I mis-typoed gcc-patches to gcc-patchs, > > resend the patch. > > No worries. > >

Re: [gcc-wwwdocs PATCH] gcc-15: Mention recent update for x86_64 backend

2024-08-28 Thread Gerald Pfeifer
On Wed, 28 Aug 2024, Haochen Jiang wrote: > Sorry for the disturb since I mis-typoed gcc-patches to gcc-patchs, > resend the patch. No worries. > This patch will add documentation for recent update in x86-64 backend. Thank you! > + Xeon Phi CPUs support (a.k.a. Knight Landing and

[committed][wwwdocs] Document libstdc++ changes in GCC 15

2024-08-28 Thread Jonathan Wakely
Pushed to wwwdocs. --- htdocs/gcc-15/changes.html | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html index d0d6d147..91c020dd 100644 --- a/htdocs/gcc-15/changes.html +++ b/htdocs/gcc-15/changes.html

New Georgian PO file for 'gcc' (version 14.2.0)

2024-08-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 Georgian team of translators. The file is available at: https://translationproject.org/latest/gcc/ka.po (This file, 'gcc-14.

[gcc-wwwdocs PATCH] gcc-15: Mention recent update for x86_64 backend

2024-08-27 Thread Haochen Jiang
Hi all, Sorry for the disturb since I mis-typoed gcc-patches to gcc-patchs, resend the patch. This patch will add documentation for recent update in x86-64 backend. Ok for wwwdocs trunk? Thx, Haochen --- Mention AVX10.2 support and Xeon Phi removal in GCC 15. --- htdocs/gcc-15/changes.html

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-27 Thread Bill Wendling
;> for the testing cases, and then I narrowed down to a > >>>>> small testing case that shows the problem without any change to GCC. > >>>>> > >>>>> [opc@qinzhao-ol8u3-x86 gcc]$ cat t1.c > >>>>> struct annotated { > &

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-27 Thread Qing Zhao
on, Aug 26, 2024 at 07:30:15PM +, Qing Zhao wrote: >>>>> Hi, Martin, >>>>> >>>>> Looks like that there is some issue when I tried to use the _Generic for >>>>> the testing cases, and then I narrowed down to a >>>>> small te

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-27 Thread Qing Zhao
d to use the _Generic for >>> the testing cases, and then I narrowed down to a >>> small testing case that shows the problem without any change to GCC. >>> >>> [opc@qinzhao-ol8u3-x86 gcc]$ cat t1.c >>> struct annotated { >>> char b; >>>

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-27 Thread Qing Zhao
;> small testing case that shows the problem without any change to GCC. >> >> [opc@qinzhao-ol8u3-x86 gcc]$ cat t1.c >> struct annotated { >> char b; >> int c[]; >> } *array_annotated; >> extern void * counted_by_ref (int *); >> >&

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-27 Thread Qing Zhao
like: > > #define alloc(PTR, COUNT, FAM, COUNTER) > > If the FAM doesn't have a 'counted_by' field: > > #define alloc(PTR, COUNT, FAM) > > (It would use VAR_ARGS of course). Why not simply have the compiler > automatically adjust the return type? What do you

Re: PING ^1 [PATCH] GCC Driver : Enable very long gcc command-line option

2024-08-27 Thread Richard Biener
On Tue, 27 Aug 2024, Dora, Sunil Kumar wrote: > Dear GCC Team, > > Please consider this as a gentle reminder to review the patch I posted at the > following link: [ > https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660223.html ]. > > BUG Link : [ https:/

PING ^1 [PATCH] GCC Driver : Enable very long gcc command-line option

2024-08-27 Thread Dora, Sunil Kumar
Dear GCC Team, Please consider this as a gentle reminder to review the patch I posted at the following link: [ https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660223.html ]. BUG Link : [ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111527 ] Your feedback or approval would be greatly

New Chinese (simplified) PO file for 'gcc' (version 14.2.0)

2024-08-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 Chinese (simplified) team of translators. The file is available at: https://translationproject.org/latest/gcc/zh_CN.po (This

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Martin Uecker
Martin, > > > > > > > > Looks like that there is some issue when I tried to use the _Generic > > > > for the testing cases, and then I narrowed down to a > > > > small testing case that shows the problem without any change to GCC. > > > >

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Kees Cook
when I tried to use the _Generic for > > > the testing cases, and then I narrowed down to a > > > small testing case that shows the problem without any change to GCC. > > > > > > [opc@qinzhao-ol8u3-x86 gcc]$ cat t1.c > > > struct annotated { > > >

New Chinese (simplified) PO file for 'gcc' (version 14.2.0)

2024-08-26 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 Chinese (simplified) team of translators. The file is available at: https://translationproject.org/latest/gcc/zh_CN.po (This

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Martin Uecker
to a > > small testing case that shows the problem without any change to GCC. > > > > [opc@qinzhao-ol8u3-x86 gcc]$ cat t1.c > > struct annotated { > > char b; > > int c[]; > > } *array_annotated; > > extern void * counted_by_ref (int *);

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Kees Cook
On Mon, Aug 26, 2024 at 07:30:15PM +, Qing Zhao wrote: > Hi, Martin, > > Looks like that there is some issue when I tried to use the _Generic for the > testing cases, and then I narrowed down to a > small testing case that shows the problem without any change to GCC. > &g

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Martin Uecker
Am Montag, dem 26.08.2024 um 19:30 + schrieb Qing Zhao: > Hi, Martin, > > Looks like that there is some issue when I tried to use the _Generic for the > testing cases, and then I narrowed down to a > small testing case that shows the problem without any change to GCC. > &g

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Bill Wendling
On Thu, Aug 22, 2024 at 8:03 AM Qing Zhao wrote: > > On Aug 21, 2024, at 18:08, Bill Wendling wrote: > >> For the unary operator __counted_by(PTR), “PTR” must have a counted_by > >> attribute, if not, there will be a compilation time error. > >> > >> Then the user could write the following cod

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Bill Wendling
On Wed, Aug 21, 2024 at 8:43 AM Martin Uecker wrote: > > Am Mittwoch, dem 21.08.2024 um 15:24 + schrieb Qing Zhao: > > > > > > But if we changed it to return a void pointer, we could make this > > > a compile-time check: > > > > > > auto ret = __builtin_get_counted_by(__p->FAM); > > > > > > _

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-26 Thread Qing Zhao
Hi, Martin, Looks like that there is some issue when I tried to use the _Generic for the testing cases, and then I narrowed down to a small testing case that shows the problem without any change to GCC. [opc@qinzhao-ol8u3-x86 gcc]$ cat t1.c struct annotated { char b; int c

Re: [PATCH 1/4] testsuite: Use dg-compile, not gcc -c

2024-08-23 Thread Jan Hubicka
> Since this is a pure compile test it makes sense to inform dejagnu of > it. > > gcc/testsuite/ChangeLog: > > * gcc.misc-tests/gcov-23.c: Use dg-compile, not gcc -c OK, Honza > --- > gcc/testsuite/gcc.misc-tests/gcov-23.c | 3 ++- > 1 file changed,

Ping [PATCH 0/4] Prime path coverage in gcc/gcov

2024-08-23 Thread Jørgen Kvalsvik
Ping. On 8/15/24 10:15, Jørgen Kvalsvik wrote: Ping. Since the last patch I have fixed a few bugs in the path count limit aborting, and a few minor rephrases in docs. Jørgen Kvalsvik (4): testsuite: Use dg-compile, not gcc -c gcov: Cache source files gcov: branch, conds, calls in

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-22 Thread Qing Zhao
> On Aug 21, 2024, at 18:08, Bill Wendling wrote: > >>> >>> to test. >> >> For the unary operator __counted_by(PTR), “PTR” must have a counted_by >> attribute, if not, there will be a compilation time error. >> >> Then the user could write the following code: >> >> If __builtin_has_att

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-22 Thread Qing Zhao
> On Aug 21, 2024, at 17:54, Bill Wendling wrote: > >> if (__builtin_get_counted_by(p->array)) { >>size_t max_value = >> type_max(typeof(*__builtin_get_counted_by(p->array))); >>if (count > type_max) >>...fail cleanly... >>*__builtin_get_counted_by(p->ar

Re: [PATCH v1] Provide new GCC builtin __builtin_get_counted_by [PR116016]

2024-08-22 Thread Qing Zhao
Hi, Bill, Thank you for the info. > On Aug 21, 2024, at 17:36, Bill Wendling wrote: > >> >> Bill, could you please provide a little bit more info on the possibility of >> a new builtin __builtin_has_attribute() in CLANG? >> > From what I gathered, it would require some moderate surgery to

Re: RFH: Debugging GCC segfault with LRA-enabled SH backend

2024-08-22 Thread Richard Biener
debugging/fixing the testsuite issue will be much easier. > > > > Does a int main(){} also segfault? > > I can run the LRA-enabled GCC normally, if you mean that: > > (unstable-sh4-sbuild)glaubitz@acrux:/srv/glaubitz/gcc/build$ ./prev-gcc/xgcc > --version > xgcc

Re: RFH: Debugging GCC segfault with LRA-enabled SH backend

2024-08-22 Thread John Paul Adrian Glaubitz
segfault? I can run the LRA-enabled GCC normally, if you mean that: (unstable-sh4-sbuild)glaubitz@acrux:/srv/glaubitz/gcc/build$ ./prev-gcc/xgcc --version xgcc (GCC) 15.0.0 20240818 (experimental) Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for cop

Re: RFH: Debugging GCC segfault with LRA-enabled SH backend

2024-08-22 Thread Richard Biener
On Thu, Aug 22, 2024 at 12:54 PM John Paul Adrian Glaubitz wrote: > > Hi Richard, > > On Thu, 2024-08-22 at 12:49 +0200, Richard Biener wrote: > > If this is stage2 or stage3 it hints at a miscompile of the stage2/3 > > compiler. I'd concentrate on other > > issues first and suggest to use --disa

Re: RFH: Debugging GCC segfault with LRA-enabled SH backend

2024-08-22 Thread John Paul Adrian Glaubitz
Hi Richard, On Thu, 2024-08-22 at 12:49 +0200, Richard Biener wrote: > If this is stage2 or stage3 it hints at a miscompile of the stage2/3 > compiler. I'd concentrate on other > issues first and suggest to use --disable-bootstrap to see if that > gets you to running the testsuite. I have actual

  1   2   3   4   5   6   7   8   9   10   >