Re: How to make parallelizing loops and vectorization work at the same time?

2023-09-17 Thread Richard Biener via Gcc
On Fri, Sep 15, 2023 at 4:07 PM Hanke Zhang wrote: > > I get it. It's a `lto` problem. If I remove `-flto`, both work. That's odd - it might be that GCC thinks part of the program is cold and doesn't optimize it. Does using -fwhole-program instead of -flto also not work? Richard. > Thanks for

gcc-14-20230917 is now available

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

Re: Safe transposition of logical and operands

2023-09-17 Thread Jonathan Wakely via Gcc
On Sun, 17 Sept 2023, 20:33 Paul Floyd via Gcc, wrote: > Hi > > I'm looking at a Valgrind issue. Full details here > > https://bugs.kde.org/show_bug.cgi?id=472329 > > This code > > void foo(std::optional f) { >std::cout << (f ? *f : 0) << std::endl; >std::set test; >test.emplace(0); >

Re: samples

2023-09-17 Thread Jonathan Wakely via Gcc
On Sun, 17 Sept 2023, 21:27 Rahim Fakir via Gcc, wrote: > Is it possible to add source code samples like visual studio has? > What kind of samples do you mean? What does visual studio have, could you provide a link showing what you mean? I honestly have no idea what you're suggesting. I thin

samples

2023-09-17 Thread Rahim Fakir via Gcc
Is it possible to add source code samples like visual studio has? I think that it will be better for students to have a page with samples by gcc. Windows has a good samples repository GCC should have one. Professor Bjarne forgot about the samples by one book C++ programing Languages 4th edition I t

Safe transposition of logical and operands

2023-09-17 Thread Paul Floyd via Gcc
Hi I'm looking at a Valgrind issue. Full details here https://bugs.kde.org/show_bug.cgi?id=472329 This code void foo(std::optional f) { std::cout << (f ? *f : 0) << std::endl; std::set test; test.emplace(0); auto it{test.begin()}; while (it != test.end()) { int64_t b{*it}; // Val