From owner-freebsd-current Sun Sep 27 19:30:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA08043 for freebsd-current-outgoing; Sun, 27 Sep 1998 19:30:09 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from home.dragondata.com (home.dragondata.com [204.137.237.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA07956 for ; Sun, 27 Sep 1998 19:29:54 -0700 (PDT) (envelope-from toasty@home.dragondata.com) Received: (from toasty@localhost) by home.dragondata.com (8.8.8/8.8.5) id VAA13889; Sun, 27 Sep 1998 21:29:21 -0500 (CDT) From: Kevin Day Message-Id: <199809280229.VAA13889@home.dragondata.com> Subject: Re: Compiler Problem in 64bit math? In-Reply-To: <199809280103.SAA08252@usr05.primenet.com> from Terry Lambert at "Sep 28, 98 01:03:17 am" To: tlambert@primenet.com (Terry Lambert) Date: Sun, 27 Sep 1998 21:29:20 -0500 (CDT) Cc: shimon@simon-shapiro.org, freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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