NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: standards/46276: CHAR_MAX/CHAR_MIN don't change with -funsigned-char



The following reply was made to PR standards/46276; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: standards-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost, dholland%netbsd.org@localhost
Subject: Re: standards/46276: CHAR_MAX/CHAR_MIN don't change with
 -funsigned-char
Date: Wed, 28 Mar 2012 19:28:59 +0000

 On Wed, Mar 28, 2012 at 06:55:02PM +0000, Alan Barrett wrote:
  >  On Wed, 28 Mar 2012, David Holland wrote:
  >  > uwe says gcc provides __CHAR_UNSIGNED__ to test with.
  >  
  >  __type_is_signed(char) should also work, with recent sys/cdefs.h.
 
 That uses sizeof and won't work in a cpp conditional.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index