Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinystdio: added fgetpos and fsetpos files #10

Merged
merged 28 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f94c045
Stop using newlib.h header file
keith-packard Jun 24, 2024
f41cfab
machine: Ensure build defs are available before testing them
keith-packard Jun 26, 2024
95cd2f1
semihost/riscv: Rename asm source from .s to .S
keith-packard Jun 24, 2024
a19eb20
test: Fix t_fmemopen to just use POSIX APIs
keith-packard Jun 24, 2024
a50db63
newlib: Include picolibc.h from all assembly code
keith-packard Jun 24, 2024
d0bb682
time: Avoid double-defining _DEFAULT_SOURCE in wcsftime.c
keith-packard Jun 24, 2024
bb98cc8
tinystdio: Make sure feature macros are defined before use
keith-packard Jun 25, 2024
754dd61
machine: Make sure picolibc.h is included from machine .c source
keith-packard Jun 25, 2024
1490a41
sys/features.h: Add _LARGEFILE64_SOURCE and __LARGEFILE64_VISIBLE
keith-packard Jun 25, 2024
94e8e14
picolib: add m68k interrupt vector
keith-packard Jun 26, 2024
16b213f
libm/ld: Provide global __signbitl implementation
keith-packard Jun 26, 2024
81cc840
Support -Wmissing-declarations and -Wmissing-prototypes
keith-packard Jun 25, 2024
1ad8431
Remove -include picolibc.h from compiler options
keith-packard Jun 24, 2024
4c20bb4
tinystdio: Add POSIX unlocked functions
keith-packard Jun 26, 2024
45eb533
tinystdio: Set the file stream to wide orientation in fputwc/fgetwc
A-Shehab May 8, 2024
b26c565
test: Added test-wchar
A-Shehab May 8, 2024
f8191dc
aarch64: Support softfp ABI (aapcs-soft)
keith-packard Jun 28, 2024
49a7137
aarch64: Disable Neon optimizations when unavailable
keith-packard Jun 29, 2024
adcad7c
aarch64: Clang mis-compiles FLT_ROUNDS on soft-float aarch64 targets
keith-packard Jun 29, 2024
14db683
libm/ld: Long double math error paths returned incorrect sign
keith-packard Jun 29, 2024
0a4de2d
math/test: Reduce precision of one jn test for clang
keith-packard Jun 29, 2024
3ecd9ce
picocrt/aarch64: Don't enable FPU if none is used
keith-packard Jun 29, 2024
778d67e
test: Limit test-atomic to targets using atomics
keith-packard Jun 29, 2024
89b25dc
test: Fix test stack protector flags
keith-packard Jun 29, 2024
8e678e2
test: Make stack-smash more subtle
keith-packard Jun 29, 2024
6380049
scripts: Add scripts to build an aarch64 softfp version
keith-packard Jun 29, 2024
c87d747
.github: Test aarch64 softfp build with llvm
keith-packard Jun 29, 2024
d3e49a4
tinystdio: added fgetpos and fsetpos files
HanaMAshour Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/do-linux
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ HERE=`dirname "$0"`
"$HERE"/do-test clang-thumbv7e+dp "$@"
"$HERE"/do-test clang-thumbv7m "$@"
"$HERE"/do-test clang-thumbv6m "$@"
"$HERE"/do-test clang-aarch64 "$@"
"$HERE"/do-build mips "$@"
"$HERE"/do-build mips64 "$@"
"$HERE"/do-build mipsel "$@"
Expand Down
1 change: 1 addition & 0 deletions .github/linux-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ https://maps.altusmetrum.org/m68k-unknown-elf.tar.xz
https://maps.altusmetrum.org/msp430-unknown-elf.tar.xz
https://maps.altusmetrum.org/sh-unknown-elf-1.tar.xz
https://maps.altusmetrum.org/qemu-arm.tar.xz
https://maps.altusmetrum.org/aarch64-none-elf-llvm.tar.xz
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,6 @@ set(PREFIX "${PROJECT_BINARY_DIR}")
configure_file(picolibc.specs.in "${PROJECT_BINARY_DIR}/picolibc.specs" @ONLY)

set(PICOLIBC_COMPILE_OPTIONS
"-include" "${PICOLIBC_INCLUDE}/picolibc.h"
"-nostdlib"
"-D_LIBC"
${TLSMODEL}
Expand Down
1 change: 0 additions & 1 deletion COPYING.picolibc
Original file line number Diff line number Diff line change
Expand Up @@ -2755,7 +2755,6 @@ Files: .clang-format
newlib/libm/ld/files
newlib/libm/libm.in.xml
newlib/man.xsl
newlib/newlib.hin
newlib/refcontainers.xslt
newlib/testsuite/newlib.time/tzset.c
picolibc.h.in
Expand Down
2 changes: 1 addition & 1 deletion dummyhost/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <stdio.h>
#include <unistd.h>

void _ATTRIBUTE((__noreturn__))
_exit(int code)
Expand Down
21 changes: 15 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ newlib_nano_malloc = get_option('newlib-nano-malloc')
lite_exit = get_option('lite-exit')

newlib_elix_level = get_option('newlib-elix-level')
c_args = ['-include', '@0@/@1@'.format(meson.current_build_dir(), 'picolibc.h')] + core_c_args
c_args = core_c_args
native_common_args = ['-DNO_NEWLIB']

if get_option('profile')
Expand All @@ -198,7 +198,7 @@ endif
if have_cplusplus
cpp_args = c_args
cpp_flags = cpp.get_supported_arguments(['-fno-common', '-frounding-math', '-fsignaling-nans',
'-Wno-unsupported-floating-point-opt', '-fno-stack-protector',
'-Wno-unsupported-floating-point-opt',
'-fno-builtin-copysignl'])
cpp_args += cpp_flags
native_cpp_args = native_common_args + cpp_flags
Expand All @@ -207,7 +207,7 @@ endif
# Disable ssp and fortify source while building picolibc (it's enabled
# by default by the ubuntu native compiler)
c_flags = cc.get_supported_arguments(['-fno-common', '-frounding-math', '-fsignaling-nans',
'-Wno-unsupported-floating-point-opt', '-fno-stack-protector',
'-Wno-unsupported-floating-point-opt',
'-fno-builtin-copysignl'])

c_sanitize_bounds_flags = cc.get_supported_arguments(['-fsanitize=bounds'])
Expand Down Expand Up @@ -297,6 +297,7 @@ posix_console = tinystdio and get_option('posix-console')
posix_io = tinystdio and (get_option('posix-io') or posix_console)
io_float_exact = not tinystdio or get_option('io-float-exact')
atomic_ungetc = tinystdio and get_option('atomic-ungetc')
atomic_signal = get_option('atomic-signal')
format_default = get_option('format-default')
printf_aliases = get_option('printf-aliases')
io_percent_b = tinystdio and get_option('io-percent-b')
Expand Down Expand Up @@ -788,6 +789,8 @@ common_warnings = [
'-Wno-missing-braces',
'-Wno-return-type',
'-Wno-unused-command-line-argument',
'-Wmissing-prototypes',
'-Wmissing-declarations',
]
if get_option('analyzer')
common_warnings += [
Expand Down Expand Up @@ -816,11 +819,13 @@ else
endif
test_c_args += [test_fortify_arg]

c_args += cc.get_supported_arguments(['-fno-stack-protector'])

if have_cplusplus
cpp_warnings = common_warnings
cpp_flags = cpp.get_supported_arguments(cpp_warnings)
cpp_args += cpp_flags
cpp_flags = cpp.get_supported_arguments(['-fno-exceptions', '-fno-unwind-tables'])
cpp_flags = cpp.get_supported_arguments(['-fno-exceptions', '-fno-unwind-tables', '-fno-stack-protector'])
cpp_args += cpp_flags
test_cpp_args = cpp_args + [test_fortify_arg]
endif
Expand Down Expand Up @@ -1331,7 +1336,7 @@ conf_data.set('_HAVE_PICOLIBC_TLS_RP2040', get_option('tls-rp2040'),
conf_data.set('POSIX_IO', posix_io, description: 'Use open/close/read/write in tinystdio')
conf_data.set('_PRINTF_SMALL_ULTOA', printf_small_ultoa, description: 'avoid software division in decimal conversion')
conf_data.set('ATOMIC_UNGETC', atomic_ungetc, description: 'Use atomics for fgetc/ungetc for re-entrancy')
conf_data.set('_PICOLIBC_ATOMIC_SIGNAL', get_option('atomic-signal'), description: 'Use atomics for signal/raise for re-entrancy')
conf_data.set('_PICOLIBC_ATOMIC_SIGNAL', atomic_signal, description: 'Use atomics for signal/raise for re-entrancy')
conf_data.set('_HAVE_BITFIELDS_IN_PACKED_STRUCTS', have_bitfields_in_packed_structs, description: 'Use bitfields in packed structs')
conf_data.set('_HAVE_BUILTIN_MUL_OVERFLOW', have_builtin_mul_overflow, description: 'Compiler has __builtin_mul_overflow')
conf_data.set('_HAVE_BUILTIN_ADD_OVERFLOW', have_builtin_add_overflow, description: 'Compiler has __builtin_add_overflow')
Expand Down Expand Up @@ -1583,6 +1588,10 @@ if tests_enable_stack_protector
endif
endif

if not tests_enable_stack_protector
test_c_args += cc.get_supported_arguments(['-fno-stack-protector'])
endif

if have_long_double and get_option('test-long-double')
test_c_args += ['-D_TEST_LONG_DOUBLE']
native_c_args += ['-D_TEST_LONG_DOUBLE']
Expand Down Expand Up @@ -1647,7 +1656,7 @@ if has_semihost
endif

set_variable(test_link_args_variable,
['-nostartfiles', '-T', picolibc_ld_string,
['-nostdlib', '-T', picolibc_ld_string,
lib_gcc] + additional_libs_list + specs_line)

set_variable(test_linker_files_variable, [picolibc_ld_value])
Expand Down
2 changes: 2 additions & 0 deletions newlib/libc/ctype/ctype_.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@

# define DEFAULT_CTYPE_PTR ((char *) _ctype_)

void
__set_ctype (struct __locale_t *loc, const char *charset);
1 change: 1 addition & 0 deletions newlib/libc/ctype/isascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ PORTABILITY

No supporting OS subroutines are required.
*/
#define _DEFAULT_SOURCE
#include <ctype.h>

#undef isascii
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswalnum_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswalpha_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswblank_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswcntrl_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswlower_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswprint_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswpunct_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswspace_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/iswupper_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
2 changes: 1 addition & 1 deletion newlib/libc/ctype/jp2uc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <newlib.h>
#include <picolibc.h>

#ifdef _MB_CAPABLE
/* Under Cygwin, the incoming wide character is already given in UTF due
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/toascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ POSIX-1.2008.
No supporting OS subroutines are required.
*/

#define _GNU_SOURCE
#include <_ansi.h>
#include <ctype.h>
#undef toascii
Expand Down
1 change: 1 addition & 0 deletions newlib/libc/ctype/towctrans_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Copyright (c) 2016 Corinna Vinschen <[email protected]>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <wctype.h>
#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/towlower_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <newlib.h>
#include <wctype.h>
#include "local.h"

Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/towupper.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ No supporting OS subroutines are required.
*/

#include <_ansi.h>
#include <newlib.h>
#include <string.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/iconv/ccs/ccsbi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef __CCSBI_H__
#define __CCSBI_H__

#include <newlib.h>
#include <_ansi.h>
#include "ccs.h"

Expand Down
2 changes: 0 additions & 2 deletions newlib/libc/iconv/ces/cesbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This file was automatically generated mkdeps.pl script. Don't edit.
*/

#include <_ansi.h>
#include <newlib.h>
#include "../lib/ucsconv.h"
#include "cesbi.h"

Expand Down
1 change: 0 additions & 1 deletion newlib/libc/iconv/ces/cesbi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef __CESBI_H__
#define __CESBI_H__

#include <newlib.h>
#include <_ansi.h>
#include "../lib/encnames.h"
#include "../lib/ucsconv.h"
Expand Down
4 changes: 0 additions & 4 deletions newlib/libc/iconv/ces/euc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,11 @@
#if defined (ICONV_TO_UCS_CES_EUC) \
|| defined (ICONV_FROM_UCS_CES_EUC)

#include <_ansi.h>
#include <newlib.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/types.h>
#include "../lib/local.h"
#include "../lib/ucsconv.h"
#include "../lib/encnames.h"
#include "../ccs/ccsnames.h"

#define TYPE_EUC_JP 0
Expand Down
3 changes: 0 additions & 3 deletions newlib/libc/iconv/ces/mkdeps.pl
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@ ($$)
print CESBI_H "$comment_automatic\n\n";
print CESBI_H "#ifndef __CESBI_H__\n";
print CESBI_H "#define __CESBI_H__\n\n";
print CESBI_H "#include <newlib.h>\n";
print CESBI_H "#include <_ansi.h>\n";
print CESBI_H "#include \"../lib/encnames.h\"\n";
print CESBI_H "#include \"../lib/ucsconv.h\"\n\n";
Expand Down Expand Up @@ -707,7 +706,6 @@ ($)
print CCSBI_H "$comment_automatic\n\n";
print CCSBI_H "#ifndef __CCSBI_H__\n";
print CCSBI_H "#define __CCSBI_H__\n\n";
print CCSBI_H "#include <newlib.h>\n";
print CCSBI_H "#include <_ansi.h>\n";
print CCSBI_H "#include \"ccs.h\"\n\n";
print CCSBI_H "/*\n";
Expand Down Expand Up @@ -781,7 +779,6 @@ ($)

print CESBI_C "$comment_automatic\n\n";
print CESBI_C "#include <_ansi.h>\n";
print CESBI_C "#include <newlib.h>\n";
print CESBI_C "#include \"../lib/ucsconv.h\"\n";
print CESBI_C "#include \"cesbi.h\"\n\n";
print CESBI_C "/*\n";
Expand Down
3 changes: 0 additions & 3 deletions newlib/libc/iconv/ces/table.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#if defined (ICONV_TO_UCS_CES_TABLE) \
|| defined (ICONV_FROM_UCS_CES_TABLE)

#include <_ansi.h>
#include <newlib.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
Expand All @@ -38,7 +36,6 @@
#include <sys/iconvnls.h>
#include "../lib/endian.h"
#include "../lib/local.h"
#include "../lib/ucsconv.h"
#include "../ccs/ccs.h"

/*
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/iconv/lib/aliasesi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
#define _DEFAULT_SOURCE
#include <_ansi.h>
#include <newlib.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/iconv/lib/iconvnls.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* SUCH DAMAGE.
*/
#include <_ansi.h>
#include <newlib.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion newlib/libc/iconv/lib/iconvnls.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SUCH DAMAGE.
#ifndef __ICONV_ICONVNLS_H__
#define __ICONV_ICONVNLS_H__

#include <newlib.h>
#include <stdint.h>

/*
* Include ucs-2-internal or ucs-4-internal if Newlib is configured as
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/include/_ansi.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ SUCH DAMAGE.
#ifndef _ANSIDECL_H_
#define _ANSIDECL_H_

#include <newlib.h>
#include <sys/config.h>

/* ISO C++. */
Expand Down
5 changes: 2 additions & 3 deletions newlib/libc/include/inttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#ifndef _INTTYPES_H
#define _INTTYPES_H

#include <newlib.h>
#include <sys/config.h>
#include <sys/_intsup.h>
#include "_ansi.h"
Expand All @@ -33,9 +32,9 @@
#define __PRI8FAST(x) __FAST8 __STRINGIFY(x)

/* NOTICE: scanning 8-bit types requires use of the hh specifier
* which is only supported on newlib platforms that
* which is only supported on picolibc platforms that
* are built with C99 I/O format support enabled. If the flag in
* newlib.h hasn't been set during configuration to indicate this, the 8-bit
* picolibc.h hasn't been set during configuration to indicate this, the 8-bit
* scanning format macros are disabled here as they result in undefined
* behaviour which can include memory overwrite. Overriding the flag after the
* library has been built is not recommended as it will expose the underlying
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/include/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#ifndef _LIBC_LIMITS_H_
# define _LIBC_LIMITS_H_ 1

#include <newlib.h>
#include <sys/cdefs.h>
#include <sys/syslimits.h>

Expand Down
Loading