Re: [PATCH 1/2] Fix debug info for ignored decls at start of assembly

2021-08-02 Thread Richard Biener
On Fri, 30 Jul 2021, Bernd Edlinger wrote: > > > On 7/29/21 9:23 AM, Richard Biener wrote: > > On Wed, 28 Jul 2021, Bernd Edlinger wrote: > > > >> On 7/28/21 2:51 PM, Richard Biener wrote: > >>> On Mon, 26 Jul 2021, Bernd Edlinger wrote: > >>> > Ignored functions decls that are compiled at

Re: [PATCH 1/2] Fix debug info for ignored decls at start of assembly

2021-07-30 Thread Bernd Edlinger
gt;> + filename0 = ""; >>>> +maybe_emit_file (lookup_filename (filename0)); >>>> + } >>>> + } >>>> } >>>> >>>> /* Record the beginning of a new source file. */ >>>> diff --git a/gcc/final.c b/gcc/fi

Re: [PATCH 1/2] Fix debug info for ignored decls at start of assembly

2021-07-29 Thread Richard Biener
On Wed, 28 Jul 2021, Bernd Edlinger wrote: > On 7/28/21 2:51 PM, Richard Biener wrote: > > On Mon, 26 Jul 2021, Bernd Edlinger wrote: > > > >> Ignored functions decls that are compiled at the start of > >> the assembly have bogus line numbers until the first .file > >> directive, as reported in P

Re: [PATCH 1/2] Fix debug info for ignored decls at start of assembly

2021-07-28 Thread Bernd Edlinger
On 7/28/21 2:51 PM, Richard Biener wrote: > On Mon, 26 Jul 2021, Bernd Edlinger wrote: > >> Ignored functions decls that are compiled at the start of >> the assembly have bogus line numbers until the first .file >> directive, as reported in PR101575. >> >> The work around for this issue is to emit

Re: [PATCH 1/2] Fix debug info for ignored decls at start of assembly

2021-07-28 Thread Richard Biener
On Mon, 26 Jul 2021, Bernd Edlinger wrote: > Ignored functions decls that are compiled at the start of > the assembly have bogus line numbers until the first .file > directive, as reported in PR101575. > > The work around for this issue is to emit a dummy .file > directive when the first function

[PATCH 1/2] Fix debug info for ignored decls at start of assembly

2021-07-26 Thread Bernd Edlinger
Ignored functions decls that are compiled at the start of the assembly have bogus line numbers until the first .file directive, as reported in PR101575. The work around for this issue is to emit a dummy .file directive when the first function is DECL_IGNORED_P, when that is not already done, mostl