Re: -fprofile-update=atomic vs. 32-bit architectures

2022-12-04 Thread Richard Biener via Gcc
On Mon, Dec 5, 2022 at 8:26 AM Sebastian Huber wrote: > > On 08/11/2022 11:25, Richard Biener wrote: > >> It would be great to have a code example for the construction of the "if > >> (f()) f();". > > I think for the function above we need to emit __atomic_fetch_add_8, > > not the emulated form be

Re: RFC: Make builtin types only valid for some target features

2022-12-04 Thread Richard Sandiford via Gcc
"Kewen.Lin" writes: > Hi, > > I'm working to find one solution for PR106736, which requires us to > make some built-in types only valid for some target features, and > emit error messages for the types when the condition isn't satisfied. > A straightforward idea is to guard the registry of built

Re: -fprofile-update=atomic vs. 32-bit architectures

2022-12-04 Thread Sebastian Huber
On 08/11/2022 11:25, Richard Biener wrote: It would be great to have a code example for the construction of the "if (f()) f();". I think for the function above we need to emit __atomic_fetch_add_8, not the emulated form because we cannot insert the required control flow (if (f()) f()) on an edge

gcc-13-20221204 is now available

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

Re: gcc parameter -mcrtdll= for choosing Windows C RunTime DLL library

2022-12-04 Thread LIU Hao via Gcc
在 2022-12-04 20:16, Pali Rohár via Gcc 写道: Hello! I would like to ask gcc people, what do you think about such proposed -mcrtdll= parameter? There are lot of unofficial gcc patches which implement this -mcrtdll= parameter and this parameter is present in more gcc forks. So it looks like that thi

Re: gcc parameter -mcrtdll= for choosing Windows C RunTime DLL library

2022-12-04 Thread Pali Rohár via Gcc
On Sunday 20 November 2022 13:53:48 Pali Rohár wrote: > Hello! I would like to propose a new parameter for gcc: -mcrtdll= to > allow specifying against which Windows C Runtime library should be > binary linked. On Windows there are more crt libraries and currently gcc > links to libmsvcrt.a which i