[patch] Refine definitions for wchar_t/wint_t on VxWorks
Olivier Hainque
hainque@adacore.com
Fri Dec 13 16:04:00 GMT 2019
This change refines the VxWorks macro definitions configuring
wchar_t to accommodate the VxWorks7 environment, where wchar_t
is now typically a 32bit type.
We also ensure that the definitions for wint_t are always based
on those for wchar_t, so the two remain in sync in environments
where WCHAR_TYPE is redefined for a specific CPU architecture.
The patch posted here is a minor variation on a change initially
devised by Alexandre, just moved to an even more common place where
other type related definitions are.
Tested in accordance with the description in
https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00911.html
Committing to mainline.
Olivier
2019-12-13 Alexandre Oliva <oliva@adacore.com>
Olivier Hainque <hainque@adacore.com>
* config/vx-common.h (WCHAR_TYPE_SIZE): 32 on VxWorks 7.
(WCHAR_TYPE): Pick accordingly.
(WINT_TYPE_SIZE): Define in terms of WCHAR_TYPE_SIZE.
(WINT_TYPE): Define in terms of WCHAR_TYPE.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0010-Refine-definitions-for-wchar_t-wint_t-on-VxWorks.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191213/0974199f/attachment.txt>
More information about the Gcc-patches
mailing list