From owner-freebsd-hackers Tue Aug 8 19:26:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp6.mindspring.com (smtp6.mindspring.com [207.69.200.110]) by hub.freebsd.org (Postfix) with ESMTP id 96B3A37B958 for ; Tue, 8 Aug 2000 19:26:29 -0700 (PDT) (envelope-from stuyman@confusion.net) Received: from confusion.net (user-2ive7mn.dialup.mindspring.com [165.247.30.215]) by smtp6.mindspring.com (8.9.3/8.8.5) with ESMTP id WAA05812 for ; Tue, 8 Aug 2000 22:26:23 -0400 (EDT) Message-ID: <3990C10F.B21AEF92@confusion.net> Date: Tue, 08 Aug 2000 22:25:19 -0400 From: Laurence Berland Organization: B.R.A.T.T. X-Mailer: Mozilla 4.5 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: God I feel stupid (gcc issue) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been going through the PR database, thinking maybe it was my turn to do something for FreeBSD. I looked at pr bin/2036. Problem? long isn't big enough to count all the bytes we could hold. So I look in the code and find /* 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 in global.c So I thought, "we don't define __GNUC__?" I figured I'd check. After much mind wracking, I can't for the life of me figure out how to get gcc to output a list of what is and isnt defined by default... help! -- 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-hackers" in the body of the message