[PATCH] libgcc/mkmap-symver: support skip_underscore (PR74748)

Jeff Law law@redhat.com
Sat Nov 19 19:33:00 GMT 2016


On 11/19/2016 02:45 AM, Thomas Petazzoni wrote:
> All symbols in Blackfin are prepended with an underscore, so we're
> pretty much guaranteed there is one, and we precisely want to get rid
> of this prepended underscore. So I'd say it's good enough to get rid of
> the first character, without checking if it's an underscore or not.
>
> Of course, if you think we really want to be extra safe and only remove
> it after making sure it's an underscore, I can probably improve the awk
> logic to handle this.
Let's be extra safe -- skip_underscore, in my  mind, implies that it's 
only going to skip an underscore.

Jeff



More information about the Gcc-patches mailing list