Skip to content

Commit fbc4a08

Browse files
committed
Bump up newlib version to 2.4.0 due to feature test refactoring
1 parent 3d90769 commit fbc4a08

File tree

103 files changed

+1102
-1079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1102
-1079
lines changed

newlib/NEWS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
*** Major changes in newlib version 2.4.0:
2+
3+
- feature test macro overhaul
4+
- new string functions (e.g. timingsafe_bcmp)
5+
- new stdlib functions (e.g. arc4random)
6+
- simplified versioning macros for newlib
7+
- Changelog files deprecated
8+
19
*** Major changes in newlib version 2.3.0:
210

311
- dynamic atexit logic fixed

newlib/README

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
README for newlib-2.3.0 release
1+
README for newlib-2.4.0 release
22
(mostly cribbed from the README in the gdb-4.13 release)
33

44
This is `newlib', a simple ANSI C library, math library, and collection
@@ -17,8 +17,8 @@ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1717
Unpacking and Installation -- quick overview
1818
==========================
1919

20-
When you unpack the newlib-2.3.0.tar.gz file, you'll find a directory
21-
called `newlib-2.3.0', which contains:
20+
When you unpack the newlib-2.4.0.tar.gz file, you'll find a directory
21+
called `newlib-2.4.0', which contains:
2222

2323
COPYING config/ install-sh* mpw-configure
2424
COPYING.LIB config-ml.in libgloss/ mpw-install
@@ -94,13 +94,13 @@ directory. If the path to `configure' would be the same as the
9494
argument to `--srcdir', you can leave out the `--srcdir' option; it
9595
will be assumed.)
9696

97-
For example, with version 2.3.0, you can build NEWLIB in a separate
97+
For example, with version 2.4.0, you can build NEWLIB in a separate
9898
directory for a Sun 4 cross m68k-aout environment like this:
9999

100-
cd newlib-2.3.0
100+
cd newlib-2.4.0
101101
mkdir ../newlib-m68k-aout
102102
cd ../newlib-m68k-aout
103-
../newlib-2.3.0/configure --host=sun4 --target=m68k-aout
103+
../newlib-2.4.0/configure --host=sun4 --target=m68k-aout
104104
make
105105

106106
When `configure' builds a configuration using a remote source
@@ -116,8 +116,8 @@ called `configure' (or one of its subdirectories).
116116

117117
The `Makefile' that `configure' generates in each source directory
118118
also runs recursively. If you type `make' in a source directory such
119-
as `newlib-2.3.0' (or in a separate configured directory configured with
120-
`--srcdir=PATH/newlib-2.3.0'), you will build all the required libraries.
119+
as `newlib-2.4.0' (or in a separate configured directory configured with
120+
`--srcdir=PATH/newlib-2.4.0'), you will build all the required libraries.
121121

122122
When you have multiple hosts or targets configured in separate
123123
directories, you can run `make' on them in parallel (for example, if
@@ -589,7 +589,7 @@ Reporting Bugs
589589

590590
The correct address for reporting bugs found in NEWLIB is
591591
"[email protected]". Please email all bug reports to that
592-
address. Please include the NEWLIB version number (e.g., newlib-2.3.0),
592+
address. Please include the NEWLIB version number (e.g., newlib-2.4.0),
593593
and how you configured it (e.g., "sun4 host and m68k-aout target").
594594
Since NEWLIB supports many different configurations, it is important
595595
that you be precise about this.

newlib/acinclude.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dnl This provides configure definitions used by all the newlib
22
dnl configure.in files.
33

44
AC_DEFUN([DEF_NEWLIB_MAJOR_VERSION],m4_define([NEWLIB_MAJOR_VERSION],[2]))
5-
AC_DEFUN([DEF_NEWLIB_MINOR_VERSION],m4_define([NEWLIB_MINOR_VERSION],[3]))
5+
AC_DEFUN([DEF_NEWLIB_MINOR_VERSION],m4_define([NEWLIB_MINOR_VERSION],[4]))
66
AC_DEFUN([DEF_NEWLIB_PATCHLEVEL_VERSION],m4_define([NEWLIB_PATCHLEVEL_VERSION],[0]))
77
AC_DEFUN([DEF_NEWLIB_VERSION],m4_define([NEWLIB_VERSION],[NEWLIB_MAJOR_VERSION.NEWLIB_MINOR_VERSION.NEWLIB_PATCHLEVEL_VERSION]))
88

newlib/configure

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.68 for newlib 2.3.0.
3+
# Generated by GNU Autoconf 2.68 for newlib 2.4.0.
44
#
55
#
66
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -567,8 +567,8 @@ MAKEFLAGS=
567567
# Identity of this package.
568568
PACKAGE_NAME='newlib'
569569
PACKAGE_TARNAME='newlib'
570-
PACKAGE_VERSION='2.3.0'
571-
PACKAGE_STRING='newlib 2.3.0'
570+
PACKAGE_VERSION='2.4.0'
571+
PACKAGE_STRING='newlib 2.4.0'
572572
PACKAGE_BUGREPORT=''
573573
PACKAGE_URL=''
574574

@@ -1371,7 +1371,7 @@ if test "$ac_init_help" = "long"; then
13711371
# Omit some internal or obsolete options to make the list less imposing.
13721372
# This message is too long to be a string in the A/UX 3.1 sh.
13731373
cat <<_ACEOF
1374-
\`configure' configures newlib 2.3.0 to adapt to many kinds of systems.
1374+
\`configure' configures newlib 2.4.0 to adapt to many kinds of systems.
13751375
13761376
Usage: $0 [OPTION]... [VAR=VALUE]...
13771377
@@ -1441,7 +1441,7 @@ fi
14411441

14421442
if test -n "$ac_init_help"; then
14431443
case $ac_init_help in
1444-
short | recursive ) echo "Configuration of newlib 2.3.0:";;
1444+
short | recursive ) echo "Configuration of newlib 2.4.0:";;
14451445
esac
14461446
cat <<\_ACEOF
14471447
@@ -1572,7 +1572,7 @@ fi
15721572
test -n "$ac_init_help" && exit $ac_status
15731573
if $ac_init_version; then
15741574
cat <<\_ACEOF
1575-
newlib configure 2.3.0
1575+
newlib configure 2.4.0
15761576
generated by GNU Autoconf 2.68
15771577
15781578
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1850,7 +1850,7 @@ cat >config.log <<_ACEOF
18501850
This file contains any messages produced by compilers while
18511851
running configure, to aid debugging if configure makes a mistake.
18521852
1853-
It was created by newlib $as_me 2.3.0, which was
1853+
It was created by newlib $as_me 2.4.0, which was
18541854
generated by GNU Autoconf 2.68. Invocation command line was
18551855
18561856
$ $0 $@
@@ -3162,7 +3162,7 @@ fi
31623162

31633163
# Define the identity of the package.
31643164
PACKAGE='newlib'
3165-
VERSION='2.3.0'
3165+
VERSION='2.4.0'
31663166

31673167

31683168
# Some tools Automake needs.
@@ -7997,7 +7997,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
79977997
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
79987998
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
79997999
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8000-
10.[012]*)
8000+
10.[012][,.]*)
80018001
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
80028002
10.*)
80038003
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
@@ -9566,7 +9566,7 @@ _LT_EOF
95669566
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
95679567
&& test "$tmp_diet" = no
95689568
then
9569-
tmp_addflag=
9569+
tmp_addflag=' $pic_flag'
95709570
tmp_sharedflag='-shared'
95719571
case $cc_basename,$host_cpu in
95729572
pgcc*) # Portland Group C compiler
@@ -9748,7 +9748,7 @@ _LT_EOF
97489748
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
97499749
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
97509750
else
9751-
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9751+
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
97529752
fi
97539753
aix_use_runtimelinking=no
97549754

@@ -12323,13 +12323,13 @@ _ACEOF
1232312323
fi
1232412324

1232512325

12326-
$as_echo "#define _NEWLIB_VERSION \"2.3.0\"" >>confdefs.h
12326+
$as_echo "#define _NEWLIB_VERSION \"2.4.0\"" >>confdefs.h
1232712327

1232812328

1232912329
$as_echo "#define __NEWLIB__ 2" >>confdefs.h
1233012330

1233112331

12332-
$as_echo "#define __NEWLIB_MINOR__ 3" >>confdefs.h
12332+
$as_echo "#define __NEWLIB_MINOR__ 4" >>confdefs.h
1233312333

1233412334

1233512335
$as_echo "#define __NEWLIB_PATCHLEVEL__ 0" >>confdefs.h
@@ -13240,7 +13240,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1324013240
# report actual input values of CONFIG_FILES etc. instead of their
1324113241
# values after options handling.
1324213242
ac_log="
13243-
This file was extended by newlib $as_me 2.3.0, which was
13243+
This file was extended by newlib $as_me 2.4.0, which was
1324413244
generated by GNU Autoconf 2.68. Invocation command line was
1324513245
1324613246
CONFIG_FILES = $CONFIG_FILES
@@ -13306,7 +13306,7 @@ _ACEOF
1330613306
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1330713307
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1330813308
ac_cs_version="\\
13309-
newlib config.status 2.3.0
13309+
newlib config.status 2.4.0
1331013310
configured by $0, generated by GNU Autoconf 2.68,
1331113311
with options \\"\$ac_cs_config\\"
1331213312

newlib/doc/configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.68 for newlib 2.3.0.
3+
# Generated by GNU Autoconf 2.68 for newlib 2.4.0.
44
#
55
#
66
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -556,8 +556,8 @@ MAKEFLAGS=
556556
# Identity of this package.
557557
PACKAGE_NAME='newlib'
558558
PACKAGE_TARNAME='newlib'
559-
PACKAGE_VERSION='2.3.0'
560-
PACKAGE_STRING='newlib 2.3.0'
559+
PACKAGE_VERSION='2.4.0'
560+
PACKAGE_STRING='newlib 2.4.0'
561561
PACKAGE_BUGREPORT=''
562562
PACKAGE_URL=''
563563

@@ -1241,7 +1241,7 @@ if test "$ac_init_help" = "long"; then
12411241
# Omit some internal or obsolete options to make the list less imposing.
12421242
# This message is too long to be a string in the A/UX 3.1 sh.
12431243
cat <<_ACEOF
1244-
\`configure' configures newlib 2.3.0 to adapt to many kinds of systems.
1244+
\`configure' configures newlib 2.4.0 to adapt to many kinds of systems.
12451245
12461246
Usage: $0 [OPTION]... [VAR=VALUE]...
12471247
@@ -1311,7 +1311,7 @@ fi
13111311

13121312
if test -n "$ac_init_help"; then
13131313
case $ac_init_help in
1314-
short | recursive ) echo "Configuration of newlib 2.3.0:";;
1314+
short | recursive ) echo "Configuration of newlib 2.4.0:";;
13151315
esac
13161316
cat <<\_ACEOF
13171317
@@ -1402,7 +1402,7 @@ fi
14021402
test -n "$ac_init_help" && exit $ac_status
14031403
if $ac_init_version; then
14041404
cat <<\_ACEOF
1405-
newlib configure 2.3.0
1405+
newlib configure 2.4.0
14061406
generated by GNU Autoconf 2.68
14071407
14081408
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1457,7 +1457,7 @@ cat >config.log <<_ACEOF
14571457
This file contains any messages produced by compilers while
14581458
running configure, to aid debugging if configure makes a mistake.
14591459
1460-
It was created by newlib $as_me 2.3.0, which was
1460+
It was created by newlib $as_me 2.4.0, which was
14611461
generated by GNU Autoconf 2.68. Invocation command line was
14621462
14631463
$ $0 $@
@@ -2529,7 +2529,7 @@ fi
25292529
25302530
# Define the identity of the package.
25312531
PACKAGE='newlib'
2532-
VERSION='2.3.0'
2532+
VERSION='2.4.0'
25332533
25342534
25352535
# Some tools Automake needs.
@@ -4045,7 +4045,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40454045
# report actual input values of CONFIG_FILES etc. instead of their
40464046
# values after options handling.
40474047
ac_log="
4048-
This file was extended by newlib $as_me 2.3.0, which was
4048+
This file was extended by newlib $as_me 2.4.0, which was
40494049
generated by GNU Autoconf 2.68. Invocation command line was
40504050
40514051
CONFIG_FILES = $CONFIG_FILES
@@ -4102,7 +4102,7 @@ _ACEOF
41024102
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41034103
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41044104
ac_cs_version="\\
4105-
newlib config.status 2.3.0
4105+
newlib config.status 2.4.0
41064106
configured by $0, generated by GNU Autoconf 2.68,
41074107
with options \\"\$ac_cs_config\\"
41084108

newlib/iconvdata/configure

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.68 for newlib 2.3.0.
3+
# Generated by GNU Autoconf 2.68 for newlib 2.4.0.
44
#
55
#
66
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -567,8 +567,8 @@ MAKEFLAGS=
567567
# Identity of this package.
568568
PACKAGE_NAME='newlib'
569569
PACKAGE_TARNAME='newlib'
570-
PACKAGE_VERSION='2.3.0'
571-
PACKAGE_STRING='newlib 2.3.0'
570+
PACKAGE_VERSION='2.4.0'
571+
PACKAGE_STRING='newlib 2.4.0'
572572
PACKAGE_BUGREPORT=''
573573
PACKAGE_URL=''
574574

@@ -1322,7 +1322,7 @@ if test "$ac_init_help" = "long"; then
13221322
# Omit some internal or obsolete options to make the list less imposing.
13231323
# This message is too long to be a string in the A/UX 3.1 sh.
13241324
cat <<_ACEOF
1325-
\`configure' configures newlib 2.3.0 to adapt to many kinds of systems.
1325+
\`configure' configures newlib 2.4.0 to adapt to many kinds of systems.
13261326
13271327
Usage: $0 [OPTION]... [VAR=VALUE]...
13281328
@@ -1392,7 +1392,7 @@ fi
13921392

13931393
if test -n "$ac_init_help"; then
13941394
case $ac_init_help in
1395-
short | recursive ) echo "Configuration of newlib 2.3.0:";;
1395+
short | recursive ) echo "Configuration of newlib 2.4.0:";;
13961396
esac
13971397
cat <<\_ACEOF
13981398
@@ -1503,7 +1503,7 @@ fi
15031503
test -n "$ac_init_help" && exit $ac_status
15041504
if $ac_init_version; then
15051505
cat <<\_ACEOF
1506-
newlib configure 2.3.0
1506+
newlib configure 2.4.0
15071507
generated by GNU Autoconf 2.68
15081508
15091509
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1781,7 +1781,7 @@ cat >config.log <<_ACEOF
17811781
This file contains any messages produced by compilers while
17821782
running configure, to aid debugging if configure makes a mistake.
17831783
1784-
It was created by newlib $as_me 2.3.0, which was
1784+
It was created by newlib $as_me 2.4.0, which was
17851785
generated by GNU Autoconf 2.68. Invocation command line was
17861786
17871787
$ $0 $@
@@ -2853,7 +2853,7 @@ fi
28532853

28542854
# Define the identity of the package.
28552855
PACKAGE='newlib'
2856-
VERSION='2.3.0'
2856+
VERSION='2.4.0'
28572857

28582858

28592859
# Some tools Automake needs.
@@ -7646,7 +7646,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
76467646
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
76477647
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
76487648
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7649-
10.[012]*)
7649+
10.[012][,.]*)
76507650
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
76517651
10.*)
76527652
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
@@ -9215,7 +9215,7 @@ _LT_EOF
92159215
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
92169216
&& test "$tmp_diet" = no
92179217
then
9218-
tmp_addflag=
9218+
tmp_addflag=' $pic_flag'
92199219
tmp_sharedflag='-shared'
92209220
case $cc_basename,$host_cpu in
92219221
pgcc*) # Portland Group C compiler
@@ -9397,7 +9397,7 @@ _LT_EOF
93979397
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
93989398
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
93999399
else
9400-
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9400+
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
94019401
fi
94029402
aix_use_runtimelinking=no
94039403

@@ -12378,7 +12378,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1237812378
# report actual input values of CONFIG_FILES etc. instead of their
1237912379
# values after options handling.
1238012380
ac_log="
12381-
This file was extended by newlib $as_me 2.3.0, which was
12381+
This file was extended by newlib $as_me 2.4.0, which was
1238212382
generated by GNU Autoconf 2.68. Invocation command line was
1238312383
1238412384
CONFIG_FILES = $CONFIG_FILES
@@ -12435,7 +12435,7 @@ _ACEOF
1243512435
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1243612436
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1243712437
ac_cs_version="\\
12438-
newlib config.status 2.3.0
12438+
newlib config.status 2.4.0
1243912439
configured by $0, generated by GNU Autoconf 2.68,
1244012440
with options \\"\$ac_cs_config\\"
1244112441

0 commit comments

Comments
 (0)