On 3/21/25 13:11, Pierrick Bouvier wrote:
On 3/21/25 12:27, Richard Henderson wrote:
On 3/21/25 11:09, Pierrick Bouvier wrote:
Mmm, ok I guess. Yesterday I would have suggested merging this with
page-vary.h, but
today I'm actively working on making TARGET_PAGE_BITS_MIN a global constant.
When you mention this, do you mean "constant accross all architectures", or a
global
(const) variable vs having a function call?
The first -- constant across all architectures.
That's great.
Does choosing the min(set_of(TARGET_PAGE_BITS_MIN)) is what we want there, or is the
answer more subtle than that?
It will be, yes.
This isn't as hard as it seems, because there are exactly two targets with
TARGET_PAGE_BITS < 12: arm and avr.
Because we still support armv4, TARGET_PAGE_BITS_MIN must be <= 10.
AVR currently has TARGET_PAGE_BITS == 8, which is a bit of a problem.
My first task is to allow avr to choose TARGET_PAGE_BITS_MIN >= 10.
Which will leave us with TARGET_PAGE_BITS_MIN == 10.
r~