From owner-freebsd-audit Wed May 15 12:49:31 2002 Delivered-To: freebsd-audit@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 6728737B406; Wed, 15 May 2002 12:49:26 -0700 (PDT) Received: from pool0412.cvx21-bradley.dialup.earthlink.net ([209.179.193.157] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 1784m1-0003nb-00; Wed, 15 May 2002 12:49:22 -0700 Message-ID: <3CE2BBA2.9416C455@mindspring.com> Date: Wed, 15 May 2002 12:48:50 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Bill Fenner Cc: knu@iDaemons.org, audit@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: moused(8): char signed-ness problem with gcc 3.1 References: <86sn4t8fzp.wl@archon.local.idaemons.org> <3CE2B06B.BF034A4E@mindspring.com> <200205151934.MAA20988@windsor.research.att.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bill Fenner wrote: > gcc 3.1 simply defaults to unsigned chars. 127 << 1 = 254; 254 / 2 = 127. > > My machine is too slow to test this expeditiously, but I'm trying > adding "#define DEFAULT_SIGNED_CHAR 1" into freebsd-native.h . I will bet today's lunch money that you have found it for sure. I guess we will have to go around adding "signed" everywhere, if it's no longer the default. Unsigned is a stupid, counter-intuitive default, and has been, ever since I first used AIX. My bet is a conspiracy by AIX folks so that Open Source software will work on AIX without them having to fix their stupid defaults. 8-) 8-). If this isn't the default, then "signed" is too much like "const" and "volatile" and other "you can't ignore them or I will generate bad code" keywords. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message