Commit 804424b9 by Martin Liska Committed by Martin Liska

Handle a location with NULL as a file (PR driver/90495)

2019-05-17  Martin Liska  <mliska@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.

From-SVN: r271312
parent e2014c8b
2019-05-17 Martin Liska <mliska@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.
2019-05-16 Jakub Jelinek <jakub@redhat.com> 2019-05-16 Jakub Jelinek <jakub@redhat.com>
PR c++/90484 PR c++/90484
......
...@@ -1019,7 +1019,7 @@ output_stack_usage (void) ...@@ -1019,7 +1019,7 @@ output_stack_usage (void)
fprintf (stack_usage_file, fprintf (stack_usage_file,
"%s:%d:%d:%s\t" HOST_WIDE_INT_PRINT_DEC"\t%s\n", "%s:%d:%d:%s\t" HOST_WIDE_INT_PRINT_DEC"\t%s\n",
lbasename (loc.file), loc.file == NULL ? "(artificial)" : lbasename (loc.file),
loc.line, loc.line,
loc.column, loc.column,
name, name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment