[<prev] [next>] [day] [month] [year] [list]
Date: Fri, 04 May 2012 21:39:24 -0500
From: Daniel Santos <danielfsantos@....net>
To: linux-kernel@...r.kernel.org
Subject: __builtin_constant_p version/-Ox Truth Table
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
Download attachment "consttest.tar.lzma" of type "application/x-lzma" (31775 bytes)
Powered by blists - more mailing lists