Merge constant pools for small functions
Bug #625233 reported by
Andrew Stubbs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GCC |
Won't Fix
|
Low
|
Unassigned |
Bug Description
There is no reason that each ARM function should have its own constant pool; multiple small functions in the same section can share a pool.
E.g.
The following program produces two small constant pools, but both could share one.
f()
{
return 123456789;
}
g()
{
return 123456789;
}
[CodeSourcery Tracker ID #798]
Changed in gcc-linaro: | |
importance: | Undecided → Low |
tags: |
added: armel removed: arm |
tags: | added: size task |
Changed in gcc-linaro: | |
status: | New → Confirmed |
Changed in gcc-linaro: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
This looks like gcc.gnu.org/PR9702 which was filed almost 8 years ago by the CSiBE folks. Apparently this used to be a hard problem. It may still be a hard problem now, but at least GCC has the ability now (GCC 4.6) to view entire compilation units (and more) so the problem should be easier to fix than 8 years ago.