delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/12/26/09:02:52

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200112261402.PAA13636@father.ludd.luth.se>
Subject: Re: gcc 3.03 and libc sources
In-Reply-To: <1190-Wed26Dec2001152919+0200-eliz@is.elta.co.il> from Eli Zaretskii at "Dec 26, 2001 03:29:19 pm"
To: djgpp-workers AT delorie DOT com
Date: Wed, 26 Dec 2001 15:02:47 +0100 (MET)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

According to Eli Zaretskii:
> > From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
> > Date: Wed, 26 Dec 2001 13:29:20 +0100 (MET)
> > > > > > -                   type->stubinfo->struct_length : 0
> > > > > > +                   (unsigned int)(type->stubinfo->struct_length) : 0

                    + (argc+1)*sizeof(short)))
(Added for context.)

> > > > > 
> > > > > This is really ridiculous on the part of gcc!!  Does it help to say 0U 
> > > > > instead of just 0, and leave the struct_length part alone?
> > > > 
> > > > No. Because the struct_length is signed.
> > > 
> > > Then what's the problem?  Does GCC treat 0 as unsigned?  Does 0L
> > > instead help?
> > 
> > The problem is as in the other cases: we have a situation of bool ?
> > signed : unsigned.
> 
> Yes, but who is the unsigned here?  You say that struct_length is
> signed, which leaves us with zero.  That's why I suggested to try 0L.

I guess it's sizeof(short) (and perhaps argc) and the digit submits to
the unsignedness.

I'll try 0L and see what happens.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019