[Bug middle-end/65224] New: fprofile-reorder-functions reorders using expand order
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 26 17:53:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65224
Bug ID: 65224
Summary: fprofile-reorder-functions reorders using expand order
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
fprofile-reorder-functions reorders functions in the assembly file by changing
the order of expansion of the functions.
This interacts badly with -fipa-ra, which benefits from having all callees
expanded before expanding the caller.
See also:
1. https://gcc.gnu.org/ml/gcc-patches/2014-05/msg02097.html
...
Note that this patch will interfere rather badly with Martin's work to order
functions in execution order, since it wants to have callee before caller. I
wonder if we can't add support for GAS section fragments in this case to order
functions in a way we want.
...
2. https://gcc.gnu.org/ml/gcc-patches/2013-11/msg01979.html
...
What happened with the plans for linker support? Perhaps we can implement the
numbered sections by Carry's proposal and hope that binutils will catch up in
next release?
...
More information about the Gcc-bugs
mailing list