* gcc param min-pagesize
@ 2023-03-27 11:42 Jonny Grant
0 siblings, 0 replies; only message in thread
From: Jonny Grant @ 2023-03-27 11:42 UTC (permalink / raw)
To: gcc-help
Hello
I saw this part of the manual documents "min-pagesize" added by Martin Liska.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options
"min-pagesize
Minimum page size for warning purposes."
Could anyone give more explanation of it's purpose please? It sounds very useful.
I was expecting the value to be a pagesize, with zero disabling it. However, trying it out it seems it sets the lowest accessible address, is that the case? If so I can make a patch to clarify that in the manual.
I did a test where I set it to 257 with a struct at 0x100 and that does give the array-bounds warning still, so maybe it's actually just the minimum address.
https://godbolt.org/z/ohhv5eMvK
I had read on this ticket about setting --param=min-pagesize=0 to allow access to the first 0x1000 address range (for embedded) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106699#c1
Thanks
Jonny
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-27 11:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 11:42 gcc param min-pagesize Jonny Grant
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).