This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C/C++ FEs: Do we really need three char_type_nodes?
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>, Mark Mitchell <mark at codesourcery dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Fri, 19 Sep 2008 18:55:18 +0200
- Subject: Re: C/C++ FEs: Do we really need three char_type_nodes?
- References: <b798aad50809190936h47d77128rce541f288001c74b@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Sep 19, 2008 at 12:36:12PM -0400, Diego Novillo wrote:
> When we instantiate char_type_node in tree.c:build_common_tree_nodes
> we very explicitly create a char_type_node that is signed or unsigned
> based on the value of -funsigned-char, but instead of make
> char_type_node point to signed_char_type_node or
> unsigned_char_type_node, we explicitly instantiate a different type.
C++ e.g. requires that char (c) is mangled differently from unsigned char
(h) and signed char (a), it is a distinct type.
Jakub