From owner-freebsd-bugs Tue Aug 8 19:50:21 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id CEB6837BA84 for ; Tue, 8 Aug 2000 19:50:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA26800; Tue, 8 Aug 2000 19:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 8 Aug 2000 19:50:02 -0700 (PDT) Message-Id: <200008090250.TAA26800@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Laurence Berland Subject: Re: bin/2036: cpio size wraparound Reply-To: Laurence Berland Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/2036; it has been noted by GNATS. From: Laurence Berland To: freebsd-gnats-submit@FreeBSD.org, asami@FreeBSD.org Cc: Subject: Re: bin/2036: cpio size wraparound Date: Tue, 08 Aug 2000 22:43:31 -0400 #include int main() { #ifdef __GNUC__ printf("GNUC\n"); #else printf("no GNUC\n"); #endif exit(0); } prints GNUC on my system, but my system is out of date. If someone else wants to try it, and tell me what happens, I'll try and look into this further. The following from cpio's global.c makes me think this issue is a fluke on this guys system, or perhaps CFLAGS is doing something I haven't considered. /* Total number of bytes read and written for all files. Now that many tape drives hold more than 4Gb we need more than 32 bits to hold input_bytes and output_bytes. But it's not worth the trouble of adding special multi-precision arithmetic if the compiler doesn't support 64 bit ints since input_bytes and output_bytes are only used to print the number of blocks copied. */ #ifdef __GNUC__ long long input_bytes, output_bytes; #else long input_bytes, output_bytes; #endif -- Laurence Berland <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. http://stuy.debate.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message