RE: [EXTERNAL] Re: Reporting lto bugs

2021-09-24 Thread Eugene Rozenfeld via Gcc
My scenario is not cygwin. It's linux cross-compile x86_64 to aarch64 in an Ubuntu vm so I believe this should produce line info with -flto -g yet I see "No Line Number Statements" after Directory Table and File Name Table in the output of objdump -g. DWARF Version is 4. I verified that I get li

gcc-10-20210924 is now available

2021-09-24 Thread GCC Administrator via Gcc
Snapshot gcc-10-20210924 is now available on https://gcc.gnu.org/pub/gcc/snapshots/10-20210924/ 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: Development request

2021-09-24 Thread Martin Jambor
Hello, On Sun, Sep 19 2021, Mohamed Atef via Gcc wrote: > Hello there, > We are 6 students from Egypt and now We are in our last year and We need to > build a project as a graduation project. > And We are interested in the area of runtime systems, operating systems and > compilers. > We are going

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Aldy Hernandez via Gcc
On 9/24/21 1:37 PM, David Brown wrote: On 24/09/2021 10:03, Aldy Hernandez via Gcc wrote: Hi folks. My upcoming threading improvements turn the test below into an infinite runtime loop: int a, b; short c; int main () {   int j, d = 1;   for (; c >= 0; c++)     { BODY:   a = d;    

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread David Brown
On 24/09/2021 10:03, Aldy Hernandez via Gcc wrote: > Hi folks. > > My upcoming threading improvements turn the test below into an infinite > runtime loop: > > int a, b; > short c; > > int > main () > { >   int j, d = 1; >   for (; c >= 0; c++) >     { > BODY: >   a = d; >   d = 0; >

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread David Brown
On 24/09/2021 11:38, Andrew Pinski via Gcc wrote: > On Fri, Sep 24, 2021 at 2:35 AM Aldy Hernandez wrote: >> >> >> >> On 9/24/21 11:29 AM, Andrew Pinski wrote: >>> On Fri, Sep 24, 2021 at 1:05 AM Aldy Hernandez via Gcc >>> wrote: >>> Huh about c>=0 being always true? the expression, "c++"

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread David Brown
On 24/09/2021 10:59, Aldy Hernandez via Gcc wrote: > > > On 9/24/21 10:08 AM, Richard Biener wrote: >> On Fri, Sep 24, 2021 at 10:04 AM Aldy Hernandez via Gcc >> wrote: >>> >>> Is this correct, or did I miss something? >> >> Yes, 'c' will wrap to negative SHORT_MIN and terminate the loop via >>

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Richard Earnshaw via Gcc
On 24/09/2021 10:29, Andrew Pinski via Gcc wrote: On Fri, Sep 24, 2021 at 1:05 AM Aldy Hernandez via Gcc wrote: Hi folks. My upcoming threading improvements turn the test below into an infinite runtime loop: int a, b; short c; int main () { int j, d = 1; for (; c >= 0; c++)

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Aldy Hernandez via Gcc
On 9/24/21 11:38 AM, Andrew Pinski wrote: On Fri, Sep 24, 2021 at 2:35 AM Aldy Hernandez wrote: On 9/24/21 11:29 AM, Andrew Pinski wrote: On Fri, Sep 24, 2021 at 1:05 AM Aldy Hernandez via Gcc wrote: Hi folks. My upcoming threading improvements turn the test below into an infinite runti

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Andrew Pinski via Gcc
On Fri, Sep 24, 2021 at 2:35 AM Aldy Hernandez wrote: > > > > On 9/24/21 11:29 AM, Andrew Pinski wrote: > > On Fri, Sep 24, 2021 at 1:05 AM Aldy Hernandez via Gcc > > wrote: > >> > >> Hi folks. > >> > >> My upcoming threading improvements turn the test below into an infinite > >> runtime loop: >

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Aldy Hernandez via Gcc
On 9/24/21 11:29 AM, Andrew Pinski wrote: On Fri, Sep 24, 2021 at 1:05 AM Aldy Hernandez via Gcc wrote: Hi folks. My upcoming threading improvements turn the test below into an infinite runtime loop: int a, b; short c; int main () { int j, d = 1; for (; c >= 0; c++) { BODY:

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Andrew Pinski via Gcc
On Fri, Sep 24, 2021 at 1:05 AM Aldy Hernandez via Gcc wrote: > > Hi folks. > > My upcoming threading improvements turn the test below into an infinite > runtime loop: > > int a, b; > short c; > > int > main () > { >int j, d = 1; >for (; c >= 0; c++) > { > BODY: >a = d; >

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Aldy Hernandez via Gcc
On 9/24/21 10:08 AM, Richard Biener wrote: On Fri, Sep 24, 2021 at 10:04 AM Aldy Hernandez via Gcc wrote: Hi folks. My upcoming threading improvements turn the test below into an infinite runtime loop: int a, b; short c; int main () { int j, d = 1; for (; c >= 0; c++) { BOD

Re: Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Richard Biener via Gcc
On Fri, Sep 24, 2021 at 10:04 AM Aldy Hernandez via Gcc wrote: > > Hi folks. > > My upcoming threading improvements turn the test below into an infinite > runtime loop: > > int a, b; > short c; > > int > main () > { >int j, d = 1; >for (; c >= 0; c++) > { > BODY: >a = d; >

Can gcc.dg/torture/pr67828.c be an infinite loop?

2021-09-24 Thread Aldy Hernandez via Gcc
Hi folks. My upcoming threading improvements turn the test below into an infinite runtime loop: int a, b; short c; int main () { int j, d = 1; for (; c >= 0; c++) { BODY: a = d; d = 0; if (b) { xprintf (0); if (j) xprintf (0);

Re: Reporting lto bugs

2021-09-24 Thread Richard Biener via Gcc
On Fri, Sep 24, 2021 at 3:45 AM Eugene Rozenfeld via Gcc wrote: > > I ran into a bug with lto: no line number info gets emitted when building my > project with -flto and -g (with gcc 8.2). I'd like to provide a repro in the > bug report but I don't know if there is an easy way to collect everyth