[PATCH] change _COMPILING_NEWLIB to _LIBC

Corinna Vinschen vinschen@redhat.com
Thu Nov 11 10:37:28 GMT 2021


On Nov  8 22:24, Mike Frysinger wrote:
> Use the same name as glibc & gnulib to indicate "newlib itself is
> being compiled".  This also harmonizes the codebase a bit in that
> _LIBC was already used in places instead of _COMPILING_NEWLIB.
> 
> Building for bfin-elf, mips-elf, and x86_64-pc-cygwin produces
> the same object code.
> ---
>  newlib/configure.host                    |  2 +-
>  newlib/libc/include/ctype.h              |  4 ++--
>  newlib/libc/include/dirent.h             |  2 +-
>  newlib/libc/include/locale.h             |  2 +-
>  newlib/libc/include/reent.h              |  2 +-
>  newlib/libc/include/stdio.h              | 12 ++++++------
>  newlib/libc/include/sys/_default_fcntl.h |  2 +-
>  newlib/libc/include/sys/features.h       |  2 +-
>  newlib/libc/include/sys/signal.h         |  4 ++--
>  newlib/libc/include/sys/stat.h           |  4 ++--
>  newlib/libc/include/sys/time.h           |  2 +-
>  newlib/libc/include/sys/times.h          |  2 +-
>  newlib/libc/include/sys/unistd.h         |  2 +-
>  newlib/libc/include/sys/wait.h           |  2 +-
>  newlib/libc/machine/cris/sys/fcntl.h     |  2 +-
>  newlib/libc/machine/mips/memcpy.S        |  2 +-
>  newlib/libc/machine/mips/memset.S        |  2 +-
>  newlib/libc/machine/mips/strcmp.S        |  2 +-
>  winsup/cygwin/dir.cc                     |  2 +-
>  winsup/cygwin/fhandler_cygdrive.cc       |  2 +-
>  winsup/cygwin/fhandler_dev.cc            |  2 +-
>  winsup/cygwin/fhandler_disk_file.cc      |  2 +-
>  winsup/cygwin/fhandler_proc.cc           |  2 +-
>  winsup/cygwin/fhandler_process.cc        |  2 +-
>  winsup/cygwin/fhandler_procsysvipc.cc    |  2 +-
>  winsup/cygwin/fhandler_registry.cc       |  2 +-
>  winsup/cygwin/include/cygwin/config.h    |  6 +++---
>  winsup/cygwin/include/cygwin/stat.h      |  2 +-
>  winsup/cygwin/include/cygwin/stdlib.h    |  2 +-
>  winsup/cygwin/include/getopt.h           |  2 +-
>  winsup/cygwin/include/machine/_types.h   |  2 +-
>  winsup/cygwin/include/sys/dirent.h       |  2 +-
>  winsup/cygwin/include/sys/syslimits.h    |  2 +-
>  winsup/cygwin/include/sys/wait.h         |  2 +-
>  winsup/cygwin/math/complex_internal.h    |  2 +-
>  35 files changed, 45 insertions(+), 45 deletions(-)

Can you please rebase your patch to the latest master?  It doesn't
apply for testing.


Thanks,
Corinna



More information about the Newlib mailing list