Re: Attribute for custom memset function

2025-09-09 Thread Jonathan Wakely via Gcc
On Wed, 10 Sept 2025, 07:23 Florian Weimer via Gcc, wrote: > * Chris Packham via Gcc: > > > Is there any attribute I can set on the memset like functions that will > let > > gcc know to perform the same kinds of checks as the standard memset > > function? > > There's the “access” function attribu

Re: Attribute for custom memset function

2025-09-09 Thread Florian Weimer via Gcc
* Chris Packham via Gcc: > Is there any attribute I can set on the memset like functions that will let > gcc know to perform the same kinds of checks as the standard memset > function? There's the “access” function attribute. It covers at least some aspects. Thanks, Florian

Re: Attribute for custom memset function

2025-09-09 Thread Andrew Pinski via Gcc
On Mon, Sep 8, 2025 at 12:47 AM Chris Packham via Gcc wrote: > > Hi GCC, > > For various reasons I find myself working with a few code bases that define > their own wrappers for memset(). Unfortunately these wrappers defeat gccs > ability to detect when the size of the pointer is passed instead of

Re: Attribute for custom memset function

2025-09-09 Thread Chris Packham via Gcc
On Wed, Sep 10, 2025 at 1:16 PM NightStrike wrote: > > > > On Mon, Sep 8, 2025, 03:47 Chris Packham via Gcc wrote: >> >> Hi GCC, >> >> For various reasons I find myself working with a few code bases that define >> their own wrappers for memset(). Unfortunately these wrappers defeat gccs >> abilit

Re: Attribute for custom memset function

2025-09-09 Thread NightStrike via Gcc
On Mon, Sep 8, 2025, 03:47 Chris Packham via Gcc wrote: > Hi GCC, > > For various reasons I find myself working with a few code bases that define > their own wrappers for memset(). Unfortunately these wrappers defeat gccs > ability to detect when the size of the pointer is passed instead of the >

Sourceware Together; Open Office Friday 16:00 UTC

2025-09-09 Thread Mark Wielaard
Sourceware Together. Cyber Security, Community, Servers and Forge Experiments. Friday Sep 12, 16:00 UTC At #overseers on irc.libera.chat To get the right time in your local timezone: $ date -d "Fri Sep 12 16:00 UTC 2025" The Sourceware Open Office meeting for September is coming up this Friday.

Re: Build error on master branch

2025-09-09 Thread Alejandro Colomar via Gcc
Hi Jakub, Jonathan, On Tue, Sep 09, 2025 at 10:01:13PM +0200, Jakub Jelinek wrote: > On Tue, Sep 09, 2025 at 08:59:21PM +0100, Jonathan Wakely via Gcc wrote: > > On Tue, 9 Sept 2025 at 20:53, Alejandro Colomar via Gcc > > wrote: > > > > > > Hi! > > > > > > I'm trying to test some patch I've writ

Build error on master branch

2025-09-09 Thread Alejandro Colomar via Gcc
Hi! I'm trying to test some patch I've written, and found some build error that seems entirely unrelated to my patch. git-blame(1) points to: 52d754a1a620 (2025-09-09; "Fortran: make STAT/LSTAT/FSTAT intrinsics generic [PR82480]") The build error is: /home/alx/src/gnu/gcc/fwd3

Re: Build error on master branch

2025-09-09 Thread Jakub Jelinek via Gcc
On Tue, Sep 09, 2025 at 08:59:21PM +0100, Jonathan Wakely via Gcc wrote: > On Tue, 9 Sept 2025 at 20:53, Alejandro Colomar via Gcc > wrote: > > > > Hi! > > > > I'm trying to test some patch I've written, and found some build error > > that seems entirely unrelated to my patch. git-blame(1) point

Re: Build error on master branch

2025-09-09 Thread Jonathan Wakely via Gcc
On Tue, 9 Sept 2025 at 20:53, Alejandro Colomar via Gcc wrote: > > Hi! > > I'm trying to test some patch I've written, and found some build error > that seems entirely unrelated to my patch. git-blame(1) points to: > > 52d754a1a620 (2025-09-09; "Fortran: make STAT/LSTAT/FSTAT intrinsics

Re: Inconsistencies in docs for -Wall and -Wextra warnings

2025-09-09 Thread Sandra Loosemore
On 9/9/25 02:56, Jonathan Wakely wrote: I was going to correct the fact that this list of options enabled by -Wextra doesn't mention that -Wunterminated-string-initialization is only valid for C and ObjC: @gccoptlist{-Wabsolute-value @r{(only for C/ObjC)} -Walloc-size -Wcalloc-transposed-args -W

Inconsistencies in docs for -Wall and -Wextra warnings

2025-09-09 Thread Jonathan Wakely via Gcc
I was going to correct the fact that this list of options enabled by -Wextra doesn't mention that -Wunterminated-string-initialization is only valid for C and ObjC: @gccoptlist{-Wabsolute-value @r{(only for C/ObjC)} -Walloc-size -Wcalloc-transposed-args -Wcast-function-type -Wclobbered -Wdangling-