public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eric Botcazou <ebotcazou@adacore.com>
To: Richard Guenther <richard.guenther@gmail.com>
Cc: Kai Tietz <ktietz70@googlemail.com>,
	GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [patch gimplifier]: Change TRUTH_(AND|OR|XOR) expressions to binary form
Date: Thu, 19 May 2011 12:57:00 -0000	[thread overview]
Message-ID: <201105191245.02882.ebotcazou@adacore.com> (raw)
In-Reply-To: <BANLkTinv=33LGFz07OxRDbFV25=jDPnnpQ@mail.gmail.com>

> Eric, how will this interact with Ada boolean types with 8 bit precision
> and those "invalid" values - will invalid values ever enter into
> expressions or are they checked before?

IIUC the Ada semantics is that they must be checked prior to being used.  Once 
they are used, they are "recycled" into valid values.  So the issue boils down 
to how the check is implemented and it doesn't use TRUTH_(AND|OR|XOR) at all.

> Can you think of something that would break with s/TRUTH_*_EXPR/BIT_*_EXPR/
> for Ada? 

No, not at the moment.  Thanks for asking in any case.

-- 
Eric Botcazou

  reply	other threads:[~2011-05-19 10:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18 17:14 Kai Tietz
2011-05-18 19:35 ` Kai Tietz
2011-05-19 12:31   ` Richard Guenther
2011-05-19 12:57     ` Eric Botcazou [this message]
2011-05-19 12:59       ` Richard Guenther
2011-05-19 13:01         ` Kai Tietz

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=201105191245.02882.ebotcazou@adacore.com \
    --to=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ktietz70@googlemail.com \
    --cc=richard.guenther@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).