tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Conflict between system and compiler types
Kamil Rytarowski <n54%gmx.com@localhost> writes:
> On GNU systems stddef.h is shipped with compiler and on NetBSD it's
> shipped with the system headers.
What do C99 and POSIX say?
It seems strange for compilers to pick types when they are part of the
system ABI.
> I've run into an issue that this caused mismatch between a compiler type
> and header type in wchar_t.
>
> cc -fshort-wchar generates code for wchar_t of type 'unsigned short
> int', however it was hardcoded for 'int'.
Isn't -fshort-wchar documented to deviate from the system ABI? Isn't it
a bug to use it, unless you somehow want that behavior?
Or are you saying that -fshort-wchar is supposed use a fixed type, and
instead the compiler is picking up the system header?
Home |
Main Index |
Thread Index |
Old Index