This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH updated] Use a proper C tokenizer to implement the obsolete typedefs test.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Zack Weinberg <zackw at panix dot com>, <libc-alpha at sourceware dot org>, Carlos O'Donell <carlos at redhat dot com>, DJ Delorie <dj at redhat dot com>, Arjun Shankar <arjun at redhat dot com>
- Date: Wed, 20 Feb 2019 17:29:01 +0000
- Subject: Re: [PATCH updated] Use a proper C tokenizer to implement the obsolete typedefs test.
- References: <20190218143920.20885-1-zackw@panix.com> <87o976csv8.fsf@oldenburg2.str.redhat.com>
On Wed, 20 Feb 2019, Florian Weimer wrote:
> * Zack Weinberg:
>
> > * sys/types.h (__u_intN_t): Remove.
> > (u_int8_t): Typedef using __uint8_t.
> > (u_int16_t): Typedef using __uint16_t.
> > (u_int32_t): Typedef using __uint32_t.
> > (u_int64_t): Typedef using __uint64_t.
>
> Why doesn't this change C++ name mangling?
Because the logic in c_common_type_for_mode prefers unsigned int over long
unsigned int, and long unsigned int over long long unsigned int, if they
have the same mode. which matches the logic used in bits/types.h. (Also,
the mangling of those types is verified in c++-types.data so the testsuite
would show if it changed.)
--
Joseph S. Myers
joseph@codesourcery.com