From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21879 invoked by alias); 31 Mar 2008 15:06:21 -0000 Received: (qmail 21835 invoked by uid 22791); 31 Mar 2008 15:06:21 -0000 X-Spam-Check-By: sourceware.org Received: from outbound-dub.frontbridge.com (HELO outbound3-dub-R.bigfish.com) (213.199.154.16) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 31 Mar 2008 15:05:55 +0000 Received: from outbound3-dub.bigfish.com (localhost.localdomain [127.0.0.1]) by outbound3-dub-R.bigfish.com (Postfix) with ESMTP id 8EE8EB74A48; Mon, 31 Mar 2008 15:05:52 +0000 (UTC) Received: from mail182-dub-R.bigfish.com (unknown [10.5.252.3]) by outbound3-dub.bigfish.com (Postfix) with ESMTP id 7AE90748052; Mon, 31 Mar 2008 15:05:52 +0000 (UTC) Received: from mail182-dub (localhost.localdomain [127.0.0.1]) by mail182-dub-R.bigfish.com (Postfix) with ESMTP id 08F786884EB; Mon, 31 Mar 2008 15:05:52 +0000 (UTC) X-BigFish: VP X-MS-Exchange-Organization-Antispam-Report: OrigIP: 149.199.60.83;Service: EHS Received: by mail182-dub (MessageSwitch) id 1206975948469356_20727; Mon, 31 Mar 2008 15:05:48 +0000 (UCT) Received: from xsj-gw1 (unknown [149.199.60.83]) by mail182-dub.bigfish.com (Postfix) with ESMTP id AF81510A00B2; Mon, 31 Mar 2008 15:05:43 +0000 (UTC) Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1.xilinx.com) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1JgLZu-00054Q-JQ; Mon, 31 Mar 2008 08:05:42 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Signedness of char and puts() Date: Mon, 31 Mar 2008 15:06:00 -0000 In-Reply-To: <47F0FB82.9040007@eagercon.com> References: <47F0FB82.9040007@eagercon.com> From: "Ed Stafford" To: "Michael Eager" , "John Love-Jensen" Cc: "GCC-help" Message-Id: <20080331150543.AF81510A00B2@mail182-dub.bigfish.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00335.txt.bz2 Thanks for the replies. It does seem that gcc is treating them as 3 separate types.=20 The compiler will treat plain char as signed or unsigned depending on the ABI, but even if the default is for char to act like unsigned char, it will warn you that char and unsigned char are of different types. =46rom the docs: Which of signed char or unsigned char has the same range,=20 representation, and behavior as "plain" char. Determined by ABI.=20 The options '-funsigned-char' and '-fsigned-char' change the default. It just seems that older versions of gcc didn't do this. Does it seem I'm on the right track here? Ed