]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
6 years agocygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandler
Ken Brown [Sun, 17 Sep 2017 02:04:15 +0000 (22:04 -0400)]
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandler

Fix all callers.

6 years agocygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_request
Ken Brown [Sun, 17 Sep 2017 02:04:14 +0000 (22:04 -0400)]
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_request

Fix all callers.

6 years agocygwin: Remove comparison of 'this' to 'NULL' in _pinfo::cmdline
Ken Brown [Sun, 17 Sep 2017 02:04:13 +0000 (22:04 -0400)]
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::cmdline

Fix all callers.

6 years agocygwin: Remove comparison of 'this' to 'NULL' in _pinfo::cwd
Ken Brown [Sun, 17 Sep 2017 02:04:12 +0000 (22:04 -0400)]
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::cwd

Fix all callers.

6 years agocygwin: Remove comparison of 'this' to 'NULL' in _pinfo::root
Ken Brown [Sun, 17 Sep 2017 02:04:11 +0000 (22:04 -0400)]
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::root

Fix all callers.

6 years agocygwin: Remove comparison of 'this' to 'NULL' in _pinfo::fds
Ken Brown [Sun, 17 Sep 2017 02:04:10 +0000 (22:04 -0400)]
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::fds

Fix all callers.

6 years agocygwin: Remove comparisons of 'this' to 'NULL' in fhandler_dsp.cc
Ken Brown [Sun, 17 Sep 2017 02:04:09 +0000 (22:04 -0400)]
cygwin: Remove comparisons of 'this' to 'NULL' in fhandler_dsp.cc

Fix all callers.

6 years agoRTEMS: Make pthread_mutex_t self-contained
Sebastian Huber [Wed, 27 Sep 2017 12:20:14 +0000 (14:20 +0200)]
RTEMS: Make pthread_mutex_t self-contained

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agoRTEMS: Make pthread_cond_t self-contained
Sebastian Huber [Tue, 26 Sep 2017 05:36:25 +0000 (07:36 +0200)]
RTEMS: Make pthread_cond_t self-contained

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agoRTEMS: Make pthread_rwlock_t self-contained
Sebastian Huber [Thu, 21 Sep 2017 13:41:30 +0000 (15:41 +0200)]
RTEMS: Make pthread_rwlock_t self-contained

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agoRTEMS: Make pthread_barrier_t self-contained
Sebastian Huber [Thu, 21 Sep 2017 13:21:13 +0000 (15:21 +0200)]
RTEMS: Make pthread_barrier_t self-contained

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agoRTEMS: Make sem_t self-contained
Sebastian Huber [Wed, 13 Sep 2017 11:07:31 +0000 (13:07 +0200)]
RTEMS: Make sem_t self-contained

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agoRTEMS: Optimize pthread_once_t
Sebastian Huber [Tue, 19 Sep 2017 13:08:35 +0000 (15:08 +0200)]
RTEMS: Optimize pthread_once_t

Reduce size of pthread_once_t and make it zero-initialized.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agonewlib/libm/complex/cargl.c change imag() real() to cimagl() creall() newlib-snapshot-20170922
Brian Inglis [Wed, 13 Sep 2017 06:26:48 +0000 (00:26 -0600)]
newlib/libm/complex/cargl.c change imag() real() to cimagl() creall()

6 years agoFix warnings and documentation in strnstr.c
Sebastian Huber [Wed, 13 Sep 2017 12:31:01 +0000 (14:31 +0200)]
Fix warnings and documentation in strnstr.c

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agocygwin: workaround GCC 6 changes
Yaakov Selkowitz [Tue, 12 Sep 2017 19:30:34 +0000 (14:30 -0500)]
cygwin: workaround GCC 6 changes

GCC 6 includes a number of new warnings which cause Cygwin to either not
compile, or not work properly even if said warnings are ignored:

https://cygwin.com/ml/cygwin-developers/2017-09/msg00000.html
https://gcc.gnu.org/gcc-6/porting_to.html

For now, we use the flags necessary to revert to GCC 5 behaviour until we
can fix the code properly.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
6 years agoRevert "cygwin: only expose /dev/con{in,out,sole} when started from a Windows console"
Yaakov Selkowitz [Mon, 11 Sep 2017 18:21:46 +0000 (13:21 -0500)]
Revert "cygwin: only expose /dev/con{in,out,sole} when started from a Windows console"

This caused serious regressions when running from a cmd window:

https://cygwin.com/ml/cygwin/2017-09/msg00114.html

This reverts commit b706c6b479422d31f0124b92c21b4cb536bbddff.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
6 years agoChange time_t to 64-bit by default
Sebastian Huber [Thu, 7 Sep 2017 06:24:22 +0000 (08:24 +0200)]
Change time_t to 64-bit by default

In order to avoid the year 2038 problem, define time_t to a signed
integer with at least 64-bits.  The type for time_t can be forced to
long with the --enable-newlib-long-time_t configure option or with the
_USE_LONG_TIME_T system configuration define.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agoRemove harmful casts in gmtime_r()
Sebastian Huber [Thu, 7 Sep 2017 13:01:47 +0000 (15:01 +0200)]
Remove harmful casts in gmtime_r()

In case time_t is long, then the cast to long is a nop.  In case time_t
is __int_least64_t, then the cast to long may truncate the value before
the division.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agoLet RTEMS provide clock()
Sebastian Huber [Wed, 6 Sep 2017 06:43:26 +0000 (08:43 +0200)]
Let RTEMS provide clock()

Newlib uses _times_r() in clock().  The problem is that the _times_r()
clock frequency is defined by sysconf(_SC_CLK_TCK).  The clock frequency
of clock() is the constant CLOCKS_PER_SEC.

FreeBSD uses getrusage() for clock().  Since RTEMS has only one process,
the implementation can be simplified.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
6 years agostdio.h: Don't define unlocked macros using static inline on C++ cygwin-2_9_0-release
Corinna Vinschen [Mon, 4 Sep 2017 08:52:33 +0000 (10:52 +0200)]
stdio.h: Don't define unlocked macros using static inline on C++

In C++, the usage of static inline functions for getchar_unlocked and
putchar_unlocked may result in error messages like

  error: ‘_putchar_unlocked’ was not declared in this scope

Fix this by not using the _getchar_unlocked and _putchar_unlocked
macros in C++.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
6 years agocygwin: Document crypt_r
Yaakov Selkowitz [Fri, 1 Sep 2017 22:26:40 +0000 (17:26 -0500)]
cygwin: Document crypt_r

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
6 years agoRemove some dangerous advice from the FAQ
Achim Gratz [Sat, 2 Sep 2017 14:14:02 +0000 (16:14 +0200)]
Remove some dangerous advice from the FAQ

6 years agoinclude: fix ffs, fls guards
Yaakov Selkowitz [Tue, 29 Aug 2017 17:55:58 +0000 (12:55 -0500)]
include: fix ffs, fls guards

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
6 years agonewlib: string/Makefile.am (CHEWOUT_FILES): Add strnstr.def
Corinna Vinschen [Wed, 30 Aug 2017 14:48:55 +0000 (16:48 +0200)]
newlib: string/Makefile.am (CHEWOUT_FILES): Add strnstr.def

Regenerate strings/Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
6 years agonewlib: strnstr: drop traditional synopisis
Corinna Vinschen [Wed, 30 Aug 2017 14:45:36 +0000 (16:45 +0200)]
newlib: strnstr: drop traditional synopisis

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
6 years agoAdd man page entry for strnstr.c.
Sichen Zhao [Wed, 30 Aug 2017 03:03:57 +0000 (11:03 +0800)]
Add man page entry for strnstr.c.

6 years agoModify strnstr.c.
Sichen Zhao [Wed, 30 Aug 2017 03:03:56 +0000 (11:03 +0800)]
Modify strnstr.c.

6 years agocygwin: add strptime %F fix to release notes
Corinna Vinschen [Tue, 29 Aug 2017 19:12:21 +0000 (21:12 +0200)]
cygwin: add strptime %F fix to release notes

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
6 years agowinsup/cygwin/libc/strptime.cc(__strptime) fix %F width
Brian Inglis [Tue, 29 Aug 2017 17:25:43 +0000 (11:25 -0600)]
winsup/cygwin/libc/strptime.cc(__strptime) fix %F width

6 years agocygwin: document %s support in strptime
Corinna Vinschen [Tue, 29 Aug 2017 09:16:13 +0000 (11:16 +0200)]
cygwin: document %s support in strptime

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
6 years agoFix compile error due to new strnstr()
Sebastian Huber [Fri, 25 Aug 2017 17:48:42 +0000 (19:48 +0200)]
Fix compile error due to new strnstr()

Remove local strnstr() implementation to fix compile error:

newlib/libc/iconv/lib/aliasesi.c:53:8: error: conflicting types for 'strnstr'
 _DEFUN(strnstr, (haystack, needle, length),
        ^
In file included from newlib/libc/iconv/lib/aliasesi.c:29:0:
newlib/libc/include/string.h:125:10:
note: previous declaration of 'strnstr' was here
 char    *strnstr(const char *, const char *, size_t) __pure;
          ^~~~~~~

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agocygwin: export strnstr
Corinna Vinschen [Fri, 25 Aug 2017 15:59:28 +0000 (17:59 +0200)]
cygwin: export strnstr

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agonewlib: rebuild string/Makefile.in
Corinna Vinschen [Fri, 25 Aug 2017 15:59:05 +0000 (17:59 +0200)]
newlib: rebuild string/Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoPort strnstr.c to newlib.
Sichen Zhao [Fri, 25 Aug 2017 07:35:39 +0000 (15:35 +0800)]
Port strnstr.c to newlib.

7 years agoImport strnstr.c from FreeBSD.
Sichen Zhao [Fri, 25 Aug 2017 07:35:38 +0000 (15:35 +0800)]
Import strnstr.c from FreeBSD.

7 years agoRevert "headers: avoid bareword attributes" for clang
Eric Blake [Fri, 25 Aug 2017 14:16:23 +0000 (09:16 -0500)]
Revert "headers: avoid bareword attributes" for clang

This reverts most of commit 979d467ff6e39ee5c52cf1aac7a6c9c63058141c.

We cannot avoid some bareword attributes until clang is fixed to
properly support __-decorated attributes; see this bug:
https://bugs.llvm.org/show_bug.cgi?id=34319

The macros in question expand to the empty string under gcc, so
only compilation under clang is affected, and since clang has the
bug, the obvious solution is to roll back the changes, and document
the issue.

Signed-off-by: Eric Blake <eblake@redhat.com>
7 years agoRTEMS: Use __uint64_t for _CLOCK_T_
Sebastian Huber [Thu, 24 Aug 2017 13:27:50 +0000 (15:27 +0200)]
RTEMS: Use __uint64_t for _CLOCK_T_

This addresses:

https://devel.rtems.org/ticket/2135

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agoMake _CLOCK_T_ system configurable
Sebastian Huber [Thu, 24 Aug 2017 13:26:03 +0000 (15:26 +0200)]
Make _CLOCK_T_ system configurable

Let systems optionally provide the _CLOCK_T_ type via
<machine/_types.h>.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agonewlib/libc/time/strptime.c(strptime_l) add %F %s support for strptime
Brian Inglis [Thu, 24 Aug 2017 19:12:17 +0000 (13:12 -0600)]
newlib/libc/time/strptime.c(strptime_l) add %F %s support for strptime

7 years agowinsup/cygwin/libc/strptime.cc(__strptime) add %s support to strptime
Brian Inglis [Thu, 24 Aug 2017 19:24:28 +0000 (13:24 -0600)]
winsup/cygwin/libc/strptime.cc(__strptime) add %s support to strptime

7 years agomove ILP32 sanity check on heap base code under ARM_RDI_MONITOR
Alexander Fedotov-B55613 [Tue, 22 Aug 2017 14:06:54 +0000 (17:06 +0300)]
move ILP32 sanity check on heap base code under ARM_RDI_MONITOR

7 years agocygwin: only expose /dev/con{in,out,sole} when started from a Windows console
Corinna Vinschen [Wed, 23 Aug 2017 15:43:41 +0000 (17:43 +0200)]
cygwin: only expose /dev/con{in,out,sole} when started from a Windows console

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoAdd myself to RISC-V Port Maintainer
Kito Cheng [Mon, 21 Aug 2017 02:56:51 +0000 (10:56 +0800)]
Add myself to RISC-V Port Maintainer

7 years agoChange license to FreeBSD License for RISC-V
Kito Cheng [Mon, 21 Aug 2017 02:30:30 +0000 (10:30 +0800)]
Change license to FreeBSD License for RISC-V

 - For prevent confuse about what BSD license variant we used, 2- or
   3-clause license, we change the license to FreeBSD license to make
   it unambiguously refers to the 2-clause license.

7 years agoDocument renameat2
Ken Brown [Sat, 19 Aug 2017 17:15:04 +0000 (13:15 -0400)]
Document renameat2

7 years agocygwin: Implement renameat2
Ken Brown [Thu, 17 Aug 2017 13:12:15 +0000 (09:12 -0400)]
cygwin: Implement renameat2

Define the RENAME_NOREPLACE flag in <cygwin/fs.h> as defined on Linux
in <linux/fs.h>.  The other RENAME_* flags defined on Linux are not
supported.

7 years agoAdd RISC-V port for libgloss newlib-snapshot-20170818
Kito Cheng [Thu, 27 Jul 2017 08:45:47 +0000 (16:45 +0800)]
Add RISC-V port for libgloss

  Contributor list:
    - Andrew Waterman  <andrew@sifive.com>
    - Palmer Dabbelt  <palmer@dabbelt.com>
    - Kito Cheng  <kito.cheng@gmail.com>
    - Alex Suykov  <alex.suykov@gmail.com>

7 years agoAdd RISC-V port for libm
Kito Cheng [Thu, 27 Jul 2017 08:45:12 +0000 (16:45 +0800)]
Add RISC-V port for libm

  Contributor list:
    - Michael Neilly  <mneilly@yahoo.com>
    - Kito Cheng  <kito.cheng@gmail.com>

7 years agoheaders: avoid bareword attributes
Eric Blake [Thu, 17 Aug 2017 01:39:18 +0000 (20:39 -0500)]
headers: avoid bareword attributes

Always use the __-decorated form of an attribute name in public
headers, as the bareword form is in the user's namespace, and we
don't want compilation to break just because the user defines the
bareword to mean something else.

Signed-off-by: Eric Blake <eblake@redhat.com>
7 years agoheaders: avoid bareword attributes
Eric Blake [Thu, 17 Aug 2017 01:39:18 +0000 (20:39 -0500)]
headers: avoid bareword attributes

Always use the __-decorated form of an attribute name in public
headers, as the bareword form is in the user's namespace, and we
don't want compilation to break just because the user defines the
bareword to mean something else.

Signed-off-by: Eric Blake <eblake@redhat.com>
7 years agoFix crt0 init fini code
Szabolcs Nagy [Thu, 17 Aug 2017 10:42:59 +0000 (11:42 +0100)]
Fix crt0 init fini code

__USES_INITFINI__ ifdef was incorrectly copied from arm
(it's an arm backend thing in gcc, not meaningful on aarch64)

7 years agoAdd RISC-V port for newlib
Kito Cheng [Thu, 27 Jul 2017 08:44:22 +0000 (16:44 +0800)]
Add RISC-V port for newlib

  Contributor list:
    - Andrew Waterman  <andrew@sifive.com>
    - Palmer Dabbelt  <palmer@dabbelt.com>
    - Kito Cheng  <kito.cheng@gmail.com>
    - Scott Beamer  <sbeamer@eecs.berkeley.edu>

7 years agofix typo in AArch64 crt0
Alexander Fedotov-B55613 [Tue, 15 Aug 2017 14:01:05 +0000 (17:01 +0300)]
fix typo in AArch64 crt0

7 years agouse stack from linker script when nosys
Alexander Fedotov-B55613 [Fri, 11 Aug 2017 13:47:02 +0000 (16:47 +0300)]
use stack from linker script when nosys

7 years agonewlib: regenerate libc/stdlib/Makefile.am
Corinna Vinschen [Fri, 11 Aug 2017 08:17:16 +0000 (10:17 +0200)]
newlib: regenerate libc/stdlib/Makefile.am

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoDon't fetch command line options without semi-hosting
Yao Qi [Wed, 9 Aug 2017 14:37:57 +0000 (15:37 +0100)]
Don't fetch command line options without semi-hosting

Nowadays, the code fetching command line options via semi-hosting are
unconditionally pulled in, so that the semi-hosting code is still
there even I compile with option --specs=nosys.specs.

gdb ./aarch64-none-elf/libgloss/aarch64/crt0.o

(gdb) disassemble _start

   0x0000000000000050 <+80>: ldr x1, 0x128 <_cpu_init_hook+48>
   0x0000000000000054 <+84>: mov w0, #0x15
   0x0000000000000058 <+88>: hlt #0xf000

This patch fixes this problem by wrapping the code by ARM_RDI_MONITOR.
When semi-hosting is not used, set command line options to NULL.

7 years agoFix crt0 overwriting.
Tamar Christina [Tue, 8 Aug 2017 14:47:54 +0000 (15:47 +0100)]
Fix crt0 overwriting.

On AArch64 we currently always link in crt0 regardless of if another
one is being provided by something else, like rdimon.a. This was never
an issue before as nosys was not supported on AArch64.

This updates the specs to supply a different crt0 when a semihosting
call is required.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoDefine sigsetjmp/siglongjmp only if __POSIX_VISIBLE
Ken Brown [Sun, 6 Aug 2017 21:40:43 +0000 (17:40 -0400)]
Define sigsetjmp/siglongjmp only if __POSIX_VISIBLE

7 years agoProper locking for getchar() and putchar()
Sebastian Huber [Mon, 7 Aug 2017 05:35:19 +0000 (07:35 +0200)]
Proper locking for getchar() and putchar()

Add internal inline functions _getchar_unlocked() and
_putchar_unlocked() if __CUSTOM_FILE_IO__ is not defined.  These
functions get _REENT only once.  Use them for getchar_unlocked() and
putchar_unlocked().  Define getchar() and putchar() to these unlocked
internal functions if __SINGLE_THREAD__ is defined, otherwise use the
external functions to use proper locking of the FILE object.

Assumes that __SINGLE_THREAD__ is not defined if __CYGWIN__ is defined.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agocygwin: pthread timed locks: actually timeout on timeout
Corinna Vinschen [Thu, 3 Aug 2017 21:14:21 +0000 (23:14 +0200)]
cygwin: pthread timed locks: actually timeout on timeout

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: pthread_rwlock_rdlock: don't set errno, just return error code
Corinna Vinschen [Thu, 3 Aug 2017 21:09:57 +0000 (23:09 +0200)]
cygwin: pthread_rwlock_rdlock: don't set errno, just return error code

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: Implement pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock
Corinna Vinschen [Thu, 3 Aug 2017 19:31:38 +0000 (21:31 +0200)]
cygwin: Implement pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: Bump DLL version to 2.9.0
Corinna Vinschen [Thu, 3 Aug 2017 17:17:45 +0000 (19:17 +0200)]
cygwin: Bump DLL version to 2.9.0

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: Implement pthread_mutex_timedlock
Corinna Vinschen [Thu, 3 Aug 2017 17:13:21 +0000 (19:13 +0200)]
cygwin: Implement pthread_mutex_timedlock

- pthread_mutex::lock now takes a PLARGE_INTEGER timeout pointer
  and uses that in the call to cygwait.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: simplify pthread timedwait handling
Corinna Vinschen [Thu, 3 Aug 2017 17:08:31 +0000 (19:08 +0200)]
cygwin: simplify pthread timedwait handling

- Introduce inline helper pthread_convert_abstime.  It converts
  an absolute timespec to a Windows LARGE_INTEGER timestamp,
  depending on the used clock.

- Use this function from pthread_cond_timedwait and semaphore::timedwait

- Merge semaphore::_wait and semaphore::_timedwait into single _wait
  method, taking a LARGER_INTEGER timestamp.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin/signal.h: Remove SI_QUEUE unimplemented comment
Corinna Vinschen [Thu, 3 Aug 2017 12:56:24 +0000 (14:56 +0200)]
cygwin/signal.h: Remove SI_QUEUE unimplemented comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoRevert "cygwin/signal.h: Remove SI_QUEUE unimplemented comment"
Corinna Vinschen [Thu, 3 Aug 2017 12:55:21 +0000 (14:55 +0200)]
Revert "cygwin/signal.h: Remove SI_QUEUE unimplemented comment"

This reverts commit 54ed68a781fe8a36d08352503524e61534a25e07.

7 years agocygwin/signal.h: Remove SI_QUEUE unimplemented comment
Corinna Vinschen [Thu, 3 Aug 2017 12:54:02 +0000 (14:54 +0200)]
cygwin/signal.h: Remove SI_QUEUE unimplemented comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoImporting wcstoumax inttypes method from FreeBSD.
Aditya Upadhyay [Wed, 2 Aug 2017 03:21:20 +0000 (08:51 +0530)]
Importing wcstoumax inttypes method from FreeBSD.

7 years agoImporting wcstoimax inttypes method from FreeBSD.
Aditya Upadhyay [Wed, 2 Aug 2017 03:20:38 +0000 (08:50 +0530)]
Importing wcstoimax inttypes method from FreeBSD.

7 years agoImporting strtoumax inttypes method from FreeBSD.
Aditya Upadhyay [Wed, 2 Aug 2017 03:20:05 +0000 (08:50 +0530)]
Importing strtoumax inttypes method from FreeBSD.

7 years agoImporting strtoimax inttypes method from FreeBSD.
Aditya Upadhyay [Wed, 2 Aug 2017 03:19:39 +0000 (08:49 +0530)]
Importing strtoimax inttypes method from FreeBSD.

7 years agocygwin: add explicit_bzero, elf.h changes to release
Yaakov Selkowitz [Wed, 2 Aug 2017 09:38:01 +0000 (04:38 -0500)]
cygwin: add explicit_bzero, elf.h changes to release

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
7 years agoAdd elf.h to newlib
Yaakov Selkowitz [Wed, 2 Aug 2017 06:15:31 +0000 (01:15 -0500)]
Add elf.h to newlib

This is copied from musl (MIT license).  This is newer and more thorough
than that of FreeBSD currently shipped only on Cygwin.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
7 years agocygwin: Export explicit_bzero
Yaakov Selkowitz [Wed, 2 Aug 2017 06:09:49 +0000 (01:09 -0500)]
cygwin: Export explicit_bzero

This was added to newlib together with timingsafe_*cmp but never exported.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
7 years agocygwin: generate Alt-Numpad characters independent of NumLock state
Corinna Vinschen [Tue, 1 Aug 2017 12:10:50 +0000 (14:10 +0200)]
cygwin: generate Alt-Numpad characters independent of NumLock state

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: add console issues to release notes
Corinna Vinschen [Mon, 31 Jul 2017 21:08:19 +0000 (23:08 +0200)]
cygwin: add console issues to release notes

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: select: use UNICODE console functions
Corinna Vinschen [Mon, 31 Jul 2017 20:57:06 +0000 (22:57 +0200)]
cygwin: select: use UNICODE console functions

For historical reasons peek_console was calling the functions
PeekConsoleInputA and ReadConsoleInputA.  However, these functions are
not working correctly under at least codepage 65001 (UTF-8) on systems
prior to Windows 10.

Use PeekConsoleInputW and ReadConsoleInputW instead, which work
correctly under all systems and all codepages.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: console: Use memset to clear an array
Corinna Vinschen [Mon, 31 Jul 2017 09:44:02 +0000 (11:44 +0200)]
cygwin: console: Use memset to clear an array

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: clear screen using wide char function
Corinna Vinschen [Mon, 31 Jul 2017 09:43:35 +0000 (11:43 +0200)]
cygwin: clear screen using wide char function

FillConsoleOutputCharacterA doesn't work correctly in codepage 65001
(UTF-8).  Looks like the character conversion function from ascii char
to unicode char works incorrectly then.  Use FillConsoleOutputCharacterW
instead.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoImporting catanl long double complex method from NetBSD.
Aditya Upadhyay [Fri, 28 Jul 2017 17:29:40 +0000 (22:59 +0530)]
Importing catanl long double complex method from NetBSD.

7 years agoFixing HUGE_VALF to HUGE_VALL.
Aditya Upadhyay [Fri, 28 Jul 2017 17:34:34 +0000 (23:04 +0530)]
Fixing HUGE_VALF to HUGE_VALL.

7 years agostdio: Fix make rule override
Sebastian Huber [Fri, 28 Jul 2017 10:02:43 +0000 (12:02 +0200)]
stdio: Fix make rule override

The Makefile.am contained two rules for the vfwscanf object.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agonewlib: regenerate stdlib/Makefile.in
Corinna Vinschen [Fri, 28 Jul 2017 10:44:45 +0000 (12:44 +0200)]
newlib: regenerate stdlib/Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoImporting imaxdiv inttypes method from FreeBSD.
Aditya Upadhyay [Tue, 25 Jul 2017 19:30:26 +0000 (01:00 +0530)]
Importing imaxdiv inttypes method from FreeBSD.

7 years agoImporting imaxabs inttypes method from FreeBSD.
Aditya Upadhyay [Tue, 25 Jul 2017 19:29:48 +0000 (00:59 +0530)]
Importing imaxabs inttypes method from FreeBSD.

7 years agocygwin: Set __STDC_ISO_10646__ to Unicode 5.2 value
Corinna Vinschen [Wed, 26 Jul 2017 09:49:58 +0000 (11:49 +0200)]
cygwin: Set __STDC_ISO_10646__ to Unicode 5.2 value

Now that XP is not supported anymore we can freely do that.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: add release notes for reparse point patches
Corinna Vinschen [Mon, 24 Jul 2017 21:04:34 +0000 (23:04 +0200)]
cygwin: add release notes for reparse point patches

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: unify reparse point checking code into single function
Corinna Vinschen [Mon, 24 Jul 2017 15:33:20 +0000 (17:33 +0200)]
cygwin: unify reparse point checking code into single function

So far we had two functions checking the content of a reparse point,
readdir_check_reparse_point in fhandler_disk_file.cc for the sake of
readdir, and symlink_info::check_reparse_point for the sake of
generic path checking.

* Rename check_reparse_point_target helper to check_reparse_point_string
  and convert to static function.
* Create new check_reparse_point_target helper containing the core
  reparse point checking code
* Just call check_reparse_point_target from readdir_check_reparse_point
  and symlink_info::check_reparse_point and only perform the unique
  task in those functions.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: fix formatting in check_reparse_point_target
Corinna Vinschen [Mon, 24 Jul 2017 15:32:20 +0000 (17:32 +0200)]
cygwin: fix formatting in check_reparse_point_target

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: Fix resource leak in readdir reparse point handling
Corinna Vinschen [Mon, 24 Jul 2017 15:26:17 +0000 (17:26 +0200)]
cygwin: Fix resource leak in readdir reparse point handling

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years ago[arm] Fix strcpy for unified syntax on ARMv4t thumb.
Richard Earnshaw [Fri, 21 Jul 2017 10:22:25 +0000 (11:22 +0100)]
[arm] Fix strcpy for unified syntax on ARMv4t thumb.

ARMv4t does not support mov between two low registers.  Now we use
unified syntax mov instructions need converting to movs.

7 years agoPrevious patch to support nosys.specs accidentally broke validation specs because...
Tamar Christina [Thu, 20 Jul 2017 12:28:40 +0000 (13:28 +0100)]
Previous patch to support nosys.specs accidentally broke validation specs because ARM_RDI_MONITOR was never passed to the build rule for crt0.

This fixed the compile for nosys and validation specs
but nosys won't run because of existing limitations to
aarch64's syscalls.c, it requires semihosting to get
commandline arguments and heap info without having a
fallback method as ARM does.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoMSP430: Define __BUFSIZ__ as 256 to prevent default of 1024 being used newlib-snapshot-20170720
Jozef Lawrynowicz [Mon, 10 Jul 2017 17:19:00 +0000 (17:19 +0000)]
MSP430: Define __BUFSIZ__ as 256 to prevent default of 1024 being used

7 years agoarm: Update strcpy.c to use UAL syntax.
Ian Tessier via newlib [Wed, 19 Jul 2017 21:02:43 +0000 (14:02 -0700)]
arm: Update strcpy.c to use UAL syntax.

With this change the arm platform can now be fully compiled with Clang.

Tested by comparing the output with GCC 4.8.2, and Clang 4.0, using a
variety of arches, big/little endianness, and arm/thumb mode to verify
the generated assembly output matches between GCC vs Clang with UAL, and
also GCC with UAL vs GCC with non-UAL, for all preprocessor code blocks.

The only difference found is an extra nop at the end of the function
when compiled with GCC using armv7-a/thumb/little-endian/-O2 compared to
Clang. The nop is not emitted when compiled in big-endian mode.

7 years agocygwin: add fflush fix to release notes
Corinna Vinschen [Wed, 19 Jul 2017 08:41:36 +0000 (10:41 +0200)]
cygwin: add fflush fix to release notes

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: Bump DLL version to 2.8.3
Corinna Vinschen [Wed, 19 Jul 2017 08:38:15 +0000 (10:38 +0200)]
cygwin: Bump DLL version to 2.8.3

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: Use errno instead of _impure_ptr->_errno
Corinna Vinschen [Wed, 19 Jul 2017 08:30:47 +0000 (10:30 +0200)]
cygwin: Use errno instead of _impure_ptr->_errno

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoRevert "errno: Stop using _impure_ptr->_errno completely"
Corinna Vinschen [Wed, 19 Jul 2017 08:28:39 +0000 (10:28 +0200)]
Revert "errno: Stop using _impure_ptr->_errno completely"

This reverts commit 44b1746a41921533d27aca414a9188314cb725b6.

Bad idea.  _impure_ptr->_errno is used by newlib

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This page took 0.065483 seconds and 5 git commands to generate.