* __builtin_constant_p version/-Ox Truth Table
@ 2012-05-05 2:39 Daniel Santos
0 siblings, 0 replies; only message in thread
From: Daniel Santos @ 2012-05-05 2:39 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
I'm working on some code relies a lot on __builtin_constant_p, which
behaves quite differently in various circumstances (-O levels, versions,
etc.). To avoid any further gotchas, I wrote a small test program &
script, massaged the data a bit in OpenOffice Calc and got a helpful
truth table that I thought was worth sharing.
I initially forgot to do non-struct member char and void pointers, so
that data comes out of the script now, but I don't feel like massaging
it into the speadsheet again, so here they are (hope it's helpful to
somebody else)
Daniel
[-- Attachment #2: consttest.tar.lzma --]
[-- Type: application/x-lzma, Size: 31775 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-05 2:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-05 2:39 __builtin_constant_p version/-Ox Truth Table Daniel Santos
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.