lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ