[Patch] (1/n) newlib: Only call _fputwc_r if ELIX_LEVEL >= 4 (was: Build-dependency issues with ELIX_LEVEL)
Tobias Burnus
tobias@codesourcery.com
Wed Mar 30 09:43:58 GMT 2022
Hello,
this packages the the first patch of last/first email in this thread.
As described in the commit log (and previous email),
__sprint_r and __sfputs_r of (nano-)vfprintf.c
call fputwc.c's _fputwc_r.
While the vfprintf.c file is compiled for ELIX_LEVEL >= 1,
the fputwc.c file is only compiled with ELIX_LEVEL >= 4.
Solution: This patch ignores the _WIDE_ORIENT support in
__sprint_r / __sfputs_r unless ELIX_LEVEL >= 4.
It feels like the right solution but the ELIX description is
vague enough to be not sure.
Without that patch I get for ELIX_LEVEL == 1 (with nvptx)
a link error (missing symbol) for a code calling 'fprintf'
(with no wide char used).
OK? – If so, please commit. Otherwise, comments are welcome.
Tobias
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-newlib-Only-call-_fputwc_r-if-ELIX_LEVEL-4.patch
Type: text/x-patch
Size: 2688 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20220330/91feb0f8/attachment.bin>
More information about the Newlib
mailing list