From owner-freebsd-current Mon Sep 28 15:42:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA12511 for freebsd-current-outgoing; Mon, 28 Sep 1998 15:42:47 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nomis.simon-shapiro.org (nomis.simon-shapiro.org [209.86.126.163]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA12392 for ; Mon, 28 Sep 1998 15:42:14 -0700 (PDT) (envelope-from shimon@simon-shapiro.org) Received: (qmail 3332 invoked by uid 1000); 28 Sep 1998 23:44:58 -0000 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199809280229.VAA13889@home.dragondata.com> Date: Mon, 28 Sep 1998 19:44:58 -0400 (EDT) X-Face: (&r=uR0&yvh>h^ZL4"-TH61PD}/|Y'~58Z# Gz&BK'&uLAf:2wLb~L7YcWfau{;N(#LR2)\i.l8'ZqVhv~$rNx$]Om6Sv36S'\~5m/U'"i/L)&t$R0&?,)tm0l5xZ!\hZU^yMyCdt!KTcQ376cCkQ^Q_n.GH;Dd-q+ O51^+.K-1Kq?WsP9;cw-Ki+b.iY-5@3!YB5{I$h;E][Xlg*sPO61^5=:5k)JdGet,M|$"lq!1!j_>? $0Yc? Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: Kevin Day Subject: Re: Compiler Problem in 64bit math? Cc: freebsd-current@FreeBSD.ORG, (Terry Lambert) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ Sorry for the late reaction...] Kevin Day, On 28-Sep-98 you wrote: > > > 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. P6-200 Works well on the Alpha. > > 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-(. Must be, as the same exact code works wwll in another program. > > > > > > 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? Then the compiler should generate an error message, me thinks. > 'register' is a suggestion, if it can't do it, it's just supposed to > ignore > it, so why is this happening? :) They used to call these compiler bugs :-) Sincerely Yours, Shimon@Simon-Shapiro.ORG 770.265.7340 Simon Shapiro Unwritten code has no bugs and executes at twice the speed of mouth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message