]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
3 months agoCygwin: utils: refresh tzmap.h cygwin-3.5.3
Corinna Vinschen [Thu, 21 Mar 2024 20:43:45 +0000 (21:43 +0100)]
Cygwin: utils: refresh tzmap.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
3 months agoCygwin: tzmap-from-unicode.org: drop "E. Europe Standard Time" default
Corinna Vinschen [Thu, 21 Mar 2024 20:43:10 +0000 (21:43 +0100)]
Cygwin: tzmap-from-unicode.org: drop "E. Europe Standard Time" default

E. Europe Standard Time is available in the unicode.org windowsZones.xml
file, so we can drop the default handling.

Fix a few comments.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
3 months agoCygwin: tzset(1): use GetDynamicTimeZoneInformation
Corinna Vinschen [Thu, 21 Mar 2024 20:24:11 +0000 (21:24 +0100)]
Cygwin: tzset(1): use GetDynamicTimeZoneInformation

Use official GetDynamicTimeZoneInformation() function instead of
scanning the registry for the timezone keyname.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
3 months agoCygwin: fix tzmap-from-unicode.org
Corinna Vinschen [Thu, 21 Mar 2024 20:22:49 +0000 (21:22 +0100)]
Cygwin: fix tzmap-from-unicode.org

The previous change introduced a missing end of comment

Fixes: 60ea9c1c4b66 ("Cygwin: tzmap-from-unicode.org: drop support for Vista/2008")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
3 months agobump DLL version to 3.5.3
Corinna Vinschen [Wed, 3 Apr 2024 15:42:33 +0000 (17:42 +0200)]
bump DLL version to 3.5.3

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: utils: refresh tzmap.h cygwin-3.5.2
Corinna Vinschen [Wed, 20 Mar 2024 22:00:02 +0000 (23:00 +0100)]
Cygwin: utils: refresh tzmap.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: tzmap-from-unicode.org: drop support for Vista/2008
Corinna Vinschen [Wed, 20 Mar 2024 21:59:37 +0000 (22:59 +0100)]
Cygwin: tzmap-from-unicode.org: drop support for Vista/2008

Commit b794f2c6038f ("Cygwin: drop support for systems not supporting
RFC 4646 locales") erroneously changed tzmap.h manually.  Change
the script accordingly.

Fixes: b794f2c6038f ("Cygwin: drop support for systems not supporting RFC 4646 locales")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoRevert "Cygwin: glob: perform ignore_case_with_glob on input"
Corinna Vinschen [Mon, 18 Mar 2024 09:50:30 +0000 (10:50 +0100)]
Revert "Cygwin: glob: perform ignore_case_with_glob on input"

This reverts commit a51147467e6cf58618433286f93d17043e00b0fc.

Dumb thinko on my part.  What was supposed to be an optimization
actually broke caseinsensitive globbing in that the entire input
of globbed expressions were downcased.

Drop the unused CCHAR() macro nevertheless.

Fixes: a51147467e6cf ("Cygwin: glob: perform ignore_case_with_glob on input")
Reported-by: Michael Goldshteyn <mgold10000@gmail.com>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: pipe: Make sure to set read pipe non-blocking for cygwin apps.
Takashi Yano [Mon, 11 Mar 2024 13:08:00 +0000 (22:08 +0900)]
Cygwin: pipe: Make sure to set read pipe non-blocking for cygwin apps.

If pipe reader is a non-cygwin app first, and cygwin process reads
the same pipe after that, the pipe has been set to bclocking mode
for the cygwin app. However, the commit 9e4d308cd592 assumes the
pipe for cygwin process always is non-blocking mode. With this patch,
the pipe mode is reset to non-blocking when cygwin app is started.

Addresses: https://cygwin.com/pipermail/cygwin/2024-March/255644.html
Fixes: 9e4d308cd592 ("Cygwin: pipe: Adopt FILE_SYNCHRONOUS_IO_NONALERT flag for read pipe.")
Reported-by: wh <wh9692@protonmail.com>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
4 months agoCygwin: add 3.5.2 release entries for latest commits
Corinna Vinschen [Mon, 11 Mar 2024 11:53:24 +0000 (12:53 +0100)]
Cygwin: add 3.5.2 release entries for latest commits

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: getgrent: don't skip SAM-only builtin-accounts
Corinna Vinschen [Mon, 11 Mar 2024 11:38:39 +0000 (12:38 +0100)]
Cygwin: getgrent: don't skip SAM-only builtin-accounts

Since commit 15e82eef3a40b ("Cygwin: getgrent: fix local SAM enumeration
on domain member machines") we skip enumerating local BUILTIN accounts
if we also enumerate AD.  However, there are two local accounts which
are only available in local SAM, not in AD.  Don't skip enumerating
those.

Fixes: 15e82eef3a40b ("Cygwin: getgrent: fix local SAM enumeration on domain member machines")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: get/set security descriptors using FILE_OPEN_NO_RECALL
Corinna Vinschen [Fri, 8 Mar 2024 20:30:57 +0000 (21:30 +0100)]
Cygwin: get/set security descriptors using FILE_OPEN_NO_RECALL

Add FILE_OPEN_NO_RECALL to NtOpenFile calls trying to fetch
or write file security descriptors so as not to recall them
from offline storage inadvertently.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: try to avoid recalling offline files
Corinna Vinschen [Fri, 8 Mar 2024 19:57:06 +0000 (20:57 +0100)]
Cygwin: try to avoid recalling offline files

Chances are high that Cygwin recalls offline files from remote
storage, even if the file is only accessed during stat(2) or
readdir(3).

To avoid this
- make sure Cygwin is placeholder-aware,
- open files in path_conv handling, as well as in stat(2)/readdir(3)
  scenarios with FILE_OPEN_NO_RECALL, and
- during symlink checking or testing for executablility, don't even
  try to open the file if one of the OFFLINE attributes is set.

Reported-by: Marcin Wisnicki <mwisnicki@gmail.com>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: pipe: Give up to use query_hdl for non-cygwin apps.
Takashi Yano [Sun, 3 Mar 2024 04:44:17 +0000 (13:44 +0900)]
Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.

Non-cygwin app may call ReadFile() for empty pipe, which makes
NtQueryObject() for ObjectNameInformation block in fhandler_pipe::
get_query_hdl_per_process. Therefore, do not to try to get query_hdl
for non-cygwin apps.

Addresses: https://github.com/msys2/msys2-runtime/issues/202

Fixes: b531d6b06eeb ("Cygwin: pipe: Introduce temporary query_hdl.")
Reported-by: Alisa Sireneva, Johannes Schindelin <Johannes.Schindelin@gmx.de>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
4 months agoCygwin: console: Fix a race issue between close() and open().
Takashi Yano [Mon, 4 Mar 2024 02:32:34 +0000 (11:32 +0900)]
Cygwin: console: Fix a race issue between close() and open().

The open() call for console sometimes fails if the console owner
process is closing the console by close() at the same time. This
is due to mismatch state of con.owner variable and attaching state
to the console. With this patch, checking con.owner and attaching
to con.owner sequence in open(), and resetting con.owner and freeing
console sequence in close() are guarded by output_mutex to avoid
such a race issue.
Addresses: https://cygwin.com/pipermail/cygwin/2024-March/255575.html

Fixes: 3721a756b0d8 ("Cygwin: console: Make the console accessible from other terminals.")
Reported-by: Kate Deplaix <kit-ty-kate@outlook.com>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
4 months agoCygwin: console: Do not unmap shared console memory belonging to ctty.
Takashi Yano [Fri, 1 Mar 2024 10:05:36 +0000 (19:05 +0900)]
Cygwin: console: Do not unmap shared console memory belonging to ctty.

In the condition that console setup for CTTY and close run at the
sametime, accessing shared console memory which is already unmapped
may occur. With this patch, to avoid this race issue, shared console
memory which belongs to contorolling terminal (CTTY) is kept mapped
as before.
Addresses: https://cygwin.com/pipermail/cygwin/2024-February/255561.html

Fixes: 3721a756b0d8 ("Cygwin: console: Make the console accessible from other terminals.")
Reported-by: Kate Deplaix <kit-ty-kate@outlook.com>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
4 months ago bump DLL version to 3.5.2
Corinna Vinschen [Tue, 27 Feb 2024 11:22:50 +0000 (12:22 +0100)]
 bump DLL version to 3.5.2

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: add release text for getgrent local SAM enumeration patch cygwin-3.5.1
Corinna Vinschen [Mon, 26 Feb 2024 09:15:06 +0000 (10:15 +0100)]
Cygwin: add release text for getgrent local SAM enumeration patch

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: getgrent/getpwent: avoid local enumeration on DCs
Corinna Vinschen [Tue, 20 Feb 2024 22:54:25 +0000 (23:54 +0100)]
Cygwin: getgrent/getpwent: avoid local enumeration on DCs

...if we're supposed to enumerate the AD accounts anyway.  This
avoids some useless duplication.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: getgrent: fix local SAM enumeration on domain member machines
Corinna Vinschen [Tue, 20 Feb 2024 22:51:33 +0000 (23:51 +0100)]
Cygwin: getgrent: fix local SAM enumeration on domain member machines

Don't skip output of local SAM groups on domain member machines.
They can have valid, user-defined groups in their SAM.  Just
skip builtin groups if we're enumerating AD as well.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: passwd/group: drop Capability SIDs
Corinna Vinschen [Tue, 20 Feb 2024 16:25:23 +0000 (17:25 +0100)]
Cygwin: passwd/group: drop Capability SIDs

Capability SIDs (S-1-15-3-...) have been introduced with
Windows 10 1909.  They don't resolve with LookupAccountSid.
We don't need them and they don't map gracefully into out
POSIX account namespace.  Also, add code to make sure to
filter them out *iff* they become resolvable at one point.

While at it, slightly reorder code for non-resolving SIDs
by authority values.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: Map ERROR_NO_SUCH_DEVICE and ERROR_MEDIA_CHANGED to ENODEV
Christian Franke [Fri, 23 Feb 2024 18:01:09 +0000 (19:01 +0100)]
Cygwin: Map ERROR_NO_SUCH_DEVICE and ERROR_MEDIA_CHANGED to ENODEV

If a removable (USB) device is disconnected after opening its raw
device, R/W attempts fail with ERROR_NO_SUCH_DEVICE(433).  If the
raw device of a partition is used, ERROR_MEDIA_CHANGED(1110) is
returned instead.  Both are mapped to ENODEV(19) because <errno.h>
does not offer a value which better matches ERROR_MEDIA_CHANGED.

Signed-off-by: Christian Franke <christian.franke@t-online.de>
4 months agoCygwin: add newgrp release notes
Corinna Vinschen [Sat, 24 Feb 2024 12:12:00 +0000 (13:12 +0100)]
Cygwin: add newgrp release notes

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: newgrp: only allow group from supplementary group list
Corinna Vinschen [Sat, 24 Feb 2024 11:59:28 +0000 (12:59 +0100)]
Cygwin: newgrp: only allow group from supplementary group list

Windows only allows to set the primary group to a group already
present in the TOKEN_GROUP list.  Cygwin OTOH fakes success at
setgid() time, to allow a subsequent call to setuid() to do
the actual account switching.  To have a sane behaviour in the
command line tool, check group membership and disallow to switch
to groups other than those already present in the user token.

Fixes: 8bd56ec873453 ("Cygwin: newgrp: first full version")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: newgrp: fix invalid usage of argv
Corinna Vinschen [Sat, 24 Feb 2024 09:46:54 +0000 (10:46 +0100)]
Cygwin: newgrp: fix invalid usage of argv

Fix an error message accessing argv[1] even after it has been
potentially moved.  Print group name from group DB instead.

Fixes: 8bd56ec873453 ("Cygwin: newgrp: first full version")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: strptime: add release note
Corinna Vinschen [Wed, 21 Feb 2024 19:00:29 +0000 (20:00 +0100)]
Cygwin: strptime: add release note

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: strptime: fix am/pm handling
Corinna Vinschen [Wed, 21 Feb 2024 18:54:20 +0000 (19:54 +0100)]
Cygwin: strptime: fix am/pm handling

The %p format specifier is handled immediately.  It requires
that tm_hour is already set.  This falls flat in case the am/pm
marker preceeds the time specification.  Locales with am/pm
marker preceeding time spec by default exist (e. g. ko_KR).

Also, the code expects that tm_hour might be set to an invalid
value because the %p specifier is used in conjunction with %H.
But this usage is invalid in itself and now catched as error
condition after commit 343a2a558153 ("Cygwin: strptime: make
sure to fail on invalid input digits").

Change the %H/%I/%p handling according to GLibC, i. e.

- fix tm_hour for pm only if the time value has been specified
  as 12 hour time %I, and

- perform the fixup only after the entire input has been scanned.
  This decouples the fixup from the %p position relativ to %I.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: strptime: make sure to fail on invalid input digits
Corinna Vinschen [Wed, 21 Feb 2024 18:39:37 +0000 (19:39 +0100)]
Cygwin: strptime: make sure to fail on invalid input digits

conv_num returns NULL if the input is invalid, e. g., the
numbers are out of range.  However, the code fails to test
this in a lot of places.

Rather than adding checks all over the place, rename conv_num
to __conv_num and create a wrapper macro conv_num to perform
the task of error checking.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
4 months agoCygwin: gettimeofday: allow tv NULL pointer
Corinna Vinschen [Tue, 20 Feb 2024 11:30:34 +0000 (12:30 +0100)]
Cygwin: gettimeofday: allow tv NULL pointer

Add a missing check for the struct timeval pointer being NULL.

Reported-by: 109224573 <109224573@qq.com>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoCygwin: pty: Re-fix the last bug regarding nat-pipe.
Takashi Yano [Fri, 16 Feb 2024 09:11:46 +0000 (18:11 +0900)]
Cygwin: pty: Re-fix the last bug regarding nat-pipe.

Fixes: f907b5f405a3 ("Cygwin: pty: Fix failure to revert from nat-pipe in disable_pcon.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: pty: Fix failure to revert from nat-pipe in disable_pcon.
Takashi Yano [Fri, 16 Feb 2024 08:15:29 +0000 (17:15 +0900)]
Cygwin: pty: Fix failure to revert from nat-pipe in disable_pcon.

Fixes: a9038789488e ("Cygwin: pty: Additional fix for transferring input at exit.");
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: console: Fix a bug that 64th console cannot be handled.
Takashi Yano [Thu, 15 Feb 2024 18:35:07 +0000 (03:35 +0900)]
Cygwin: console: Fix a bug that 64th console cannot be handled.

Fixes: 930e553da8e9 ("Cygwin: console: Unify EnumWindows() callback functions.");
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: console: Fix a bug that cannot handle consoles more than 32.
Takashi Yano [Thu, 15 Feb 2024 17:37:46 +0000 (02:37 +0900)]
Cygwin: console: Fix a bug that cannot handle consoles more than 32.

Fixes: 3721a756b0d8 ("Cygwin: console: Make the console accessible from other terminals.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoinclude/ansidecl.h: import from binutils-gdb
Corinna Vinschen [Mon, 12 Feb 2024 12:45:10 +0000 (13:45 +0100)]
include/ansidecl.h: import from binutils-gdb

Import include/ansidecl.h version from 2024-01-04,
binutils-gdb commit fd67aa1129fd.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
(cherry picked from commit 10c8c1cf4f94ed42c59015d7e972269724c451bf)

5 months agoCygwin: dumper: use void* in place of PTR
Corinna Vinschen [Mon, 12 Feb 2024 12:43:03 +0000 (13:43 +0100)]
Cygwin: dumper: use void* in place of PTR

The definition of PTR has been dropped from newer versions
of ansidecl.h.

Convert definition of print_section_name to use void * instead,
as required by bfd_map_over_sections.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
(cherry picked from commit dace0bfa6c8c0ee8e3acc190212e1dd9e5a19677)

5 months agoCygwin: console: Unify EnumWindows() callback functions.
Takashi Yano [Wed, 14 Feb 2024 13:57:48 +0000 (22:57 +0900)]
Cygwin: console: Unify EnumWindows() callback functions.

Previously, three similar callback fuctions were used in console
code. This patch unifies these functions to ease maintenance cost.

Fixes: 8aad3a7edeb2 ("Cygwin: console: Fix a problem that minor ID is incorrect in ConEmu.")
Suggested-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: pty: Make GNU screen and tmux work in ConEmu cygwin-connector.
Takashi Yano [Wed, 14 Feb 2024 14:10:04 +0000 (23:10 +0900)]
Cygwin: pty: Make GNU screen and tmux work in ConEmu cygwin-connector.

Fixes: 3721a756b0d8 ("Cygwin: console: Make the console accessible from other terminals.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: console: Fix a problem that minor ID is incorrect in ConEmu.
Takashi Yano [Tue, 13 Feb 2024 02:45:36 +0000 (11:45 +0900)]
Cygwin: console: Fix a problem that minor ID is incorrect in ConEmu.

Previously, minor device number of console was not assigned correctly
in ConEmu environment. This is because console window of ConEmu is
not enumerated by EnumWindows(). This patch fixes the issue.

Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: console: Make VMIN and VTIME work.
Takashi Yano [Tue, 13 Feb 2024 02:42:42 +0000 (11:42 +0900)]
Cygwin: console: Make VMIN and VTIME work.

Previously, VMIN and VTIME did not work at all. This patch fixes that.

Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: pty: Fix potential handle leak regarding CallNamedPipe().
Takashi Yano [Tue, 13 Feb 2024 02:36:05 +0000 (11:36 +0900)]
Cygwin: pty: Fix potential handle leak regarding CallNamedPipe().

In pty master_thread, 6 handles are duplicated when CallNamedPipe()
requests that. Though some of them are not used so should be closed,
they were not. This causes handle leak potentially.

Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: pty: Fix handle leak in master process.
Takashi Yano [Tue, 13 Feb 2024 02:17:46 +0000 (11:17 +0900)]
Cygwin: pty: Fix handle leak in master process.

If non-cygwin process is started in pty, closing from_master_nat
pipe handle was missing in fhandler_pty_slave::input_transfer().
This occured because the handle was duplicated but not closed.

https://github.com/msys2/msys2-runtime/issues/198

Fixes: 29431fcb5b14 ("Cygwin: pty: Inherit typeahead data between two input pipes.")
Reported-by: Hakkin Lain
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: fix typo in winjitdebug description
Corinna Vinschen [Sat, 3 Feb 2024 19:28:46 +0000 (20:28 +0100)]
Cygwin: fix typo in winjitdebug description

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoCygwin: document new winjitdebug option
Corinna Vinschen [Sat, 3 Feb 2024 18:54:31 +0000 (19:54 +0100)]
Cygwin: document new winjitdebug option

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoCygwin: reorder list of CYGWIN env var options alphabetically again
Corinna Vinschen [Sat, 3 Feb 2024 18:54:04 +0000 (19:54 +0100)]
Cygwin: reorder list of CYGWIN env var options alphabetically again

This has been turned upside down for a short while.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoCygwin: Do not show Error dialogs by default
Johannes Schindelin [Wed, 31 Mar 2021 09:38:41 +0000 (11:38 +0200)]
Cygwin: Do not show Error dialogs by default

...in a non-Cygwin child process.  Backported from MSYS2.
Downstream commit message follows.

In https://github.com/msys2/msys2-runtime/pull/18, we discussed a change
that would allow default Windows error handling of spawned processes to
kick in (such as registered JIT debuggers). We even agreed that it would
make sense to hide this functionality behind a flag, `winjitdebug`.

However, when this got upstreamed as 21ec498d7f (cygwin: use
CREATE_DEFAULT_ERROR_MODE in spawn, 2020-12-09), that flag was deemed
unnecessary.

But it would appear that it _is_ necessary: As reported in
https://github.com/msys2/MSYS2-packages/pull/2414#issuecomment-810841296
this new behavior is pretty disruptive e.g. in CI scenarios.

So let's introduce that `winjitdebug` flag (settable via the environment
variable `MSYS`) at long last.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoCygwin: net: Make if_nametoindex, etc. consistent with if_nameindex.
Takashi Yano [Sat, 3 Feb 2024 03:45:29 +0000 (12:45 +0900)]
Cygwin: net: Make if_nametoindex, etc. consistent with if_nameindex.

Currently, if_nametoindex() and if_indextoname() handle interface names
such as "ethernet_32777", while if_nameindex() returns the names such
as "{5AF7ACD0-D52E-4DFC-A4D0-54D3E6D6B2AC}". This patch unifies the
interface names to the latter.

Fixes: c356901f0d69 ("Rename if_indextoname to cygwin_if_indextoname (analag for if_nametoindex)")
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: Document recent bug fix in release note.
Takashi Yano [Sat, 3 Feb 2024 14:37:46 +0000 (23:37 +0900)]
Cygwin: Document recent bug fix in release note.

5 months agoCygwin: console: Avoid slipping past disable_master_thread check.
Takashi Yano [Fri, 2 Feb 2024 15:54:23 +0000 (00:54 +0900)]
Cygwin: console: Avoid slipping past disable_master_thread check.

If disable_master_thread flag is set between the code checking that
flag not be set and the code acquiring input_mutex, input record is
processed once after setting disable_master_thread flag. This patch
prevents that.

Fixes: d4aacd50e6cf ("Cygwin: console: Add missing input_mutex guard.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: console: Fix exit code for non-cygwin process.
Takashi Yano [Fri, 2 Feb 2024 04:59:19 +0000 (13:59 +0900)]
Cygwin: console: Fix exit code for non-cygwin process.

If non-cygwin process is executed in console, the exit code is not
set correctly. This is because the stub process for non-cygwin app
crashes in fhandler_console::set_disable_master_thread() due to NULL
pointer dereference. This bug was introduced by the commit:
3721a756b0d8 ("Cygwin: console: Make the console accessible from
other terminals."), that the pointer cons is accessed before fixing
when it is NULL. This patch fixes the issue.

Fixes: 3721a756b0d8 ("Cygwin: console: Make the console accessible from other terminals.")
Reported-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agobump DLL version to 3.5.1
Corinna Vinschen [Thu, 1 Feb 2024 10:09:16 +0000 (11:09 +0100)]
bump DLL version to 3.5.1

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoHide itoa, utoa, __itoa and __utoa in stdlib.h on Cygwin only cygwin-3.5.0
Christian Franke [Mon, 22 Jan 2024 18:11:20 +0000 (19:11 +0100)]
Hide itoa, utoa, __itoa and __utoa in stdlib.h on Cygwin only

These functions are non-standard and not exported by Cygwin.

Signed-off-by: Christian Franke <christian.franke@t-online.de>
5 months agoCygwin: machine/_arc4random.h: Fix copy/paste bug
Corinna Vinschen [Mon, 29 Jan 2024 15:42:50 +0000 (16:42 +0100)]
Cygwin: machine/_arc4random.h: Fix copy/paste bug

Remove a stray  __END_DECLS.  It didn't hurt in the only
(plain C) file including this header, but still...

Fixes: 030a762535c1 ("Cygwin: fix arc4random after fork(2)")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agossp: add support for _FORTIFY_SOURCE=3
Christian Franke [Fri, 26 Jan 2024 16:20:37 +0000 (17:20 +0100)]
ssp: add support for _FORTIFY_SOURCE=3

If specified, use __builtin_dynamic_object_size() instead of
__builtin_object_size() if supported (GCC 12.0 or later).
This enables buffer overflow checks if the buffer size is non-const
but known during runtime.
Use new macro __ssp_bos_known() instead of the (bos(p) != (size_t)-1)
checks.  The latter is no longer a compile time constant in all cases.
This avoids the generation of unused code.

Signed-off-by: Christian Franke <christian.franke@t-online.de>
5 months agoCygwin: fix arc4random after fork(2)
Corinna Vinschen [Mon, 29 Jan 2024 12:38:14 +0000 (13:38 +0100)]
Cygwin: fix arc4random after fork(2)

After using fork(), arc4random does not reseed itself, which
causes the results to become predictable.  Activate droppingfork-recognition

Fixes: e0fc33322d50 ("Delete Cygwin's arc4random in favor of new Newlib implementation")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoCygwin: redefine how to recognize forkee state
Corinna Vinschen [Mon, 29 Jan 2024 12:33:05 +0000 (13:33 +0100)]
Cygwin: redefine how to recognize forkee state

So far the global variable in_forkee only indicated if the
process is the child process during fork(2) itself.

However, we need an indicator accessible from plain C code
in newlib, allowing to check for a process being a forked
process all the time, after fork(2) succeeded.

Redefine bool in_forkee to int __in_forkee to allow exposing
it to newlib.  Redefine how it indicates fork state (not
forked, forking, forked).

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agoCygwin: Add a timeout to ensure we don't wait forever for dumper
Jon Turney [Tue, 23 Jan 2024 16:07:34 +0000 (16:07 +0000)]
Cygwin: Add a timeout to ensure we don't wait forever for dumper

5 months agolibgloss: start a MAINTAINERS file
Mike Frysinger [Wed, 24 Jan 2024 04:32:32 +0000 (23:32 -0500)]
libgloss: start a MAINTAINERS file

5 months agoCygwin: pthread: Fix handle leak in pthread_once.
Takashi Yano [Wed, 24 Jan 2024 13:33:12 +0000 (22:33 +0900)]
Cygwin: pthread: Fix handle leak in pthread_once.

If pthread_once() is called with pthread_once_t initialized using
PTREAD_ONCE_INIT, pthread_once does not release pthread_mutex used
internally. This patch fixes that by calling pthread_mutex_destroy()
in the thread which has called init_routine.

Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
5 months agoCygwin: Don't terminate via dumper
Jon Turney [Tue, 16 Jan 2024 16:12:51 +0000 (16:12 +0000)]
Cygwin: Don't terminate via dumper

A process which is exiting due to a core dumping signal doesn't
propagate the correct exist status after dumping core, because 'dumper'
itself forcibly terminates the process.

Use 'dumper -n' to avoid killing the dumped process, so we continue to
the end of signal_exit(), to exit with the 128+signal exit status.

Busy-wait in exec_prepared_command() in an attempt to reliably notice
the dumper attaching, so we don't get stuck there.

Also: document these important facts for custom uses of error_start.

5 months agolibgloss: merge cr16 into top-level Makefile
Mike Frysinger [Sun, 21 Jan 2024 04:47:12 +0000 (23:47 -0500)]
libgloss: merge cr16 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A cr16-elf build shows installed objects & libs produce same code.

The test targets were dropped as they didn't actually work -- there
is no test.o rule in here.

5 months agoconfigure.ac: configurable tooldir install path
Neal Frager [Thu, 11 Jan 2024 18:30:19 +0000 (18:30 +0000)]
configure.ac: configurable tooldir install path

This patch is required to fix how the newlib headers are installed
when using a sysroot install directory.

The cross compiler expects headers to be in
.../host/usr/arm-none-eabi/sysroot/usr/include/newlib.h
by default newlib installed the headers into
.../host/usr/arm-none-eabi/sysroot/usr/arm-none-eabi/include/newlib.h

${exec_prefix} provides the .../host/usr/arm-none-eabi/sysroot path
${target_noncanonical} provides an extra arm-none-eabi/ that must be removed.

With this patch, users can specify the tooldir path that is needed.

Signed-off-by: Neal Frager <neal.frager@amd.com>
Co-developed-by: Chris Wardman <cjwfirmware@vxmdesign.com>
5 months agolibgloss: pru: Trim crt0-minrt.o
Dimitar Dimitrov [Mon, 22 Jan 2024 16:11:36 +0000 (18:11 +0200)]
libgloss: pru: Trim crt0-minrt.o

Strip a few more instructions from crt0-minrt.S:
  - Remove "halt" and rely on the infinite loop after main()'s return.
  - Remove main()'s argc and argv argument initialization.  Host loader
    does not set them, and typical firmware does not use them, either.
  - Remove the __dso_handle symbol.

This should be safe because the default crt0.S is fully standards
compliant.  Whereas crt0-minrt.S has been documented from the beginning
to intentionally miss features in order to reduce firmware size, while
still enabling typical PRU firmware to operate.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
5 months agolibgloss: merge pru into top-level Makefile
Dimitar Dimitrov [Mon, 22 Jan 2024 16:11:35 +0000 (18:11 +0200)]
libgloss: merge pru into top-level Makefile

Avoid a recursive make to speed things up a bit.  This change was
inspired by the recent similar patch for c6x:
https://sourceware.org/pipermail/newlib/2023/020869.html

While at it, fork crt0-minrt.S into a separate source file instead of
relying on a predefined macro to generate two different object files.
This improves clarity, simplifies the build rules, and would allow
further optimization in crt0-minrt.S to be implemented more cleanly.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
5 months agoCygwin: seekdir: don't set errno
Corinna Vinschen [Mon, 22 Jan 2024 18:59:09 +0000 (19:59 +0100)]
Cygwin: seekdir: don't set errno

Commit 3f3bd1010455 ("* Throughout, use __try/__except/__endtry blocks [...]")
introduced setting EINVAL, marked as "Diagnosis".  The reason
for this is lost in time and space, but looks very much like
a debug helper which was supposed to be removed before release.
It's rather pointless, so remove it.

Fixes: 3f3bd1010455 ("* Throughout, use __try/__except/__endtry blocks [...]")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
5 months agonewlib: docs: add "Function " to every function node
Mike Frysinger [Fri, 5 Jan 2024 05:01:23 +0000 (00:01 -0500)]
newlib: docs: add "Function " to every function node

When creating a split manual with one-node-per-page, the main index.html
ends up getting clobbered by the page for the index() function because
it uses "@node index" which, for html, also creates an index.html page.
To remedy this, add "Function " to every function node so now we output
"Function-index.html" and avoid clobbering.  It also namespaces every
other function and helps make sure we don't clobber anything else.

Otherwise, there isn't really much rendering difference as @node text
is mostly internal.  Node title text comes from @section instead.

5 months agonewlib: docs: print the function index
Mike Frysinger [Fri, 5 Jan 2024 05:00:22 +0000 (00:00 -0500)]
newlib: docs: print the function index

The generated function documentation makes sure to include entries for
every function in the function index via @findex, but then the manuals
forget to actually print the index.

5 months agolibgloss: doc: unify duplicate copyright/license content
Mike Frysinger [Wed, 27 Dec 2023 00:53:51 +0000 (19:53 -0500)]
libgloss: doc: unify duplicate copyright/license content

Use @copying & @insertcopying directives to define the copyright &
license block only once, and then inserted at the same places as it
was before.

5 months agolibgloss: doc: fix dir info entry usage
Mike Frysinger [Wed, 27 Dec 2023 00:09:29 +0000 (19:09 -0500)]
libgloss: doc: fix dir info entry usage

Wrapping the dir info with @ifnottex means it's included in all other
outputs like html which makes no sense.  Switch to @direntry which is
specific for this content and is automatically written to the output
that makes sense, and omitted from the rest.

5 months agoAdd Dimitar Dimitrov as maintainer for pru
Jeff Johnston [Mon, 22 Jan 2024 18:57:50 +0000 (13:57 -0500)]
Add Dimitar Dimitrov as maintainer for pru

6 months agolibgloss: xc16x: drop old stub port
Mike Frysinger [Sat, 30 Dec 2023 02:29:44 +0000 (21:29 -0500)]
libgloss: xc16x: drop old stub port

First off, afaict, xc16x support has never been merged into gcc.
Upstream merge isn't strictly required for new ports, but it seems
like people should merge eventually in some shape, and considering
the libgloss port was merged in 2009, ~14 years seems like plenty
of leeway.  Which is to say, no one else can seem to build this
which makes updating & testing things very difficult.

Ignoring that, from what I can tell, this port has only ever built
and installed a crt0.o file.  It defines libeval.a & libcygmon.a
targets, but nothing depends on them.  The SCRIPTS & BSP variables
are always empty.  The original port merge define these in the
configure script as substitutes, but never set the vars, so they
were always replaced with nothing.

I actually broke this build 2 years ago when merging the configure
up a level in commit 30f244155b8e82aa948ddcb8f2350654fc1adb92
("libgloss: merge subdirs that have unique makefile_frags up a
level").  I saw that it was exporting a bunch of vars in the
configure script, but never set them, so I incorrectly assumed
they weren't used.  Which means the Makefile has been setting them
to invalid values like literal @bsp_list@ and @script_list@.

Considering no one has complained, I have to assume no one cares
about this port, and we can all stop wasting time on it.

6 months agolibgloss: merge microblaze into top-level Makefile
Mike Frysinger [Sun, 31 Dec 2023 06:51:47 +0000 (01:51 -0500)]
libgloss: merge microblaze into top-level Makefile

Avoid a recursive make to speed things up a bit.
A microblaze-elf build shows installed objects & libs produce same code.

6 months agolibgloss: microblaze: use port-specific sbrk
Mike Frysinger [Sun, 31 Dec 2023 07:07:04 +0000 (02:07 -0500)]
libgloss: microblaze: use port-specific sbrk

The default search path uses the common sbrk.c over the microblaze
one, so add a rule to force the microblaze variant instead.

6 months agolibgloss: merge tic6x into top-level Makefile
Mike Frysinger [Sun, 31 Dec 2023 06:41:30 +0000 (01:41 -0500)]
libgloss: merge tic6x into top-level Makefile

Avoid a recursive make to speed things up a bit.
A tic6x-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge sparc_leon into top-level Makefile
Mike Frysinger [Fri, 29 Dec 2023 07:10:36 +0000 (02:10 -0500)]
libgloss: merge sparc_leon into top-level Makefile

Avoid a recursive make to speed things up a bit.
A sparc-elf build shows installed objects & libs produce same code.

6 months agolibgloss: sparc_leon: workaround newer newlib pthread APIs
Mike Frysinger [Fri, 29 Dec 2023 22:52:31 +0000 (17:52 -0500)]
libgloss: sparc_leon: workaround newer newlib pthread APIs

Fix a compile error due to duplicate pthreads types:
.../libgloss/sparc_leon/mutex.c:50:8: error: conflicting types for ‘pthread_mutex_t’; have ‘struct pthread_mutex’
   50 |      } pthread_mutex_t;
In file included from .../newlib/libc/include/sys/types.h:221,
                 from .../libgloss/sparc_leon/mutex.c:26:
.../newlib/libc/include/sys/_pthreadtypes.h:154:20: note: previous declaration of ‘pthread_mutex_t’ with type ‘pthread_mutex_t’ {aka ‘long unsigned int’}
  154 | typedef __uint32_t pthread_mutex_t;      /* identify a mutex */

.../libgloss/sparc_leon/mutex.c:57:8: error: conflicting types for ‘pthread_mutexattr_t’; have ‘struct <anonymous>’
   57 |      } pthread_mutexattr_t;
../newlib/libc/include/sys/_pthreadtypes.h:169:3: note: previous declaration of ‘pthread_mutexattr_t’ with type ‘pthread_mutexattr_t’
  169 | } pthread_mutexattr_t;

6 months agolibgloss: merge sparc into top-level Makefile
Mike Frysinger [Fri, 29 Dec 2023 05:42:13 +0000 (00:42 -0500)]
libgloss: merge sparc into top-level Makefile

Avoid a recursive make to speed things up a bit.
A sparc-elf build shows installed objects & libs produce same code.

6 months agolibgloss: sparc: always install erc32 sim files
Mike Frysinger [Fri, 29 Dec 2023 06:31:10 +0000 (01:31 -0500)]
libgloss: sparc: always install erc32 sim files

These are already compiled for all sparc targets, so we might as well
install them all the time so they can be used with the erc32 sim.

6 months agolibgloss: merge ft32 into top-level Makefile
Mike Frysinger [Fri, 29 Dec 2023 05:16:46 +0000 (00:16 -0500)]
libgloss: merge ft32 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A ft32-elf build shows installed objects & libs produce same code.

Mention of ft32-elf-common.ld is dropped as it has never existed
in the tree, and has been an (ignored) error in the past.

6 months agolibgloss: ft32: delete unused/invalid assembly file
Mike Frysinger [Fri, 29 Dec 2023 05:20:10 +0000 (00:20 -0500)]
libgloss: ft32: delete unused/invalid assembly file

This is a .c file, not assembly, and it's a duplicate (same content)
as the existing sim-lseek.c.  Delete it since it's unused and doesn't
actually compile.

6 months agolibgloss: merge fr30 into top-level Makefile
Mike Frysinger [Fri, 29 Dec 2023 05:11:38 +0000 (00:11 -0500)]
libgloss: merge fr30 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A fr30-elf build shows installed objects & libs produce same code.

A lot of code seems like it hasn't been migrated, but that's because
it's all disabled/unused (i.e. all the test & mon code).  It looks
like a lot of copy & paste holdovers from the original port.

6 months agolibgloss: merge or1k into top-level Makefile
Mike Frysinger [Fri, 29 Dec 2023 05:00:11 +0000 (00:00 -0500)]
libgloss: merge or1k into top-level Makefile

Avoid a recursive make to speed things up a bit.
A or1k-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge epiphany into top-level Makefile
Mike Frysinger [Thu, 28 Dec 2023 01:45:25 +0000 (20:45 -0500)]
libgloss: merge epiphany into top-level Makefile

Avoid a recursive make to speed things up a bit.
A epiphany-elf build shows installed objects & libs produce same code.

6 months agolibgloss: xtensa: fix CPPFLAGS clobbering
Mike Frysinger [Wed, 27 Dec 2023 07:42:30 +0000 (02:42 -0500)]
libgloss: xtensa: fix CPPFLAGS clobbering

No sub-Makefile.inc file should ever set CPPFLAGS directly.  That is
a global/common variable.  Instead, ports should set the per-target
CPPFLAGS to include what they need.

Further, per-target CPPFLAGS should respect $(AM_CPPFLAGS).

6 months agolibgloss: merge visium into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 06:05:23 +0000 (01:05 -0500)]
libgloss: merge visium into top-level Makefile

Avoid a recursive make to speed things up a bit.
A visium-elf build shows installed objects & libs produce same code.

6 months agolibgloss: visium: fix sbrk search path
Mike Frysinger [Wed, 27 Dec 2023 06:20:50 +0000 (01:20 -0500)]
libgloss: visium: fix sbrk search path

The code was loading the common ../sbrk.c file rather than the visium
specific sbrk.c due to VPATH setup.  Add an explicit rule for this one
file so we make sure the correct one is used.

6 months agolibgloss: merge m32r into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 05:54:13 +0000 (00:54 -0500)]
libgloss: merge m32r into top-level Makefile

Avoid a recursive make to speed things up a bit.
A m32r-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge rl78 into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 05:43:25 +0000 (00:43 -0500)]
libgloss: merge rl78 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A rl78-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge rx into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 05:38:25 +0000 (00:38 -0500)]
libgloss: merge rx into top-level Makefile

Avoid a recursive make to speed things up a bit.
A rx-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge xstormy16 into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 05:18:12 +0000 (00:18 -0500)]
libgloss: merge xstormy16 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A xstormy16-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge nds32 into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 04:59:00 +0000 (23:59 -0500)]
libgloss: merge nds32 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A nds32le-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge mcore into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 04:44:44 +0000 (23:44 -0500)]
libgloss: merge mcore into top-level Makefile

Avoid a recursive make to speed things up a bit.
A mcore-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge mn10200 into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 04:26:40 +0000 (23:26 -0500)]
libgloss: merge mn10200 into top-level Makefile

Avoid a recursive make to speed things up a bit.
Untested, but follows the same pattern as mn10300, but simpler.

6 months agolibgloss: merge mn10300 into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 04:13:37 +0000 (23:13 -0500)]
libgloss: merge mn10300 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A mn10300-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge i386 into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 03:39:05 +0000 (22:39 -0500)]
libgloss: merge i386 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A i386-elf build shows installed objects & libs produce same code other
than a rename from cygmon-gmon.o & cygmon-salib.o to i386_libcygmon_a-*.o
due to the use of custom CPPFLAGS in here.

6 months agolibgloss: merge frv into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 03:29:20 +0000 (22:29 -0500)]
libgloss: merge frv into top-level Makefile

Avoid a recursive make to speed things up a bit.
A frv-elf build shows installed objects & libs produce same code.

6 months agolibgloss: merge msp430 into top-level Makefile
Mike Frysinger [Wed, 27 Dec 2023 02:11:58 +0000 (21:11 -0500)]
libgloss: merge msp430 into top-level Makefile

Avoid a recursive make to speed things up a bit.
A msp430-elf build shows installed objects & libs produce same code.

6 months agolibgloss: msp430: delete custom .S.o rule
Mike Frysinger [Wed, 27 Dec 2023 03:17:22 +0000 (22:17 -0500)]
libgloss: msp430: delete custom .S.o rule

This was added to specify -Wa,-gdwarf2 when compiling the assembly
files.  Considering the size of these .S files, it seems unnecessary
overkill and complicates the build system.  All but one of these
compile down to 6 or fewer lines, and those hardly need extra debug
for anyone who is poking msp430 assembly.  The 1 file that is larger
than that (crt_move_highdata.S) is still <15 insns.

This will also simplify merging it into the top-level Makefile.

6 months agolibgloss: msp430: split up crt0.S source
Mike Frysinger [Wed, 27 Dec 2023 03:01:30 +0000 (22:01 -0500)]
libgloss: msp430: split up crt0.S source

The build system compiles crt0.S many times to produce independent
object files by defining different -DLxxx symbols for each.  This
complicates the build, and has led to some bugs in the source and
build (see the previous cleanup commits in here).  The crt_bss.S
file has also been duplicated with crt0.S leading to confusion as
to which one is the "real" one.  The only reason to keep them in
one file is to make management of the section numbers when calling
START_CRT_FUNC a little easier, but that seems trivial to check
with a quick grep across all the files.

Considering how complicated the build is now, and the bugs we've
had as a result, split the crt0.S file up into multiple source
files so we don't have to compile it multiple times.  This will
also simplify merging it into the top-level Makefile.

6 months agolibgloss: msp430: delete stub crt_init.o
Mike Frysinger [Wed, 27 Dec 2023 02:56:00 +0000 (21:56 -0500)]
libgloss: msp430: delete stub crt_init.o

This object is created by compiling crt0.S with -DLinit, but there
has never been an "#if Linit" check in crt0.S, so this has always
produced a stub object file.  Drop compiling it entirely.

6 months agolibgloss: msp430: delete outdated/wrong code
Mike Frysinger [Wed, 27 Dec 2023 02:46:59 +0000 (21:46 -0500)]
libgloss: msp430: delete outdated/wrong code

The #if 0 & comment imply this code doesn't exist and is never used,
except there's another #if Lrun_fini_array section below which *does*
define this function, which makes this code comment confusing.  This
seems to be a hold over of the cleanup of the minrt code in the old
commit 884b05b54e4595433c85f8ca9820e88b4c723e38 ("MSP430: Remove
.init/.fini sections").

This page took 0.077002 seconds and 5 git commands to generate.