Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/configure.host10
-rw-r--r--newlib/libc/include/machine/ieeefp.h1
-rw-r--r--newlib/libc/include/machine/setjmp.h1
-rw-r--r--newlib/libc/stdio/fread.c28
-rw-r--r--newlib/libc/stdio/fvwrite.c22
-rw-r--r--newlib/libc/stdio/mktemp.c2
-rw-r--r--newlib/libc/stdlib/getenv_r.c2
-rw-r--r--newlib/libc/stdlib/putenv_r.c2
-rw-r--r--newlib/libc/stdlib/stdlib.tex2
-rw-r--r--newlib/libc/stdlib/strtoll.c8
-rw-r--r--newlib/libc/sys/arm/crt0.S2
-rw-r--r--newlib/libc/sys/linux/io.c1
-rw-r--r--newlib/libm/common/fdlibm.h4
-rw-r--r--newlib/libm/machine/Makefile.am2
-rw-r--r--newlib/libm/machine/Makefile.in2
-rw-r--r--newlib/libm/math/e_pow.c2
16 files changed, 44 insertions, 47 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index 8d2711c6b..5ff924047 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -27,7 +27,7 @@
# newlib_cflags Special CFLAGS to use when building
# machine_dir Subdirectory of libc/machine to configure
# sys_dir Subdirectory of libc/sys to configure
-# have_sys_mach_dir Is there a machine subdirectory in sys subdirectory
+# have_sys_mach_dir Is there a machine subdirectory in sys subdirectory
# posix_dir "posix" to build libc/posix, "" otherwise
# signal_dir "signal" to build libc/signal, "" otherwise
# syscall_dir "syscalls" to build libc/syscalls, "" otherwise
@@ -486,7 +486,7 @@ case "${host}" in
powerpc*-*-rtem* | \
powerpc*-*-sysv* | \
powerpc*-*-solaris*)
- newlib_cflags="${newlib_cflags} -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES"
+ newlib_cflags="${newlib_cflags} -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES -DWANT_PRINTF_LONG_LONG"
;;
powerpcle-*-pe)
newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL"
@@ -555,9 +555,9 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
;;
xstormy16-*-*)
- newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
- syscall_dir=syscalls
- ;;
+ newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
+ syscall_dir=syscalls
+ ;;
z8k-*-*)
syscall_dir=syscalls
;;
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h
index 7502d3aed..3ada44bfd 100644
--- a/newlib/libc/include/machine/ieeefp.h
+++ b/newlib/libc/include/machine/ieeefp.h
@@ -193,7 +193,6 @@
#define __SMALL_BITFIELDS
#endif
-
#ifndef __IEEE_BIG_ENDIAN
#ifndef __IEEE_LITTLE_ENDIAN
#error Endianess not declared!!
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h
index e4c788b2f..6d3ebe7e6 100644
--- a/newlib/libc/include/machine/setjmp.h
+++ b/newlib/libc/include/machine/setjmp.h
@@ -145,7 +145,6 @@ typedef int jmp_buf[_JBLEN];
#define _JBTYPE double
#endif
-
#ifdef __fr30__
#define _JBLEN 10
#endif
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
index c4c66b4d6..38f791b6d 100644
--- a/newlib/libc/stdio/fread.c
+++ b/newlib/libc/stdio/fread.c
@@ -62,10 +62,10 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef __SCLE
static size_t
_DEFUN (crlf, (fp, buf, count, eof),
- FILE * fp _AND
- char * buf _AND
- size_t count _AND
- int eof)
+ FILE * fp _AND
+ char * buf _AND
+ size_t count _AND
+ int eof)
{
int newcount = 0, r;
char *s, *d, *e;
@@ -77,19 +77,19 @@ _DEFUN (crlf, (fp, buf, count, eof),
for (s=d=buf; s<e-1; s++)
{
if (*s == '\r' && s[1] == '\n')
- s++;
+ s++;
*d++ = *s;
}
if (s < e)
{
if (*s == '\r')
- {
- int c = __sgetc_raw(fp);
- if (c == '\n')
- *s = '\n';
- else
- ungetc(c, fp);
- }
+ {
+ int c = __sgetc_raw(fp);
+ if (c == '\n')
+ *s = '\n';
+ else
+ ungetc(c, fp);
+ }
*d++ = *s++;
}
@@ -98,7 +98,7 @@ _DEFUN (crlf, (fp, buf, count, eof),
{
r = getc(fp);
if (r == EOF)
- return count - (e-d);
+ return count - (e-d);
*d++ = r;
}
@@ -138,7 +138,7 @@ _DEFUN (fread, (buf, size, count, fp),
{
/* no more input: return partial result */
#ifdef __SCLE
- if (fp->_flags & __SCLE)
+ if (fp->_flags & __SCLE)
return crlf(fp, buf, total-resid, 1) / size;
#endif
return (total - resid) / size;
diff --git a/newlib/libc/stdio/fvwrite.c b/newlib/libc/stdio/fvwrite.c
index 8e7d316fb..62d0ba072 100644
--- a/newlib/libc/stdio/fvwrite.c
+++ b/newlib/libc/stdio/fvwrite.c
@@ -67,17 +67,17 @@ __sfvwrite (fp, uio)
if (fp->_flags & __SCLE) /* text mode */
{
do
- {
- GETIOV (;);
- while (len > 0)
- {
- if (putc(*p, fp) == EOF)
- return EOF;
- p++;
- len--;
- uio->uio_resid--;
- }
- }
+ {
+ GETIOV (;);
+ while (len > 0)
+ {
+ if (putc(*p, fp) == EOF)
+ return EOF;
+ p++;
+ len--;
+ uio->uio_resid--;
+ }
+ }
while (uio->uio_resid > 0);
return 0;
}
diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c
index 86159089b..f3eaa09ce 100644
--- a/newlib/libc/stdio/mktemp.c
+++ b/newlib/libc/stdio/mktemp.c
@@ -1,6 +1,6 @@
/* This is file MKTEMP.C */
/* This file may have been modified by DJ Delorie (Jan 1991). If so,
-** these modifications are Copyright (C) 1991 DJ Delorie
+** these modifications are Copyright (C) 1991 DJ Delorie.
*/
/*
diff --git a/newlib/libc/stdlib/getenv_r.c b/newlib/libc/stdlib/getenv_r.c
index 2cc48cfd7..85d250b79 100644
--- a/newlib/libc/stdlib/getenv_r.c
+++ b/newlib/libc/stdlib/getenv_r.c
@@ -35,7 +35,7 @@ variables vary from one system to another.
*/
/* This file may have been modified by DJ Delorie (Jan 1991). If so,
-** these modifications are Copyright (C) 1991 DJ Delorie
+** these modifications are Copyright (C) 1991 DJ Delorie.
*/
/*
diff --git a/newlib/libc/stdlib/putenv_r.c b/newlib/libc/stdlib/putenv_r.c
index 7c2686f92..a03f3b007 100644
--- a/newlib/libc/stdlib/putenv_r.c
+++ b/newlib/libc/stdlib/putenv_r.c
@@ -1,5 +1,5 @@
/* This file may have been modified by DJ Delorie (Jan 1991). If so,
-** these modifications are Copyright (C) 1991 DJ Delorie
+** these modifications are Copyright (C) 1991 DJ Delorie.
*/
/*-
diff --git a/newlib/libc/stdlib/stdlib.tex b/newlib/libc/stdlib/stdlib.tex
index fc1643603..7baddc330 100644
--- a/newlib/libc/stdlib/stdlib.tex
+++ b/newlib/libc/stdlib/stdlib.tex
@@ -30,7 +30,7 @@ The corresponding declarations are in the header file @file{stdlib.h}.
* mbtowc:: Minimal multibyte to wide character converter
* qsort:: Sort an array
* rand:: Pseudo-random numbers
-* rand48:: Uniformaly distributed pseudo-random numbers
+* rand48:: Uniformly distributed pseudo-random numbers
* strtod:: String to double or float
* strtol:: String to long
* strtoul:: String to unsigned long
diff --git a/newlib/libc/stdlib/strtoll.c b/newlib/libc/stdlib/strtoll.c
index fdba09f24..3ee9e7592 100644
--- a/newlib/libc/stdlib/strtoll.c
+++ b/newlib/libc/stdlib/strtoll.c
@@ -16,14 +16,14 @@ ANSI_SYNOPSIS
TRAD_SYNOPSIS
#include <stdlib.h>
- long strtoll (<[s]>, <[ptr]>, <[base]>)
- char *<[s]>;
+ long long strtoll (<[s]>, <[ptr]>, <[base]>)
+ const char *<[s]>;
char **<[ptr]>;
int <[base]>;
- long _strtoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>)
+ long long _strtoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>)
char *<[reent]>;
- char *<[s]>;
+ const char *<[s]>;
char **<[ptr]>;
int <[base]>;
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
index 9d1de2ec6..067fa890e 100644
--- a/newlib/libc/sys/arm/crt0.S
+++ b/newlib/libc/sys/arm/crt0.S
@@ -55,6 +55,7 @@ _mainCRTStartup:
sub sl, sp, #64 << 10 /* Still assumes 256bytes below sl */
#endif
#endif
+ /* Zero the memory in the .bss section. */
mov a2, #0 /* Second arg: fill value */
mov fp, a2 /* Null frame pointer */
mov r7, a2 /* Null frame pointer for Thumb */
@@ -259,4 +260,3 @@ CommandLine: .space 256,0 /* Maximum length of 255 chars handled. */
.section .idata$3
.long 0,0,0,0,0,0,0,0
#endif
-
diff --git a/newlib/libc/sys/linux/io.c b/newlib/libc/sys/linux/io.c
index 31b9da7cc..11622a861 100644
--- a/newlib/libc/sys/linux/io.c
+++ b/newlib/libc/sys/linux/io.c
@@ -58,4 +58,3 @@ int mkfifo(const char *path, mode_t mode)
dev_t dev = 0;
return __mknod(path, mode | S_IFIFO, &dev);
}
-
diff --git a/newlib/libm/common/fdlibm.h b/newlib/libm/common/fdlibm.h
index 5ca1a917b..cb18bd99b 100644
--- a/newlib/libm/common/fdlibm.h
+++ b/newlib/libm/common/fdlibm.h
@@ -11,11 +11,11 @@
* ====================================================
*/
-/* CYGNUS LOCAL: Include files. */
+/* REDHAT LOCAL: Include files. */
#include <math.h>
#include <machine/ieeefp.h>
-/* CYGNUS LOCAL: Default to XOPEN_MODE. */
+/* REDHAT LOCAL: Default to XOPEN_MODE. */
#define _XOPEN_MODE
/* Most routines need to check whether a float is finite, infinite, or not a
diff --git a/newlib/libm/machine/Makefile.am b/newlib/libm/machine/Makefile.am
index 4b972f7eb..ef8b143dd 100644
--- a/newlib/libm/machine/Makefile.am
+++ b/newlib/libm/machine/Makefile.am
@@ -20,7 +20,7 @@ endif # USE_LIBTOOL
$(libm_machine_dir)/lib.a:
-doc:
+doc:
ACLOCAL_AMFLAGS = -I ../..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
diff --git a/newlib/libm/machine/Makefile.in b/newlib/libm/machine/Makefile.in
index 95be23b6d..8efbb941b 100644
--- a/newlib/libm/machine/Makefile.in
+++ b/newlib/libm/machine/Makefile.in
@@ -430,7 +430,7 @@ maintainer-clean
$(libm_machine_dir)/lib.a:
-doc:
+doc:
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/newlib/libm/math/e_pow.c b/newlib/libm/math/e_pow.c
index 9312085d4..240a18613 100644
--- a/newlib/libm/math/e_pow.c
+++ b/newlib/libm/math/e_pow.c
@@ -179,7 +179,7 @@ ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/
}
/* (x<0)**(non-int) is NaN */
- /* CYGNUS LOCAL: This used to be
+ /* REDHAT LOCAL: This used to be
if((((hx>>31)+1)|yisint)==0) return (x-x)/(x-x);
but ANSI C says a right shift of a signed negative quantity is
implementation defined. */