]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
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>
7 years agoSupport building in a different directory than the default output directory by preser...
Tamar Christina [Mon, 17 Jul 2017 07:46:45 +0000 (08:46 +0100)]
Support building in a different directory than the default output directory by preserving DESTDIR value in recursive calls.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoFix link when nosys.specs is used to link
Tamar Christina [Thu, 13 Jul 2017 10:52:42 +0000 (10:52 +0000)]
Fix link when nosys.specs is used to link

This patch fixes the issue where nosys.specs is used to link.
e.g. The use of crt0 without any support for semihosting requested.

The AArch64 crt0 was missing an #ifdef for the initialise_monitor_handles
which was causing the link to fail. Sorry for missing this before.

7 years agocygwin: 2.8.2: add missing release message text cygwin-2_8_2-release
Corinna Vinschen [Wed, 12 Jul 2017 08:49:10 +0000 (10:49 +0200)]
cygwin: 2.8.2: add missing release message text

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agocygwin: document signal.h fixes
Yaakov Selkowitz [Wed, 12 Jul 2017 08:24:50 +0000 (03:24 -0500)]
cygwin: document signal.h fixes

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
7 years agoSynchronize RTEMS <sys/bitset.h> with FreeBSD
Sebastian Huber [Wed, 12 Jul 2017 06:03:29 +0000 (08:03 +0200)]
Synchronize RTEMS <sys/bitset.h> with FreeBSD

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agocygwin: export fls, flsl, flsll
Corinna Vinschen [Tue, 11 Jul 2017 08:31:44 +0000 (10:31 +0200)]
cygwin: export fls, flsl, flsll

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
7 years agoCygwin: fix guard on struct siginfo_t
Yaakov Selkowitz [Fri, 7 Jul 2017 22:33:59 +0000 (17:33 -0500)]
Cygwin: fix guard on struct siginfo_t

Add line breaks to make it clearer that the struct packing applies to more
than one struct.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
7 years agoAdd myself to OS Port Maintainers (RTEMS)
Sebastian Huber [Fri, 7 Jul 2017 05:11:47 +0000 (07:11 +0200)]
Add myself to OS Port Maintainers (RTEMS)

7 years agoSynchronize RTEMS <sys/bitset.h> with FreeBSD
Sebastian Huber [Fri, 7 Jul 2017 05:07:19 +0000 (07:07 +0200)]
Synchronize RTEMS <sys/bitset.h> with FreeBSD

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agoRename __in and __out in headers to avoid collision with Windows APIs
David Macek [Fri, 7 Jul 2017 08:47:02 +0000 (10:47 +0200)]
Rename __in and __out in headers to avoid collision with Windows APIs

* string.h: Local variables in expansion of strdupa and strndupa
* sys/wait.h: Fields in anonymous union in expansion of __wait_status_to_int

7 years agofix URL shortcuts launch with cygstart, create shortcuts directly in SM/Programs...
Brian Inglis [Thu, 6 Jul 2017 09:35:34 +0000 (03:35 -0600)]
fix URL shortcuts launch with cygstart, create shortcuts directly in SM/Programs/Cygwin

7 years agoReplace the perl character classes with POSIX ones to fix the build when sed is a...
Tamar Christina [Thu, 6 Jul 2017 09:33:31 +0000 (10:33 +0100)]
Replace the perl character classes with POSIX ones to fix the build when sed is a BSD sed instead of GNU.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agofix cygwin-doc postinstall/preremove no SMPrograms/Cygwin dir
Brian Inglis [Wed, 5 Jul 2017 18:28:54 +0000 (12:28 -0600)]
fix cygwin-doc postinstall/preremove no SMPrograms/Cygwin dir

7 years agoAdd support for Semihosting v2 support for AArch64 in libgloss.
Tamar Christina [Wed, 5 Jul 2017 12:04:59 +0000 (13:04 +0100)]
Add support for Semihosting v2 support for AArch64 in libgloss.

Semihosting v2 changes are documented here:
https://developer.arm.com/docs/100863/latest/

The biggest change is the addition of an extensions mechanism
to add more extensions in the future.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoAdd support for Semihosting v2 support for ARM in libgloss.
Tamar Christina [Wed, 5 Jul 2017 12:04:07 +0000 (13:04 +0100)]
Add support for Semihosting v2 support for ARM in libgloss.

Semihosting v2 changes are documented here:
https://developer.arm.com/docs/100863/latest/

The biggest change is the addition of an extensions mechanism
to add more extensions in the future.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoAdd the needed build system changes in order to compile and create the new libraries...
Tamar Christina [Wed, 5 Jul 2017 12:02:30 +0000 (13:02 +0100)]
Add the needed build system changes in order to compile and create the new libraries for Semihosting v2 for ARM.

This uses the new recursive build target in multi-build.in

The new spec files are:

For AArch32/ARM (m for mixed mode):
  - rdimon-v2m.specs
  - aprofile-validation-v2m.specs
  - aprofile-ve-v2m.specs

These spec files will be using the new libraries generated
by multi-build.in.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoAdds the needed build system changes in order to compile and create the new libraries...
Tamar Christina [Wed, 5 Jul 2017 12:00:23 +0000 (13:00 +0100)]
Adds the needed build system changes in order to compile and create the new libraries for Semihosting v2.

This uses the new recursive build target in multi-build.in

For AArch64 no new spec files are needed but the makefiles
are modified to keep them in sync with the ARM ones.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoCreate a recursive make target that is modeled after the existing multilib makefile...
Tamar Christina [Wed, 5 Jul 2017 11:54:52 +0000 (12:54 +0100)]
Create a recursive make target that is modeled after the existing multilib makefile config-ml.in which can be used to build the same files within a target multiple ways.

e.g. from the same source file produce multiple libs by varying the
options passed to the compiler.

Signed-off-by: Tamar Christina <tamar.christina@arm.com>
7 years agoFixed warnings for some long double complex methods
Aditya Upadhyay [Wed, 5 Jul 2017 08:58:36 +0000 (14:28 +0530)]
Fixed warnings for some long double complex methods

7 years agoAdd ffsl(), ffsll(), fls(), flsl(), flsll()
Sebastian Huber [Tue, 4 Jul 2017 10:56:22 +0000 (12:56 +0200)]
Add ffsl(), ffsll(), fls(), flsl(), flsll()

Use compiler builtin for ffs().  Remove duplicate implementation from
Cygwin.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
7 years agoSynchronize <strings.h> with latest FreeBSD
Sebastian Huber [Tue, 4 Jul 2017 09:49:58 +0000 (11:49 +0200)]
Synchronize <strings.h> with latest FreeBSD

Include <strings.h> in <string.h> if __BSD_VISIBLE like on FreeBSD.
Remove redundant declarations from <string.h>.  Make ffsl(), ffsll(),
strncasecmp(), strcasecmp_l(), and strncasecmp_l() visible via
__BSD_VISIBLE instead of __GNU_VISIBLE.  Add fls(), flsl(), and flsll()
to <strings.h> if __BSD_VISIBLE.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This page took 0.067123 seconds and 5 git commands to generate.