aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-25Cygwin: Have cygmagic not create output if an error occursJon Turney1-3/+14
Improve the 'cygmagic' script, so it doesn't create the output file if an error occurs, even in one of the backtick-enclosed pipelines it runs.
2020-11-25Cygwin: Use standard CXXFLAGS when compiling localtime_wrapper.cJon Turney1-1/+1
This has an separate, explicit compilation rule which omits CXXFLAGS, so expected flags like '-g -O2' aren't being used.
2020-11-25Cygwin: Drop libgmon.a build dependency on gcrt0.oJon Turney1-1/+1
libgmon.a depends on gcrt0.o, but doesn't include it.
2020-11-23Cygwin: pty: Fix minor style issue.Takashi Yano via Cygwin-patches1-1/+1
2020-11-23Cygwin: pty: Discard "OSC Ps; ? BEL/ST" in pseudo console output.Takashi Yano via Cygwin-patches1-0/+30
- If vim is executed in WSL in mintty, some garbage string caused by "OSC Ps;? BEL/ST" will be shown in some situations. This patch fixes the issue by removing "OSC Ps;? BEL/ST" from pseudo console output.
2020-11-23Cygwin: pty: Fix a bug in the code removing "CSI > Pm m".Takashi Yano via Cygwin-patches1-0/+1
- The code added by 8121b606e843c001d5ca5213d24099e04ebc62ca has a bug which fails to remove multiple "CSI > Pm m" sequences. This patch fixes the bug.
2020-11-20Cygwin: Remove surplus autoconf auxiliary filesJon Turney4-3855/+0
Since we are now only configuring once, in winsup, with AC_CONFIG_AUX_DIR(..), the auxiliary files are taken from the top-level. (Previously we had a random assorment of AC_CONFIG_AUX_DIR(..) and AC_CONFIG_AUX_DIR(../..) in winsup subdirectories, so auxiliary files would be taken from winsup or the top-level.)
2020-11-20Cygwin: Remove recursive configureJon Turney28-24227/+1389
There's doesn't seem to be much use in independently distributing these subdirectories, so allowing them to be independently configured seems pointless and overcomplicated. The order in which the subdirectories are built is still a little odd, as cygwin is linked with libcygserver, and cygserver is then linked with cygwin. So, we build the cygwin directory first, which invokes a build of libcygserver in the cygserver directory, and then build in the cygserver directory to build the cygserver executable. Drop AC_CONFIGURE_ARGS, since we don't need to recursively call configure with the same arguments anymore. Slightly refine when we build utils: Previously we didn't build any utils if MinGW compiler use was avoided, now we just avoid building those utils which require that compiler. Greatly simplify how winsup_srcdir and target_builddir are set, since we're only configuring from one directory. (These are still kept absolute, since we don't adjust them where used for being used in a subdirectory). Remove configure.cygwin and put it's (greatly reduced) contents inline in the one place it's used now. Remove generated configure and aclocal.m4 in subdirectories.
2020-11-19Cygwin: fhandler_fifo::cleanup_handlers: improve efficiencyKen Brown1-9/+4
Traverse the fifo_client_handler list from the top down to try to avoid copying.
2020-11-18Cygwin: Testsuite Makefile cleanupJon Turney1-13/+2
Drop unused variables CC_FOR_TARGET, GCC_INCLUDE, ALL_CFLAGS Stop exporting CC, CFLAGS Drop unused, empty targets force, dll_ofiles, all_target
2020-11-18Cygwin: Fix 'make check' in utilsJon Turney3-10/+12
This has a test of the path translation code used in various utilities (mount, cygpath, strace). MOUNT_BINARY is replaced with the absence of MOUNT_TEXT since 26e0b37e. The issys member of mnt_t struct was removed in b677a99b. > $ make check [...] > total tests: 63 > pass : 63 (100.0%) > fail : 0 (0.0%)
2020-11-18Cygwin: Drop duplicate C++ flags used to build utilsJon Turney1-1/+1
'-fno-exceptions -fno-rtti' are already present in the compile command COMPILE.cc set by Makefile.common, so we don't need to add them to CXXFLAGS as well.
2020-11-18Cygwin: Use grep in text mode to look for version stringsJon Turney1-1/+1
Invoke grep in text mode when looking for version strings inside the cygwin DLL, so it outputs something more informative than: Binary file ../cygwin/cygwin0.dll matches
2020-11-18RISC-V: Add machine-specific implementation for lrint[f], lround[f], ↵Kito Cheng10-3/+503
llrint[f] and llround[f].
2020-11-18RISC-V: Add machine-specific implementation for isnan[f] and copysign[f]Kito Cheng6-3/+237
2020-11-18RISC-V: Add missing compile rule for s_finite.c, sf_finite.c, s_isinf.c and ↵Kito Cheng2-3/+33
sf_isinf.c
2020-11-17malloc/nano-malloc: correctly check for out-of-bounds allocation reqsCorinna Vinschen3-2/+31
The overflow check in mEMALIGn erroneously checks for INT_MAX, albeit the input parameter is size_t. Fix this to check for __SIZE_MAX__ instead. Also, it misses to check the req against adding the alignment before calling mALLOc. While at it, add out-of-bounds checks to pvALLOc, nano_memalign, nano_valloc, and Cygwin's (unused) dlpvalloc. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-11-16Fix return type of __locale_ctype_ptr_l()Sebastian Huber1-1/+1
This prevents warnings like this: ctype.h:118:9: warning: return discards 'const' qualifier from pointer target type
2020-11-16Cygwin: testsuite: fix insecure usage of printf in libltpCorinna Vinschen1-1/+1
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2020-11-16libc/include/newlib.h: Fix C++ compilation issueJoel Sherrill1-2/+2
2020-11-16Cygwin: path_conv::eq_worker: add NULL pointer checksKen Brown1-2/+4
Don't call cstrdup on NULL pointers. This fixes a crash that was observed when cloning an fhandler whose path_conv member had freed its strings.
2020-11-12Cygwin: Fix testsuite tmpdir creation with non-default cygdrive prefixJon Turney2-5/+7
2020-11-09Cygwin: fhandler_fifo: reduce sizeKen Brown2-9/+14
Replace the 'WCHAR pipe_name_buf[48]' class member by 'PWCHAR pipe_name_buf', and allocate space for the latter as needed. Change the default constructor to accommodate this change, and add a destructor that frees the allocated space. Also change get_pipe_name and clone to accommodate this change.
2020-11-08Cygwin: Ensure temporary directory used by tests existsJon Turney3-4/+15
By default, libltp tests will create temporary files in a subdirectory of /tmp, which will (nowadays) be located relative to the test DLL (by assuming that it is in /bin). This will evaluate to the directory $target_builddir/winsup/tmp, which doesn't exist. The location used for these temporary files can be explicitly controlled by setting the TDIRECTORY env var. Arrange to set that env var to the /cygdrive path of a tmp subdirectory of the build directory. Unfortunately, libltp doesn't clean the temporary directory if TDIRECTORY is set, and some tests assume they are started in a clean directory, so we need to do that in tcl.
2020-11-08Cygwin: Set PATH for tests to pick up cygwin0.dllJon Turney1-0/+2
Set the PATH so that tests can pick up cygwin0.dll. Looks like this was dropped by accident in 2e488e95 ("Don't rely on in-build tools"), so restore it as it was prior to 9d89f634.
2020-11-08Cygwin: Check exit code of a test, rather than stdoutJon Turney1-7/+13
In winsup.exp, don't consider a command failed if it produced any output (e.g. if the compiler produced warnings). Instead check the exit code.
2020-11-08Cygwin: Use absolute path to libltp includesJon Turney1-1/+1
Use an absolute path to libltp includes, to allow for the fact that we'll be compiling tests in a subdirectory.
2020-11-08Cygiwn: Detect and use MinGW compilers for testsuite wrappersJon Turney4-4/+255
Drop MINGW_FE, which I can't find any trace of, and instead detect and use MinGW compilers. This requires adding AC_CANONICAL_TARGET, to set $target_cpu.
2020-11-08Cygwin: Define target_builddir autoconf and Makefile variablesJon Turney3-0/+10
This is now required as cygwin_build is defined in terms of target_builddir. (Note that in other subdirectories, the autoconf variable target_builddir is AC_SUBST-ed as a side-effect of using a macro from winsup/acinclude.m4, which is perhaps less than ideal)
2020-11-08Cygwin: Move adding libltp to VPATH after Makefile.commonJon Turney1-2/+2
Move adding libltp to the VPATH after Makefile.common, which sets VPATH.
2020-11-08Cygwin: Avoid 'Makefile.in seems to ignore the --datarootdir setting' warningJon Turney1-0/+1
Avoid a 'Makefile.in seems to ignore the --datarootdir setting' warning when configuring in testsuite directory.
2020-11-08Cygwin: Add rule to testsuite Makefile to regenerate it when neededJon Turney1-0/+3
2020-11-08Cygwin: Always configure in testsuite subdirectoryJon Turney3-18/+4
Doing this properly using AC_CONFIG_SUBDIRS is necessary to get the correct paths in flags given to the compiler specified in CC/CXX.
2020-11-08Cygwin: Add testsuite directory to autogen.shJon Turney3-832/+5
Also remove unneeded aclocal.m4 for an old aclocal version.
2020-11-06Cygwin: FIFO: update_my_handlers: fix handle leakKen Brown1-0/+1
2020-11-04Fix 32-bit integer overflow when calculating TZ rulesIvan Grokhotov1-1/+1
2020-11-02Cygwin: Drop passing '-c' compiler flag into gentls_offsetsJon Turney1-1/+1
That script appends a '-E', since we only use $(CC) to preprocess, and thus adding '-c' is having no effect.
2020-11-02Cygwin: Remove rules for building libcygwin_s.aJon Turney2-76/+0
Untouched since added in 66a83f3e, and described as 'non-working'.
2020-11-02Cygwin: Remove Makefile contents conditional on PREPROCESS, which is never ↵Jon Turney1-7/+0
defined
2020-11-02Cygwin: Drop autoconf variable all_hostJon Turney5-54/+2
The autoconf variable all_host is used to make building of the stub library used by the testsuite conditional on not cross-compiling. Make it unconditional, so we will notice if it's broken when cross-compiling.
2020-11-02Cygwin: Remove autoconf variable DLL_NAMEJon Turney3-9/+2
Remove autoconf variable DLL_NAME, which has a constant value which is only used in one place.
2020-11-02Cygwin: Drop AC_SUBST(build_exeext)Jon Turney1-2/+0
The autoconf variable build_exeext isn't defined, and (since the doc subdirectory doesn't build any executables) it's value isn't used.
2020-11-02Cygwin: Remove intro2man.stamp on cleanJon Turney1-2/+3
2020-10-30Revert "Cygwin: gendef generates sigfe.s and cygwin.def"Jon Turney1-2/+5
This reverts commit 74a164f1c162645f4389bbd9edb2f89a630853af. Shame we can't use '&:' for a grouped target here, since that requires GNU make 4.3
2020-10-29RISC-V: Fix wrong including file in s_isinf.cKito Cheng1-1/+1
2020-10-29RISC-V: NaN should return 0 for finite[f]Kito Cheng2-2/+2
2020-10-28Cygwin: Restore setting CC and CXX Makefile variablesJon Turney3-0/+10
b55e3f19 was a bit too aggressive in dropping, rather than just un-exporting these Makefile variables. We need to set these to the configured host compiler if we are cross-compiling, otherwise they default to the build compiler. Also export CC to the mkvers.sh script (which requires it since 4eca5e6a). It's unclear why we can't just cause windres to use the build 'cpp' as the pre-processor there.
2020-10-28libc/sys/rtems/include/machine/_types.h: Define daddr_t to be 64 bits for RTEMSJoel Sherrill1-0/+3
This type needs to be able to represent a position on a disk or file system.
2020-10-27Cygwin: fix return value of sqrtl on negative infinityKen Brown2-2/+8
The return value is now -NaN. This fixes a bug in the mingw-w64 code that was imported into Cygwin. The fix is consistent with Posix and Linux. It is also consistent with the current mingw-w64 code, with one exception: The mingw-w64 code sets errno to EDOM if the input is -NaN, but this appears to differ from Posix and Linux. Addresses: https://cygwin.com/pipermail/cygwin/2020-October/246606.html
2020-10-27Cygwin: pty: Disable ResizePseudoConsole() if stdout is redirected.Takashi Yano via Cygwin-patches3-2/+8
- Calling ResizePseudoConsole() generates some escape sequences. Due to this behaviour, if the output of non-cygwin app is piped to less, screen is sometimes distorted when the screen is resized. With this patch, ResizePseudoConsole() is not called if stdout is redirected.