Re: DWARF for extern variable

2021-09-02 Thread Richard Biener via Gcc-patches
On Wed, Sep 1, 2021 at 7:25 PM Indu Bhagat wrote: > > On 8/24/21 12:55 AM, Richard Biener wrote: > > On Mon, Aug 23, 2021 at 11:18 PM Indu Bhagat via Gcc-patches > > wrote: > >> > >> Hello, > >> > >> What is the expected DWARF for extern vari

Re: DWARF for extern variable

2021-09-01 Thread Indu Bhagat via Gcc-patches
On 8/24/21 12:55 AM, Richard Biener wrote: On Mon, Aug 23, 2021 at 11:18 PM Indu Bhagat via Gcc-patches wrote: Hello, What is the expected DWARF for extern variable in the following cases? I am seeing that the DWARF generated is different with gcc8.4.1 vs gcc-trunk. Testcase 2

Re: DWARF for extern variable

2021-08-24 Thread Richard Biener via Gcc-patches
On Mon, Aug 23, 2021 at 11:18 PM Indu Bhagat via Gcc-patches wrote: > > Hello, > > What is the expected DWARF for extern variable in the following cases? I > am seeing that the DWARF generated is different with gcc8.4.1 vs gcc-trunk. > > Testcase 1 > -- > ext

DWARF for extern variable

2021-08-23 Thread Indu Bhagat via Gcc-patches
Hello, What is the expected DWARF for extern variable in the following cases? I am seeing that the DWARF generated is different with gcc8.4.1 vs gcc-trunk. Testcase 1 -- extern const char a[]; int foo() { return a != 0; } Testcase 1 Behavior - - gcc-trunk has