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

Add Support for Annex K functions according to C11 #13

Merged
merged 42 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1098984
semihosting: reduce code duplication for calls with indirect arguments
arichardson Jul 30, 2024
e71c602
strcmp optimization for riscv
M-Moawad Jul 23, 2024
61560a1
Enable zbb extension in CI configuration
M-Moawad Jul 28, 2024
5252f4d
picocrt: Add an option to enable MMU (and caches)
arichardson May 30, 2024
b2d921a
arm: Initialize all of the shadow SPs for non-M targets
keith-packard Jul 30, 2024
2740e4f
scripts: Split out non-'A' V7 arm targets in run-arm
keith-packard Jul 30, 2024
06abb65
arm: Use aeabi_memcpy-armv7a.S on aligned targets, memcpy-armv7a on u…
keith-packard Aug 1, 2024
64d0ff4
picocrt: Set correct reason value in non-M arm exception handlers
keith-packard Aug 1, 2024
dd71126
picocrt: Call thumb-1 stack setting function from non-naked function
keith-packard Aug 1, 2024
e67e8b8
scripts: Use arm926 for v5T targets too
keith-packard Aug 1, 2024
5a41939
scripts: Add clang arm v7a thumb v5 sample scripts
keith-packard Aug 1, 2024
8a9d58a
.github: Disable testing on aarch64 targets for now
keith-packard Aug 1, 2024
c8a2a97
.github: Test clang on arm v7a and arm 5 in thumb mode
keith-packard Aug 1, 2024
2ef817b
math/aarch64: Fix lrint/lround in ilp32 mode
keith-packard Aug 2, 2024
8686449
aarch64: Fix up strcmp for ilp32
keith-packard Aug 3, 2024
343aead
picocrt/aarch64: Enable MMU
keith-packard Aug 2, 2024
594d11d
picocrt/aarch64: Add sample interrupt vector
keith-packard Aug 2, 2024
a662ca1
picocrt/aarch64: Trap exceptions in semihost mode
keith-packard Aug 2, 2024
b7bdbb8
test: Add invalid instruction for aarch64 to test-except
keith-packard Aug 2, 2024
2dc7540
scripts: Add aarch64-zephyr configuration script
keith-packard Aug 2, 2024
6b39d34
.github: Re-enable aarch64 testing with linux toolchain
keith-packard Aug 2, 2024
ee52287
.github: Test aarch64 using zephyr toolchain
keith-packard Aug 2, 2024
eadb39b
tinystdio: handling `"nan(n-sequence char)"` by `scanf()` family & `s…
Abdallahs70 Jul 28, 2024
e434fa1
tinystdio: Reformat conv_flt change
keith-packard Aug 7, 2024
bf0b693
test: Place libc in link_args consistently
keith-packard Aug 8, 2024
a88bcb7
Don't use specs files when building tests
keith-packard Aug 8, 2024
766eae1
posix: Disable analyzer bounds checks for computematchjumps
keith-packard Aug 8, 2024
c4b55b0
tinystdio: Remove public header includes from stdio.h
keith-packard Aug 7, 2024
37f520a
signal: Remove sys/signal.h, clean up signal.h
keith-packard Aug 7, 2024
4759097
string: Remove sys/features from string.h
keith-packard Aug 7, 2024
2f56cbd
include: Clean up errno.h (and sys/errno.h)
keith-packard Aug 7, 2024
e9aeef5
include: Clean up complex.h
keith-packard Aug 7, 2024
3eac897
include: Remove unnecessary sys/config.h includes
keith-packard Aug 7, 2024
ea86a27
Remove internal source references to sys/cdefs.h
keith-packard Aug 7, 2024
a785772
posix: Remove the entirely unused LC_COLLATE file support
keith-packard Aug 7, 2024
025c2cf
test: semihost test needs POSIX limits for PATH_MAX
keith-packard Aug 8, 2024
2f5f843
include: _POSIX_2_RE_DUP_MAX -> unistd.h. Mask POSIX limits.
keith-packard Aug 7, 2024
38b527a
Move sys/fenv.h to machine/fenv.h
keith-packard Aug 7, 2024
e2d144a
sys/time.h: remove time_t declaration
keith-packard Aug 7, 2024
5a04e1c
include/math.h: Define FP_FMA*
keith-packard Aug 7, 2024
29f1da4
regex: Use RE_DUP_MAX instead of _POSIX2_RE_DUP_MAX
keith-packard Aug 8, 2024
1e23bb1
Add Support for Annex K functions according to C11
mostafa-salmaan Aug 4, 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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .github/do-linux
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
set -e
HERE=`dirname "$0"`
"$HERE"/do-test arm "$@"
"$HERE"/do-test clang-thumbv7-a "$@"
"$HERE"/do-test clang-thumb "$@"
"$HERE"/do-test cortex-a9 "$@"
"$HERE"/do-test clang-thumbv7e+fp "$@"
"$HERE"/do-test clang-thumbv7e+dp "$@"
Expand Down
1 change: 1 addition & 0 deletions .github/do-zephyr
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
set -e
HERE=`dirname "$0"`
"$HERE"/do-zephyr-test aarch64-zephyr "$@"
"$HERE"/do-zephyr-test arc "$@"
"$HERE"/do-zephyr-test arc64 "$@"
"$HERE"/do-zephyr-build microblazeel "$@"
Expand Down
31 changes: 16 additions & 15 deletions .github/zephyr-files.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_arc-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_arc64-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_microblazeel-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_mips-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_nios2-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_sparc-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_x86_64-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_xtensa-espressif_esp32s2_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_xtensa-espressif_esp32_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_xtensa-intel_ace15_mtpm_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_xtensa-intel_tgl_adsp_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_xtensa-nxp_imx8m_adsp_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_xtensa-nxp_imx_adsp_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/toolchain_linux-x86_64_xtensa-sample_controller_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/hosttools_linux-x86_64.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_aarch64-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_arc-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_arc64-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_microblazeel-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_mips-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_nios2-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_sparc-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_x86_64-zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_xtensa-espressif_esp32s2_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_xtensa-espressif_esp32_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_xtensa-intel_ace15_mtpm_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_xtensa-intel_tgl_adsp_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_xtensa-nxp_imx8m_adsp_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_xtensa-nxp_imx_adsp_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/toolchain_linux-x86_64_xtensa-sample_controller_zephyr-elf.tar.xz
https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/hosttools_linux-x86_64.tar.xz
https://maps.altusmetrum.org/qemu-nios2-2.tar.xz
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ set(_HAVE_INITFINI_ARRAY 1)
# Support _init() and _fini() functions
set(_HAVE_INIT_FINI 1)

# Enable MMU in pico crt startup
set(_PICOCRT_ENABLE_MMU 1)

# Compiler has long double type
picolibc_flag(_HAVE_LONG_DOUBLE)

Expand Down
2 changes: 1 addition & 1 deletion COPYING.picolibc
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ Files: .clang-format
scripts/cross-riscv64-unknown-elf.txt
scripts/cross-riscv64-zephyr-elf.txt
scripts/cross-rv32imac.txt
scripts/cross-rv32imac_zicsr.txt
scripts/cross-rv32imac_zicsr_zbb.txt
scripts/cross-sh-unknown-elf.txt
scripts/cross-sparc-zephyr-elf.txt
scripts/cross-sparc64-linux-gnu.txt
Expand Down
1 change: 0 additions & 1 deletion dummyhost/iob.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*/

#include <stdio.h>
#include <sys/cdefs.h>

/*
* Dummy stdio hooks. This allows programs to link without requiring
Expand Down
38 changes: 8 additions & 30 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1631,30 +1631,6 @@ endif
test_env = environment({'PICOLIBC_TEST' : '1'})
test_env.prepend('PATH', meson.current_source_dir() / 'scripts')

# CompCert needs the '-WUl,' prefix to correctly pass the --spec parameters to the linker
specs_prefix = ''
if cc.get_id() == 'ccomp'
specs_prefix = '-WUl,'
endif

if has_semihost
specs = picolibc_specs
specs_name = picolibc_specs_name
else
specs = configure_file(input: 'test.specs.in',
output: '@BASENAME@',
configuration: specs_data,
install: false)
specs_name = 'test.specs'
endif

# Clang does not support spec files
specs_line = []
if cc.get_id() != 'clang'
specs_line += [specs_prefix + '--specs', specs_prefix + meson.current_build_dir() / specs_name]
endif
test_c_args += specs_line

if has_semihost
foreach target : ['default-target'] + targets
if target == 'default-target'
Expand All @@ -1676,23 +1652,25 @@ if has_semihost
endif

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

set_variable(test_linker_files_variable, [picolibc_ld_value])

# Make sure all of the tests get re-linked if the linker scripts change.
set_variable(test_link_depends_variable, [picolibc_ld_value, specs])
set_variable(test_link_depends_variable, [picolibc_ld_value])
endforeach
else
test_link_args = specs_line
test_linker_files = [specs]
test_link_depends = [specs]
test_link_args = ['-Wl,--gc-sections']
test_link_depends = []
endif

# make sure to include semihost BEFORE picocrt!
if enable_picocrt
subdir('picocrt')
picocrt_enable_mmu = get_option('picocrt-enable-mmu')
conf_data.set('_PICOCRT_ENABLE_MMU', picocrt_enable_mmu,
description: 'Turn on mmu in picocrt startup code')
endif
subdir('newlib')

Expand Down
3 changes: 3 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ option('picolib', type: 'boolean', value: true,
option('picocrt', type: 'boolean', value: true,
description: 'Include pico crt bits')

option('picocrt-enable-mmu', type: 'boolean', value: true,
description: 'Enable memory management unit in picocrt startup')

option('picocrt-lib', type: 'boolean', value: true,
description: 'Include pico crt bits in lib form')

Expand Down
1 change: 0 additions & 1 deletion newlib/libc/argz/argz_count.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* is freely granted, provided that this notice is preserved.
*/

#include <sys/cdefs.h>
#include <argz.h>
#include <stddef.h>
#include <sys/types.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/argz/argz_stringify.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* is freely granted, provided that this notice is preserved.
*/

#include <sys/cdefs.h>
#include <argz.h>
#include <stddef.h>
#include <sys/types.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/isdigit_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <ctype.h>

#undef isdigit_l
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/islower_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <ctype.h>

#undef islower_l
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswalnum_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswalpha_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswblank_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswcntrl_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswctype_l.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de> */
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <wctype.h>
#include "local.h"

Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswdigit.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ PORTABILITY

No supporting OS subroutines are required.
*/
#include <sys/cdefs.h>
#include <wctype.h>

int
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswdigit_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <wctype.h>

int
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswlower_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswprint_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswpunct_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswspace_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswupper_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswxdigit.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ PORTABILITY

No supporting OS subroutines are required.
*/
#include <sys/cdefs.h>
#include <wctype.h>

int
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/iswxdigit_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <wctype.h>

int
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/jp2uc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
/* Under Cygwin, the incoming wide character is already given in UTF due
to the requirements of the underlying OS. */

#include <sys/cdefs.h>
#include <string.h>
#include <wctype.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/toascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ No supporting OS subroutines are required.
*/

#define _GNU_SOURCE
#include <sys/cdefs.h>
#include <ctype.h>
#undef toascii

Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/toascii_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <ctype.h>

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

#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <wctype.h>
//#include <errno.h>
#include "local.h"
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/towctrans_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <wctype.h>
#include <stdint.h>
//#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/towlower.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ PORTABILITY
No supporting OS subroutines are required.
*/

#include <sys/cdefs.h>
#include <ctype.h>
#include <wctype.h>
#include "local.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 @@ -4,7 +4,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 <sys/cdefs.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 @@ -65,7 +65,6 @@ PORTABILITY
No supporting OS subroutines are required.
*/

#include <sys/cdefs.h>
#include <string.h>
#include <ctype.h>
#include <wctype.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/towupper_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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 <sys/cdefs.h>
#include <wctype.h>
#include "local.h"

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

#include <sys/cdefs.h>
#include <string.h>
#include <wctype.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/wctrans_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <wctype.h>

wctrans_t
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/ctype/wctype_l.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
*/
#define _DEFAULT_SOURCE
#include <sys/cdefs.h>
#include <wctype.h>

wctype_t
Expand Down
1 change: 0 additions & 1 deletion newlib/libc/iconv/ccs/big5.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#if defined (ICONV_TO_UCS_CCS_BIG5) \
|| defined (ICONV_FROM_UCS_CCS_BIG5)

#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include "ccs.h"
Expand Down
Loading