Re: Creating a wrapper around a function at compile time

2022-07-15 Thread Martin Liška
On 7/14/22 16:25, Erick Ochoa wrote: > > > On Thu, 14 Jul 2022 at 16:10, Martin Liška > wrote: > > On 7/14/22 16:08, Erick Ochoa via Gcc wrote: > > Last time I checked, value profiling can only track a single value per > > statement. > > Hi. > > Take

Re: Creating a wrapper around a function at compile time

2022-07-15 Thread Erick Ochoa via Gcc
Awesome! Thanks! Let's go a little bit into the transformation mechanics itself. I am somewhat familiar with LTO but I am always confused about the transformations scheduled during WPA. Let's assume that: 1. we have the profiling pass, which profiles each argument in each callsite. 2. we are now

Re: Proposal: allow to extend C++ template argument deduction via plugins

2022-07-15 Thread Ben Boeckel via Gcc
On Thu, Jul 14, 2022 at 18:46:47 +0200, Dan Klishch via Gcc wrote: > As far as I understand the currently available plugin extension points, it is > not possible to modify template argument deduction algorithm (except the > theoretical possibility to completely override parsing step). However, such

Re: [PATCH Linux] powerpc: add documentation for HWCAPs

2022-07-15 Thread Segher Boessenkool
On Fri, Jul 15, 2022 at 11:17:24AM +1000, Nicholas Piggin wrote: > Excerpts from Segher Boessenkool's message of May 25, 2022 4:32 am: > > Linux runs on ISA 1.xx and ISA 2.01 machines still. "Category" wasn't > > invented for either yet either, but similar concepts did exist of > > course. > > No

Re: [PATCH v2] powerpc: add documentation for HWCAPs

2022-07-15 Thread Segher Boessenkool
On Fri, Jul 15, 2022 at 11:26:36AM +1000, Nicholas Piggin wrote: > Take the arm64 HWCAP documentation file and adjust it for powerpc. > > Signed-off-by: Nicholas Piggin Reviewed-by: Segher Boessenkool > +2. Facilities > +- > + > +The Power ISA uses the term "facility" to describe a

Re: Proposal: allow to extend C++ template argument deduction via plugins

2022-07-15 Thread Dan Klishch via Gcc
Hi Ben, Thanks for your feedback. The original problem I was trying to solve is to do such deduction in my own project where I use self-written wrapper around libpq, so naturally I'm not concerned if I'll be writing in pure C++ or C++ dialect. Actually, I tried to come up with a solution which m

Re: [PATCH v2] powerpc: add documentation for HWCAPs

2022-07-15 Thread Tulio Magno Quites Machado Filho via Gcc
Nicholas Piggin writes: > +PPC_FEATURE_ARCH_2_05 > +The processor supports the v2.05 userlevel architecture. Processors > +supporting later architectures also set this feature. I don't think this bit is enabled when processors support later architectures. In my tests, this behavior start

Re: [PATCH v2] powerpc: add documentation for HWCAPs

2022-07-15 Thread Segher Boessenkool
On Fri, Jul 15, 2022 at 03:41:20PM -0300, Tulio Magno Quites Machado Filho wrote: > Nicholas Piggin writes: > > > +PPC_FEATURE_ARCH_2_05 > > +The processor supports the v2.05 userlevel architecture. Processors > > +supporting later architectures also set this feature. > > I don't think

Re: [PATCH v2] powerpc: add documentation for HWCAPs

2022-07-15 Thread Tulio Magno Quites Machado Filho via Gcc
Segher Boessenkool writes: > That is a usability problem. Can it be fixed, or will that create its > own compatibility problems? In practice I mean. If it is, the C > libraries could fix it up, for new programs, and then after a while the > kernel can do the sane thing? > > How big is the prob

gcc-11-20220715 is now available

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