This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: New hook for custom-mangling of C++ scalars


Zack Weinberg <zack@codesourcery.com> writes:

| > +  if (type == bool_char_type_node) return "U6__boolc";
| > +  if (type == bool_short_type_node) return "U6__bools";
| > +  if (type == pixel_type_node) return "u7__pixel";
| > +  if (type == bool_int_type_node) return "U6__booli";
| 
| Encoding "bool X" as a "vendor-extended type qualifier" is a little
| weird, IMHO, but I don't have a problem with it.  They demangle to
| "<type> __bool" (owing to the weird C++ convention of writing type
| qualifiers after the base type, contrary to English, but never mind) --

I can't make sense of that.  Would you mind elaborating?

| the only way this is relevant to you is, the C++ parser had better
| accept "int __bool" as well as "__bool int".

type specifiers can appear in any order, so that should noe be a problem.

(still, "__bool int" and "int __bool" are curious notions).

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]