Re: More C type errors by default for GCC 14

2023-05-14 Thread Nicholas Vinson via Gcc
Jonathan Wakely writes: Wrong. I wouldn't bother replying to you again in this thread, but I feel that as a gcc maintainer I should confirm that Eli S. is right here; and nobody else I know agrees with your definition of extension as "every non-standard aspect of the compiler's behaviour, whethe

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Nicholas Vinson via Gcc
On 5/26/23 02:46, Stefan Kanthak wrote: Hi, compile the following function on a system with Core2 processor (released January 2008) for the 32-bit execution environment: --- demo.c --- int ispowerof2(unsigned long long argument) { return (argument & argument - 1) == 0; } --- EOF --- GCC

Re: Will GCC eventually support SSE2 or SSE4.1?

2023-05-26 Thread Nicholas Vinson via Gcc
On 5/26/23 08:42, Stefan Kanthak wrote: I could have added PROPERLY, because that's where it CLEARLY fails, as shown by the generated unoptimised code. From what I've seen so far, I find your arguments unconvincing. In this thread alone, you've proven that you don't know how to properly cont

Re: Another epic optimiser failure

2023-05-27 Thread Nicholas Vinson via Gcc
On 5/27/23 17:04, Stefan Kanthak wrote: --- .c --- int ispowerof2(unsigned long long argument) { return __builtin_popcountll(argument) == 1; } --- EOF --- GCC 13.3gcc -m32 -march=alderlake -O3 gcc -m32 -march=sapphirerapids -O3 gcc -m32 -mpopcnt -mtune=sapphi

Re: Who cares about performance (or Intel's CPU errata)?

2023-05-27 Thread Nicholas Vinson via Gcc
On 5/27/23 18:52, Stefan Kanthak wrote: "Andrew Pinski" wrote: On Sat, May 27, 2023 at 2:25 PM Stefan Kanthak wrote: Just to show how SLOPPY, INCONSEQUENTIAL and INCOMPETENT GCC's developers are: --- dontcare.c --- int ispowerof2(unsigned __int128 argument) { return __builtin_popcoun

Re: Another epic optimiser failure

2023-05-29 Thread Nicholas Vinson via Gcc
On 5/29/23 15:01, Dave Blanchard wrote: He's certainly got a few things wrong from time to time in his zeal, but his overall point seems to stand. Do you have any rebuttals of his argument to present yourself? Or do you prefer to just sit back and wait on "y'all" to do the heavy lifting? He'

Re: How "()" works and why

2025-02-09 Thread Nicholas Vinson via Gcc
On 2/9/25 10:38, саша савельев wrote: To whom it may concern Me and my classmates found strange behaviour of «()» (in C++) on IT lesson, but our teacher couldn’t anwer us why it works in this way. After, we had tryed to find out by ourselfs, but we found nothing. We understood HOW it wo