Re: Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-02-22 Thread Richard Biener via Gcc
On Tue, Feb 22, 2022 at 8:38 AM Shubham Narlawar wrote: > > On Mon, Feb 21, 2022 at 1:02 PM Richard Biener > wrote: > > > > On Sun, Feb 20, 2022 at 11:44 PM Andrew Pinski via Gcc > > wrote: > > > > > > On Sun, Feb 20, 2022 at 10:45 AM Shubham Narlawar > > > wrote: > > > > > > > > On Sat, Feb

Re: Benchmark recommendations needed

2022-02-22 Thread Richard Earnshaw via Gcc
Dhrystone is (and probably always was) a bogus benchmark. It's a well-known truism that MIPS stands for Meaningless Indication of Processor Speed, and dhrystone scores are equally meaningless. Dhrystone fell out of common usage over 20 years ago. It's not GCC that is being peculiar, it's just

Re: Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-02-22 Thread Shubham Narlawar via Gcc
On Tue, Feb 22, 2022 at 3:55 PM Richard Biener wrote: > > On Tue, Feb 22, 2022 at 8:38 AM Shubham Narlawar > wrote: > > > > On Mon, Feb 21, 2022 at 1:02 PM Richard Biener > > wrote: > > > > > > On Sun, Feb 20, 2022 at 11:44 PM Andrew Pinski via Gcc > > > wrote: > > > > > > > > On Sun, Feb 20,

strcpy and strcat seem to lead to a stack overflow

2022-02-22 Thread Emile Michel Hobo via Gcc
Dear developers: I find it counterintuitive that if I repeatedly reset a variable by using strcpy with an empty string "" to that variable and then us strcat to add characters to that variable that that seems to lead to a stack overflow. I would expect strcpy to first free the variable, then ma

Re: Benchmark recommendations needed

2022-02-22 Thread Gary Oblock via Gcc
Andras, The whole point of benchmarks is to judge a processor's performance. That being said, just crippling GCC is not reasonable because processors must be judged in the appropriate context and that includes the current state of the art compiler technology. If you have a new processor I'd benchm

Re: Benchmark recommendations needed

2022-02-22 Thread Paul Koning via Gcc
> On Feb 22, 2022, at 4:26 PM, Gary Oblock via Gcc wrote: > > Andras, > > The whole point of benchmarks is to judge a processor's performance. > That being said, just crippling GCC is not reasonable because > processors must be judged in the appropriate context and that > includes the current

Re: strcpy and strcat seem to lead to a stack overflow

2022-02-22 Thread Patrick McGehearty
You may be thinking of string capabilities in some other language. Selected from the Linux man pages for these glibc functions: strcpy:    char *strcpy(char *dest, const char *src);    The  strcpy()  function  copies the string pointed to by src, including    the terminating null by

Re: Benchmark recommendations needed

2022-02-22 Thread Patrick McGehearty
I studied Dhrystone about 30 years ago and found it had a number of flaws back then. For example, most of the loops in the code are only executed 1-3 times, which minimizes the value of hoisting values out of inner loops. Read the Dhrystone wikipedia article for more information. Going back to wh

Re: Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-02-22 Thread Richard Biener via Gcc
On Tue, Feb 22, 2022 at 2:10 PM Shubham Narlawar wrote: > > On Tue, Feb 22, 2022 at 3:55 PM Richard Biener > wrote: > > > > On Tue, Feb 22, 2022 at 8:38 AM Shubham Narlawar > > wrote: > > > > > > On Mon, Feb 21, 2022 at 1:02 PM Richard Biener > > > wrote: > > > > > > > > On Sun, Feb 20, 2022 a