GSoC project

2021-02-21 Thread Utkarsh singh via Gcc
Greeting to the team, I am Utkarsh Singh. I was going through various projects in the archive section of GSoC. I searched for some specific projects in Mathematics and C programming as I am most used with this field. I feel I can contribute to the organisation which is in turn contributing to the

Re: GSoC project

2021-02-23 Thread Utkarsh singh via Gcc
Thanks, I'll check it out. On Mon, Feb 22, 2021 at 12:23 PM Ankur Saini wrote: > I think this is what you are looking for > > https://gcc.gnu.org/wiki/SummerOfCode > > > On 22-Feb-2021, at 12:08 PM, Utkarsh singh via Gcc > wrote: > > > > Greeting to th

Problems in array access

2021-08-31 Thread Utkarsh Singh via Gcc
Hello GCC mailing list, In one of my friend's C programming class, they asked him a question on the topic of array bounds based on the follwing code snippet: #include int main(void) { char str[] = {'G' , 'C' , 'C' }; str[3] = '\0' ; /* Isn't this invalid? */ printf("%s\n

Re: Problems in array access

2021-08-31 Thread Utkarsh Singh via Gcc
On 2021-08-31, 09:28 +0100, Jonathan Wakely wrote: > On Tue, 31 Aug 2021 at 09:11, Utkarsh Singh wrote: >> >> Hello GCC mailing list, >> >> In one of my friend's C programming class, they asked him a question on >> the topic of array bounds based on the follwing code snippet: >> >> #include >> >

Re: Problems in array access

2021-08-31 Thread Utkarsh Singh via Gcc
On 2021-08-31, 09:08 -0600, Martin Sebor wrote: > To refine Jonathan's answer: In cases where the index is constant > like this one the warning could be issued even with no optimization. > That it isn't is the result of the choice to depend on optimizations > unconditionally. It's worth revisiti