This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new gcc bug


Vincent Lefevre <Vincent.Lefevre@loria.fr> writes:

> On Mon, Jun 23, 2003 at 18:09:23 +0200, Falk Hueffner wrote:
> > I cannot reproduce this on ia64-linux with gcc 3.2.3 (or any other
> > release). Note that the correct result is 261941557207, not 60, since
> > long has 64 bit on ia64.
> 
> Not under HP-UX.

Ah, I see. I can reproduce it on HP-UX with the same gcc version, I
don't have any current compiler to test, though.

The bogus result is the low 32 bit of the 64 bit division. Probably
the -1 is sign extended although it shouldn't be (I don't really know
ia64's calling conventions)

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]