public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Michael Meissner <meissner@linux.vnet.ibm.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: Michael Meissner <meissner@linux.vnet.ibm.com>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Fix combiner issues with shifts (PR c/37924, take 2)
Date: Tue, 28 Oct 2008 21:43:00 -0000	[thread overview]
Message-ID: <20081028184055.GA2045@hungry-tiger.westford.ibm.com> (raw)
In-Reply-To: <20081028112718.GZ14706@tyan-ft48-01.lab.bos.redhat.com>

On Tue, Oct 28, 2008 at 12:27:18PM +0100, Jakub Jelinek wrote:
> On Mon, Oct 27, 2008 at 05:26:38PM -0400, Michael Meissner wrote:
> > On Mon, Oct 27, 2008 at 10:22:42PM +0100, Jakub Jelinek wrote:
> > > On Mon, Oct 27, 2008 at 05:13:20PM -0400, Michael Meissner wrote:
> > > > However, your test code should declare a to be
> > > > signed char instead of char, since there are platforms where chars are unsigned
> > > > by default.
> > > 
> > > I'm aware of that, that's why I've tested the testcase works with both
> > > -fsigned-char and -funsigned-char.  I wanted to cover both signed char
> > > (on some arches) and unsigned char (on others).
> > 
> > I was just picking up on whether storing 0x80 would someday cause the test to
> > fail on different signed/unsigned char configurations (since 0x80 can't be fit
> > in a normal char), and I figured it was better to write type correct code to
> > have the meaning clear.
> 
> Ok, here is the same patch with testcase that tests both signed char and
> unsigned char on all targets.  Bootstrapped/regtested on x86_64-linux, ok
> for trunk?

Ok.

-- 
Michael Meissner, IBM
4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
meissner@linux.vnet.ibm.com

      reply	other threads:[~2008-10-28 18:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 20:58 [PATCH] Fix combiner issues with shifts (PR c/37924) Jakub Jelinek
2008-10-27 21:54 ` Michael Meissner
2008-10-27 22:30   ` Jakub Jelinek
2008-10-27 22:47     ` Michael Meissner
2008-10-28 12:38       ` [PATCH] Fix combiner issues with shifts (PR c/37924, take 2) Jakub Jelinek
2008-10-28 21:43         ` Michael Meissner [this message]

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=20081028184055.GA2045@hungry-tiger.westford.ibm.com \
    --to=meissner@linux.vnet.ibm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.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).