From owner-freebsd-current Wed May 15 21:19:24 2002 Delivered-To: freebsd-current@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 4F43637B406; Wed, 15 May 2002 21:19:16 -0700 (PDT) Received: from pool0568.cvx40-bradley.dialup.earthlink.net ([216.244.44.58] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 178CjQ-00038e-00; Wed, 15 May 2002 21:19:12 -0700 Message-ID: <3CE33321.B2FBD340@mindspring.com> Date: Wed, 15 May 2002 21:18:41 -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: Thomas David Rivers Cc: fenner@research.att.com, audit@FreeBSD.ORG, current@FreeBSD.ORG, knu@iDaemons.org Subject: Re: moused(8): char signed-ness problem with gcc 3.1 References: <200205152026.g4FKQ3746098@lakes.dignus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thomas David Rivers wrote: > Well - it's not counter-intuitive on many machines... For example, > on the IBM mainframe - there is an instruction to load a character > into a register - but not one that loads *and* sign-extends. So, > you can get much better code if characters are unsigned by default. Sounds like time to get out the wire wrap tools... and fix the hardware, not the software. > So in our C/C++ compilers for the mainframe, the default is > unsigned as well. > > I wonder if the AIX people were looking for mainframe > compatibility in this decision, or was it motivated > by the PowerPC instruction set? Does anyone know what > the Mac default is (since they are PowerPC based as well?) RS/6000's didn't used to use PPC processors at all; so it's probably intentional software compatability. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message