diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-01-12 19:20:49 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-01-12 19:20:49 +0100 |
commit | 8f72ce2cec8b8961f381995eb6e2c5de1cd0f3d3 (patch) | |
tree | 089f50f7129ade1ddd78984984157a19526310f1 /gcc | |
parent | 52956fbc5da32a83a0118a25867af1c5e777b646 (diff) | |
download | gcc-8f72ce2cec8b8961f381995eb6e2c5de1cd0f3d3.zip gcc-8f72ce2cec8b8961f381995eb6e2c5de1cd0f3d3.tar.gz gcc-8f72ce2cec8b8961f381995eb6e2c5de1cd0f3d3.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/bb-reorder.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c21c464..4b4b577 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> PR target/83737 diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 9d18fcc..8a65d6b 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -2873,7 +2873,10 @@ pass_partition_blocks::gate (function *fun) we are going to omit the reordering. */ && optimize_function_for_speed_p (fun) && !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 |