mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Santos <danielfsantos@att.net>
To: linux-kernel@vger.kernel.org
Subject: __builtin_constant_p version/-Ox Truth Table
Date: Fri, 04 May 2012 21:39:24 -0500	[thread overview]
Message-ID: <4FA492DC.7070708@att.net> (raw)

[-- 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 --]

                 reply	other threads:[~2012-05-05  2:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FA492DC.7070708@att.net \
    --to=danielfsantos@att.net \
    --cc=daniel.santos@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome