Re: [PATCH 0 of 4] Avoid dead store elimination in GCC 11+

2023-04-18 Thread Vadim Fedorenko via nginx-devel
On 18.04.2023 02:54, Maxim Dounin wrote: Hello! On Tue, Apr 18, 2023 at 02:07:06AM +0300, Vadim Fedorenko via nginx-devel wrote: GCC version 11 and newer use more aggressive way to eliminate dead stores which ends up removing ngx_memzero() calls in several places. Such optimization affects cal

Re: [PATCH 0 of 4] Avoid dead store elimination in GCC 11+

2023-04-18 Thread Alejandro Colomar
Hello Vladim, On 4/18/23 11:50, Vadim Fedorenko via nginx-devel wrote: > On 18.04.2023 02:54, Maxim Dounin wrote: >> Hello! >> >> On Tue, Apr 18, 2023 at 02:07:06AM +0300, Vadim Fedorenko via nginx-devel >> wrote: >> >>> GCC version 11 and newer use more aggressive way to eliminate dead stores >>

[nginx] Fixed segfault if regex studies list allocation fails.

2023-04-18 Thread Sergey Kandaurov
details: https://hg.nginx.org/nginx/rev/77d5c662f3d9 branches: changeset: 8163:77d5c662f3d9 user: Maxim Dounin date: Tue Apr 18 06:28:46 2023 +0300 description: Fixed segfault if regex studies list allocation fails. The rcf->studies list is unconditionally accessed by ngx_regex_clea

nginx 1.24 + njs build errors [-Werror=dangling-pointer=] after switch from GCC 12 (Fedora 37) -> GCC13 (Fedora 38)

2023-04-18 Thread PGNet Dev
I'm building nginx mainline v1.24 on Fedora. on F37, with gcc 12, gcc --version gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. T

Re: [PATCH 0 of 4] Avoid dead store elimination in GCC 11+

2023-04-18 Thread Maxim Dounin
Hello! On Tue, Apr 18, 2023 at 10:50:01AM +0100, Vadim Fedorenko wrote: > On 18.04.2023 02:54, Maxim Dounin wrote: > > Hello! > > > > On Tue, Apr 18, 2023 at 02:07:06AM +0300, Vadim Fedorenko via nginx-devel > > wrote: > > > >> GCC version 11 and newer use more aggressive way to eliminate dead

Re: nginx 1.24 + njs build errors [-Werror=dangling-pointer=] after switch from GCC 12 (Fedora 37) -> GCC13 (Fedora 38)

2023-04-18 Thread Dmitry Volyntsev
On 4/18/23 10:26 AM, PGNet Dev wrote: I'm building nginx mainline v1.24 on Fedora. on F37, with gcc 12, gcc --version     gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)     Copyright (C) 2022 Free Software Foundation, Inc.     This is free software; see the source for copyin

Re: nginx 1.24 + njs build errors [-Werror=dangling-pointer=] after switch from GCC 12 (Fedora 37) -> GCC13 (Fedora 38)

2023-04-18 Thread PGNet Dev
GCC 13 is not released yet, right? "Real Soon Now (tm)" GCC 13.0.1 Status Report (2023-04-17) https://gcc.gnu.org/pipermail/gcc/2023-April/241140.html It's in the Fedora 38 release, which dropped today: Fedora 38 Released With GNOME 44 Desktop, GCC 13, Many New Features