gcc-12-20230121 is now available

2023-01-21 Thread GCC Administrator via Gcc
Snapshot gcc-12-20230121 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20230121/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: [PATCH v2] socket: Implement sockaddr_storage with an anonymous union

2023-01-21 Thread Alejandro Colomar via Gcc
Hi Bastien, On 1/21/23 14:30, Bastien Roucariès wrote: [...] Ahh, indeed it seems to be UB. It's in the same 6.5.2.3/6: there's a requirement that the information about the union is kept in the function in which it's accessed. The standard presents an example, which is a bit ambiguous:

Re: [PATCH v2] socket: Implement sockaddr_storage with an anonymous union

2023-01-21 Thread Bastien Roucariès
Le samedi 21 janvier 2023, 03:17:39 UTC Alejandro Colomar a écrit : > Hi Zack, > > On 1/21/23 03:38, Alejandro Colomar wrote: > > Hi Zack, > > > > On 1/20/23 20:25, Alejandro Colomar wrote: > >> [CC += GCC] // pun not intended :P > >> > >> Hi Zack, > >> > >> On 1/20/23 19:04, Zack Weinberg wrote

Re: [PATCH 3/4] libbacktrace: work with aslr on windows

2023-01-21 Thread Eli Zaretskii via Gcc
> Date: Sat, 21 Jan 2023 11:47:42 +0100 > Cc: g...@hazardy.de, gcc-patc...@gcc.gnu.org, gcc@gcc.gnu.org > From: Gabriel Ravier > > > On 1/21/23 05:05, Eli Zaretskii wrote: > >> Date: Fri, 20 Jan 2023 21:39:56 +0100 > >> Cc: g...@hazardy.de, gcc-patc...@gcc.gnu.org, gcc@gcc.gnu.org > >> From: Gab

Re: [PATCH 3/4] libbacktrace: work with aslr on windows

2023-01-21 Thread Gabriel Ravier via Gcc
On 1/21/23 05:05, Eli Zaretskii wrote: Date: Fri, 20 Jan 2023 21:39:56 +0100 Cc: g...@hazardy.de, gcc-patc...@gcc.gnu.org, gcc@gcc.gnu.org From: Gabriel Ravier - using wide APIs with Windows is generally considered to be a best practice, even when not strictly needed (and in this case I can'

Re: [PATCH 3/4] libbacktrace: work with aslr on windows

2023-01-21 Thread Eli Zaretskii via Gcc
> Date: Sat, 21 Jan 2023 17:18:14 +0800 > Cc: g...@hazardy.de, gcc-patc...@gcc.gnu.org, gcc@gcc.gnu.org > From: LIU Hao > > 在 2023-01-21 12:05, Eli Zaretskii via Gcc 写道: > > I'm not sure I follow the logic. A program that calls > > GetModuleHandleW will refuse to start on Windows that doesn't ha

Re: [PATCH 3/4] libbacktrace: work with aslr on windows

2023-01-21 Thread LIU Hao via Gcc
在 2023-01-21 12:05, Eli Zaretskii via Gcc 写道: I'm not sure I follow the logic. A program that calls GetModuleHandleW will refuse to start on Windows that doesn't have that API. So any version before XP is automatically excluded the moment you use code which calls that API directly (i.e. not thr