public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Janis Johnson <janis187@us.ibm.com>
To: Rask Ingemann Lambertsen <rask@sygehus.dk>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: RFA: Fixing gcc.c-torture/unsorted/dump-noaddr.c for 16-bit 	targets
Date: Tue, 24 Jul 2007 22:44:00 -0000	[thread overview]
Message-ID: <1185312950.5814.22.camel@janis-laptop> (raw)
In-Reply-To: <20070721092054.GA5690@sygehus.dk>

On Sat, 2007-07-21 at 11:20 +0200, Rask Ingemann Lambertsen wrote:
> On Tue, May 29, 2007 at 10:36:42AM -0700, Janis Johnson wrote:
> 
> > Or you could check the value of INT_MAX:
> > 
> > --- dump-noaddr.c.orig       2007-05-29 10:29:08.992247040 -0700
> > +++ dump-noaddr.c     2007-05-29 10:28:08.908194752 -0700
> > @@ -1,10 +1,21 @@
> > +#include <limits.h>
> > +
> >  #if MASK & 1
> > +#define t11(x) x x x x x x x x x x x
> >  #define t16(x) x x x x x x x x x x x x x x x x
> > +#if INT_MAX < 2147483647
> > +#define M (sizeof (t11(t11(t16(t16(" "))))) - 1)
> > +#else
> >  #define M (sizeof (t16(t16(t16(t16(t16(" ")))))) - 1)
> >  #endif
> > +#endif
> >  #if MASK & 2
> > +#if INT_MAX < 2147483647
> > +#define M 30976
> > +#else
> >  #define M 1048576
> >  #endif
> > +#endif
> >   
> >  typedef struct s {
> >    int c;
> > 
> > Janis
> 
>    Your patch fixes it. I checked on m32c-unkonwn-elf, i686-pc-linux-gnu and
> x86_64-unknown-linux-gnu and it passes on all three.

This is OK for mainline.

Janis

      reply	other threads:[~2007-07-24 21:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-28  9:54 Rask Ingemann Lambertsen
2007-05-28 12:49 ` Rask Ingemann Lambertsen
2007-05-29 17:41   ` Janis Johnson
2007-07-21 10:08     ` Rask Ingemann Lambertsen
2007-07-24 22:44       ` Janis Johnson [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=1185312950.5814.22.camel@janis-laptop \
    --to=janis187@us.ibm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=rask@sygehus.dk \
    /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).