Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 1998 21:29:20 -0500 (CDT)
From:      Kevin Day <toasty@home.dragondata.com>
To:        tlambert@primenet.com (Terry Lambert)
Cc:        shimon@simon-shapiro.org, freebsd-current@FreeBSD.ORG
Subject:   Re: Compiler Problem in 64bit math?
Message-ID:  <199809280229.VAA13889@home.dragondata.com>
In-Reply-To: <199809280103.SAA08252@usr05.primenet.com> from Terry Lambert at "Sep 28, 98 01:03:17 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> > works correctly.  IF, however, I change the first line to be:
> > 
> >          register off_t top_size    = QUAD_MAX, ...
> > 
> > then the test at the bottom is always false.  This is with large numbers,
> > such as QUAD_MAX...
> 
> What processor are you using?
> 
> If the Alpha, then I'm surprised.
> 
> If Intel, well, you realize that registers are 32 bits, right?  I'm
> not sure the compiler knows how to do a 64 bit register, but you
> might be confusing it into trying.  8-(.
> 
> 
> 					Terry Lambert
> 					terry@lambert.org

I believe this is illegal though... Doesn't ansi say that by adding the
'register' modifier, the type/size can't silently change?

'register' is a suggestion, if it can't do it, it's just supposed to ignore
it, so why is this happening? :)

Kevin

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809280229.VAA13889>