Bad performance (with GCC 11.3.0 - O3) of a small etude in C

2022-07-07 Thread Georgi Marinov via Gcc
Hi, just wanted to let you know that I found that GCC 11.3.0 -O3 is generating code with many unnecessary jumps (while CLANG 14.0.1 -O3 not) in a small partitioning (for Quicksort) 15 lines of code etude. In case you are interested I will submit the three disassembly outputs, plus ICL 19.0 -O3,

gcc-10-20220707 is now available

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

Re: Question about speculative make_edge_direct_to_target during LTO/IPA_PASS

2022-07-07 Thread Erick Ochoa via Gcc
On Fri, 1 Jul 2022 at 14:48, Martin Jambor wrote: > Why so late, why not as part of number 4? > Hi Martin, Thanks for the feedback. The original reason why the call to make_edge_direct_to_target was done so late is because of the lack of function bodies during WPA, summaries with insufficient i

Re: Safer vararg calls

2022-07-07 Thread Florian Weimer via Gcc
* Yair Lenga: > I prefer not to go into “flame wars” on the merits of C vs C++. My > projects are (mostly) in “C” and I am happy with this setup. In > addition, given technical / organizational / business issues, > switching to C++ not an option. Sure, but you could at least use C++ to prototype