From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] compiler bug From: forsyth@caldo.demon.co.uk MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-fjngrzficwbpgmypnwppdwsoou" Message-Id: <20010712103746.45B08199C0@mail.cse.psu.edu> Date: Thu, 12 Jul 2001 11:33:13 +0100 Topicbox-Message-UUID: c71eb858-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-fjngrzficwbpgmypnwppdwsoou Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit the compiler correctly marks it as unsigned int and uses the correct shift operator and types in the resulting tree, but it goes wrong a bit later. --upas-fjngrzficwbpgmypnwppdwsoou Content-Type: message/rfc822 Content-Disposition: inline Received: from tele-punt-22.mail.demon.net ([194.217.242.7]) by lavoro; Thu Jul 12 11:34:24 BST 2001 Received: from punt-2.mail.demon.net by mailstore for forsyth@caldo.demon.co.uk id 994933913:20:01461:0; Thu, 12 Jul 2001 10:31:53 GMT Received: from psuvax1.cse.psu.edu ([130.203.4.6]) by punt-2.mail.demon.net id aa2127223; 12 Jul 2001 10:31 GMT Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.30.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 55385199F3; Thu, 12 Jul 2001 06:31:10 -0400 (EDT) Received: from mail.noos.fr (racine.noos.net [212.198.2.71]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id C5D2A199ED for <9fans@cse.psu.edu>; Thu, 12 Jul 2001 06:30:08 -0400 (EDT) Received: (qmail 22090449 invoked by uid 0); 12 Jul 2001 10:23:25 -0000 Received: from unknown (HELO SOMA) ([212.198.183.192]) (envelope-sender ) by 212.198.2.71 (qmail-ldap-1.03) with SMTP for <9fans@cse.psu.edu>; 12 Jul 2001 10:23:25 -0000 Message-ID: <063601c10abc$775b3500$c0b7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <200107120627.f6C6RBh99881@ducky.net> Subject: Re: [9fans] compiler bug MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.5 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Thu, 12 Jul 2001 12:21:51 +0200 > In this case, 0x80000000 is not a representable value of type int, > but is representable as unsigned int, so it should have that type. eh? it most certainly _can_ be represented as an int if your machine has 32 bit ints. all the world's a vax :) until you hit the stupidity digital did with compiler for the alpha. int was always >= 16 bits and intended to be the native machine 'word' size. --upas-fjngrzficwbpgmypnwppdwsoou--