From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25457 invoked by alias); 10 Dec 2002 00:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25439 invoked by uid 71); 10 Dec 2002 00:26:01 -0000 Date: Mon, 09 Dec 2002 16:26:00 -0000 Message-ID: <20021210002601.25438.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: preprocessor/8880: __WCHAR_TYPE__ macro incorrectly set to "long int" with -fshort-wchar Reply-To: Neil Booth X-SW-Source: 2002-12/txt/msg00503.txt.bz2 List-Id: The following reply was made to PR preprocessor/8880; it has been noted by GNATS. From: Neil Booth To: cheinan@primus.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: preprocessor/8880: __WCHAR_TYPE__ macro incorrectly set to "long int" with -fshort-wchar Date: Tue, 10 Dec 2002 00:19:37 +0000 cheinan@primus.com wrote:- > The __WCHAR_TYPE__ macro is not set correctly when the -fshort-wchar command line option is specified. In gcc 3.0.3 the macro would be defined to "unsigned short," but in 3.2.1 it remains set to "long int." The wchar_t type itself is correct. > > The compiler also emits the diagnostic: > :1:1: warning: "__WCHAR_TYPE__" redefined > :1:1: warning: this is the location of the previous definition > >How-To-Repeat: > liza:~/test> cat empty.cpp > int main() > { > return 0; > } Would you please confirm this issue does not arise in CVS gcc (pre-3.3)? Neil.