Commit 8f72ce2c by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/81155 (Debug make check regressions in GCC 8.0)

	PR debug/81155
	* bb-reorder.c (pass_partition_blocks::gate): In lto don't partition
	main to workaround a bug in GDB.

From-SVN: r256592
parent 52956fbc
2018-01-12 Jakub Jelinek <jakub@redhat.com>
PR debug/81155
* bb-reorder.c (pass_partition_blocks::gate): In lto don't partition
main to workaround a bug in GDB.
2018-01-12 Tom de Vries <tom@codesourcery.com> 2018-01-12 Tom de Vries <tom@codesourcery.com>
PR target/83737 PR target/83737
......
...@@ -2873,7 +2873,10 @@ pass_partition_blocks::gate (function *fun) ...@@ -2873,7 +2873,10 @@ pass_partition_blocks::gate (function *fun)
we are going to omit the reordering. */ we are going to omit the reordering. */
&& optimize_function_for_speed_p (fun) && optimize_function_for_speed_p (fun)
&& !DECL_COMDAT_GROUP (current_function_decl) && !DECL_COMDAT_GROUP (current_function_decl)
&& !lookup_attribute ("section", DECL_ATTRIBUTES (fun->decl))); && !lookup_attribute ("section", DECL_ATTRIBUTES (fun->decl))
/* Workaround a bug in GDB where read_partial_die doesn't cope
with DIEs with DW_AT_ranges, see PR81115. */
&& !(in_lto_p && MAIN_NAME_P (DECL_NAME (fun->decl))));
} }
unsigned unsigned
......
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