projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix lto-wrapper link flags
[gcc.git]
/
gcc
/
bb-reorder.c
diff --git
a/gcc/bb-reorder.c
b/gcc/bb-reorder.c
index 9d18fcc495f3b2b3517a7bc4b566fa2c8ee4d16c..8a65d6b3938c12969b94a7c7d4e392c1e4c90dc5 100644
(file)
--- 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)
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
}
unsigned