On 5/16/19 5:19 AM, Martin Liška wrote:
> Hi.
>
> With LTO and -fsanitize we end up with a static ctor
> (_GLOBAL__sub_I_00099_0_main) that has no source location.
> With that stack usage will print '(artificial)' as a location
> of the function.
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?
> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 2019-05-16 Martin Liska <mli...@suse.cz>
>
> PR driver/90495
> * toplev.c (output_stack_usage): With LTO and sanitizer it
> happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
> has no file location.
> ---
> gcc/toplev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
OK
jeff