[OE-core] [PATCH 2/6] gcc: strip line numbers from generated code in gcc-plugins on target

Richard Purdie richard.purdie at linuxfoundation.org
Wed Mar 11 17:27:49 UTC 2020


On Wed, 2020-03-11 at 10:20 -0700, Khem Raj wrote:
> 
> On 3/10/20 4:28 PM, Richard Purdie wrote:
> > From: Ross Burton <ross.burton at intel.com>
> > 
> > The line numbers are influenced by the gcc version on the host used
> > to generate
> > the code. Remove these to ensure the shipped source code is the
> > same.
> > 
> 
> Please send this paatch to gcc mailing lists for review, I am not
> sure if this will cause regressions for plugin writers since it does
> not seem  simple debug info that it is adding, and external plugins
> might rely on  this information. While I understand it might solve
> our usecaase its a kind of patch that I worry about to carry out of
> tree.

I very much doubt upstream are going to accept anything like it
unfortunately. Whilst much of the information is useful to plugins, I'm
struggling to see how/why they'd use line numbers outside of debug
information so I've assumed so far they're just that - for debug. DO
you know of it being used in other ways?

Cheers,

Richard



More information about the Openembedded-core mailing list