On Tue, Apr 5, 2016 at 4:32 AM, Corinna Vinschen
wrote:
> And reverted. This patch is the culprit for the problem reported in
> https://cygwin.com/ml/cygwin/2016-04/msg00085.html
>
> Can you please take another look, Peter?
Huh, that's odd...
I'll take a look when I
ed from pipe.cc (fhandler_pipe::open) after a null
check.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/external.cc | 2 +-
winsup/cygwin/fhandler_dsp.cc | 55 ---
winsup/cygwin/fhandler_process.cc | 11 +---
winsup/c
AC_WINDOWS_LIBS when using with-cross-bootstrap
configure: regenerate
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/configure | 19 +++
winsup/configure.ac | 8 +---
winsup/cygserver/configure| 2 ++
winsup/cygserver/configure.a
G++ 6.0 asserts that the "this" pointer is non-null for member
functions.
Refactor methods that check if this is non-null to resolve this.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
Just wanted to make sure that this approach looked good before I fix all the
p
On Fri, Apr 1, 2016 at 11:10 AM, Corinna Vinschen
wrote:
> As I mentioned in my first reply, I'd prefer if the callers check the
> pointer explicitly. Changing the methods to static methods seems ...
> wrong. Ugly, if you don't mind me saying so.
Fair enough, I'll
On Fri, Apr 1, 2016 at 9:12 AM, Yaakov Selkowitz wrote:
> See https://gcc.gnu.org/gcc-6/porting_to.html, section named "Optimizations
> remove null pointer checks for this".
If there's an better way to do this, I'm all ears.
However, it seems to come down to either making
On Fri, Apr 1, 2016 at 8:16 AM, Corinna Vinschen
wrote:
> Can we please fold the --without-mingw-progs and --without-library-checks
> into a single option? Given the task is basically the same, the option
> name should reflect something along the lines of
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/doc/aclocal.m4 | 875
winsup/doc/configure| 95 -
winsup/doc/configure.ac | 5 +-
winsup/lsaauth/aclocal.m4 | 875
.
malloc_wrapper.cc: ditto.
malloc_wrapper.cc (malloc_init): ditto.
spawn.cc (spawnve): ditto.
syscalls.cc (setsid): ditto.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/acconfig.h| 5 -
winsup/cygwin/config.h.in | 5 -
winsup/cygwin/dcrt0.cc
HAVE_BUILTIN_MEMTEST and AC_ALLOCA were removed in 4bd8eb7d1b.
Cleanup leftover references.
winsup/cygwin/ChangeLog
acconfig.h: remove HAVE_BUILTIN_MEMTEST
config.h.in: regenerate
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/acconfig.h | 3 ---
winsup/cygwin/confi
Use the 3-arg form of AC_DEFINE.
winsup/cygwin/ChangeLog:
acconfig.h: Remove DEBUGGING define.
configure.ac: Add description to DEBUGGING define.
config.h.in: Regenerate.
configure: Ditto.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/acconfig.h | 3 ---
winsup/
AC_WINDOWS_LIBS when using without-library-checks
configure: regenerate
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/configure | 14 ++
winsup/configure.ac | 5 -
winsup/cygserver/configure| 2 ++
winsup/cygserver/configure.ac | 9 ++---
: Call _pinfo::exists staticly.
times.cc (clock_gettime): Call _pinfo::exists staticly.
times.cc (clock_getcpuclockid): Call _pinfo::exists staticly.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
I'm not 100% sure that the __reg1/2->__reg2/3 changes are necessary,
but i'm pretty
The type for the ip_tos member was typoed, fix it.
winsup/cygwin/ChangeLog:
include/netinet/ip.h: fix type of ip_tos
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/include/netinet/ip.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/i
On Wed, Mar 30, 2016 at 7:24 AM, Corinna Vinschen
<corinna-cyg...@cygwin.com> wrote:
> Hi Peter,
>
> On Mar 19 13:45, Peter Foley wrote:
>> G++ 6.0 can assert that the this pointer is non-null for member functions.
>
> Maybe, but if it compains, it's bound to find fa
On Wed, Mar 30, 2016 at 8:11 AM, Corinna Vinschen
wrote:
> Applied with changes. The below check was skewed.
>
>> +if test "x$with_mingw_progs" != xyes; then
>> +AC_CONFIG_SUBDIRS([utils lsaauth])
>> +fi
Whoops, good catch.
On Wed, Mar 30, 2016 at 8:31 AM, Corinna Vinschen
wrote:
> Are you sure this works as desired? In my standard cross build
> environment, the only -B option added here is
>
> --preprocessor-arg=-B/build/cygwin/x86_64/vanilla/x86_64-pc-cygwin/newlib/
The only case in
On Sat, Mar 19, 2016 at 1:45 PM, Peter Foley <pefol...@pefoley.com> wrote:
> G++ 6.0 can assert that the this pointer is non-null for member functions.
>
> winsup/cygserver/ChangeLog
> process.cc (submission_loop::request_loop): Remove nonnull check on this.
> process.cc (sy
/ChangeLog
mkvers.sh: Manually specify preprocessor based on $CC
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/mkvers.sh | 21 -
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/winsup/cygwin/mkvers.sh b/winsup/cygwin/mkvers.sh
index d
Add an option to not require a mingw compiler when bootstrapping a cross
toolchain.
Defaults to existing behavior.
Also update some obsolete macros.
winsup/ChangeLog
configure.ac: Add option to skip building programs that require mingw.
configure: Regenerate.
Signed-off-by: Peter Foley <pe
winsup/cygwin/ChangeLog
configure.ac: don't check AC_WINDOWS_LIBS when using with-only-headers
configure: regenerate
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/Makefile.in| 5 +
winsup/configure | 13 +
winsup/configure.ac
On Wed, Mar 23, 2016 at 6:41 AM, Corinna Vinschen
wrote:
> Done yesterday.
Thanks!
On Mon, Mar 21, 2016 at 9:49 PM, Yaakov Selkowitz wrote:
> I really don't see the point of this. I maintain the pseudo-official cross
> toolchains for Cygwin, and I just remove what is not needed for
> cross-compiling from the DESTDIR after install. This is also a fairly
On Mon, Mar 21, 2016 at 5:03 PM, Peter Foley <pefol...@pefoley.com> wrote:
> On Mon, Mar 21, 2016 at 4:32 PM, Corinna Vinschen
> <corinna-cyg...@cygwin.com> wrote:
>> Still hmm at this point. AFAICS we only need the handful of definitions
>> for new and
On Mon, Mar 21, 2016 at 4:32 PM, Corinna Vinschen
wrote:
> Still hmm at this point. AFAICS we only need the handful of definitions
> for new and delete operators, nothing else. Is there perhaps a way to
> define this stuff by ourselves to avoid any requirement for
'
winsup/cygwin/ChangeLog
autoload.cc: Load DnsFree rather then DnsRecordListFree
libc/minires-os-if.cc (cygwin_query): Use DnsFree rather then DnsRecordListFree
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/autoload.cc | 2 +-
winsup/cygwin/libc/minires-os-if
On Mon, Mar 21, 2016 at 4:32 PM, Corinna Vinschen
wrote:
> Still hmm at this point. AFAICS we only need the handful of definitions
> for new and delete operators, nothing else. Is there perhaps a way to
> define this stuff by ourselves to avoid any requirement for
On Mon, Mar 21, 2016 at 3:52 PM, Corinna Vinschen
wrote:
> While you're at it, ideally we make ourselves independent of the MingW
> header version and use DnsFree directly, replacing DnsRecordListFree
> in autoload.cc and libc/minires-os-if.c, no?
Hmm, it isn't
On Mon, Mar 21, 2016 at 3:25 PM, Corinna Vinschen
wrote:
> Yes, but that's time-consuming since there's no automatism. Give me
> a few days.
Sure, I can just carry my local patch until you get a chance to work on it.
Thanks,
Peter
On Mon, Mar 21, 2016 at 3:52 PM, Corinna Vinschen
wrote:
> While you're at it, ideally we make ourselves independent of the MingW
> header version and use DnsFree directly, replacing DnsRecordListFree
> in autoload.cc and libc/minires-os-if.c, no?
Alright, I'll work on
On Mon, Mar 21, 2016 at 3:55 PM, Corinna Vinschen
wrote:
> But using -std= when building Cygwin wouldn't change the fact that we
> might need this delete anyway for applications built with -std=c++14
> or do I miss something?
This patch is specifically for building
On Mon, Mar 21, 2016 at 3:58 PM, Corinna Vinschen
wrote:
> Again, I'm cross compiling all the time since I build Cygwin on Linux
> for development and package building, and I'm certianly not the only
> person doing that. This is the default case. Not building utils
On Mon, Mar 21, 2016 at 3:47 PM, Corinna Vinschen
<corinna-cyg...@cygwin.com> wrote:
> On Mar 21 13:15, Peter Foley wrote:
>> When cross-compiling a toolchan targeting cygwin, building cygwin1.dll
>> requires libstdc++v3 to be built.
>
> Building cygwin1.dll d
On Mon, Mar 21, 2016 at 3:30 PM, Corinna Vinschen
wrote:
> I'm not sure this is the right thing to do. I'm cross compiling
> Cygwin all the time, and I certainly need the mingw compiler to
> build the utils and lsaauth dir. In what case do you not need them,
> and
On Mon, Mar 21, 2016 at 3:24 PM, Corinna Vinschen
<corinna-cyg...@cygwin.com> wrote:
> On Mar 21 13:15, Peter Foley wrote:
>> /home/peter/cross/src/cygwin/winsup/cygwin/libc/minires-os-if.c:289:
>> undefined reference to `DnsFree'
>>
>> winsup/cygwin/Change
lt changes to
c++14 in gcc 6.0
I'm not sure what level of -std would be appropriate by default though.
Thanks,
Peter Foley
On Mon, Mar 21, 2016 at 1:13 PM, Corinna Vinschen
wrote:
> But we export these functions as fallback functions to the applications.
> See libstdcxx_wrapper.cc and the end of cxx.cc. While the comment in
> cxx.cc claims that this should "not be used in practice", there
/cygwin/ChangeLog
malloc_wrapper.cc (posix_memalign): Remove always true nonnull check.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
newlib/libc/include/stdlib.h| 2 +-
winsup/cygwin/malloc_wrapper.cc | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/newli
Don't require a mingw compiler when bootstrapping a cross toolchain.
Also update some obsolete macros.
winsup/ChangeLog
configure.ac: Only build lsaauth and utils when compiling natively
configure: Regenerate.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/configure
winsup/cygwin/ChangeLog
configure.ac: don't check AC_WINDOWS_LIBS when using with-only-headers
configure: regenerate
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/Makefile.in| 5 +
winsup/configure | 15 ++-
winsup/config
/home/peter/cross/src/cygwin/winsup/cygwin/libc/minires-os-if.c:289:
undefined reference to `DnsFree'
winsup/cygwin/ChangeLog
Makefile.in: Add libdnsapi to DLL_IMPORTS
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/Makefile.in | 3 ++-
1 file changed, 2 insertions
, Makefile.tpl and
configure.ac from gcc and regenerate Makefile.in and configure is
1.4M, so too large to send to the mailing list.
Would it be possible for someone to sync the latest toplevel files from gcc?
Thanks,
Peter Foley
On Sun, Mar 20, 2016 at 7:28 AM, Corinna Vinschen
wrote:
> This looks incomplete to me. Don't we have to export the symbol?
I don't believe so.
As I understand it, if you're overriding the standard c++ delete
implementation, starting with c++14, you also need to
On Mon, Mar 21, 2016 at 11:05 AM, Corinna Vinschen
wrote:
> Yes, but in glibc this is combined with a header disallowing a non-NULL
> argument. This is missing in newlib yet. I guess this would make the
> change acceptable. Alternatively a __try/__except block in
>
On Sun, Mar 20, 2016 at 7:15 AM, Corinna Vinschen
wrote:
> Eh, what?!? How on earth can gcc assert memptr is always non-NULL?
> An application can call posix_memalign(NULL, 4096, 4096) just fine,
> can't it? If so, *memptr = res crashes.
>
So, it looks like what's
On Sun, Mar 20, 2016 at 5:55 AM, Corinna Vinschen
<corinna-cyg...@cygwin.com> wrote:
> There's an assign.txt document you (and potentiall your employer) can
> sign and send as PDF. It's usually rather painless.
>
>
> Thanks,
> Corinna
Copyright assignment form signed and
When compiling with -std=c++14 (the default for gcc 6.0+), the sized
deallocation operator must be defined to prevent undefined symbols when
linking.
winsup/cygwin/ChangeLog:
cxx.cc (operator delete(void *p, size_t)): Define.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/
winsup/cygwin/pinfo.cc:465:14: error: the compiler can assume that the
address of 'tc' will always evaluate to 'true' [-Werror=address]
winsup/cygwin/ChangeLog
* pinfo.cc (_pinfo::set_ctty): remove always true check.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/pi
Recent versions of autoconf define datadir/infodir in terms of
datarootdir. Add it.
winsup/ChangeLog
* Makefile.in: define datarootdir
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/Makefile.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/winsup/Makefile.in b/
Fix a strict aliasing error detected by gcc 6.0+
winsup/cygwin/ChangeLog
* pinfo.cc (winpids::enum_process): Fix strict aliasing.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/pinfo.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/winsup/
.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygserver/process.cc| 3 ---
winsup/cygserver/threaded_queue.cc | 4
winsup/cygwin/fhandler_dsp.cc | 4 ++--
winsup/cygwin/path.cc | 2 +-
winsup/cygwin/pinfo.cc | 16
GCC 6.0+ can assert that this argument is nonnull.
Remove the unnecessary check to fix a warning.
winsup/cygwin/ChangeLog
malloc_wrapper.cc (posix_memalign): Remove always true nonnull check.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/malloc_wrapper.cc | 3 +--
winsup/cygwin/ChangeLog
* thread.cc (semaphore::open): Fix mistaken conditional.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/thread.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 5
]
u->initial_sp = (char *) __builtin_frame_address (1);
winsup/cygwin/ChangeLog
lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Initialize initial_sp
with nullptr.
Signed-off-by: Peter Foley <pefol...@pefoley.com>
---
winsup/cygwin/lib/_cygwin_crt0_common.cc | 5 ++---
1 file c
GCC 6.0+ warns on misleading indentation, so fix it.
winsup/cygserver/ChangeLog
* sysv_msg.cc (msgsnd): Fix misleading indentation.
* sysv_msg.cc (msgrcv): Ditto.
* sysv_sem.cc (semop): Ditto.
winsup/cygwing/ChangeLog
* syscalls.cc (getpriority): Fix misleading indentation.
Signed-off-by: Peter
On Mon, Mar 14, 2016 at 12:23 PM, Peter Foley <pefol...@pefoley.com> wrote:
> Fix undefined libtool macros _LT_DECL_SED and _LT_PROG_ECHO_BACKSLASH
>
> newlib/ChangeLog
> * configure: Regenerate.
>
> ---
> newlib/configure | 9339
> ++
to skip tests that
involve linking.
Note: I submitted a previous patch that included this change, however only part
of that patch was applied (the removal of AC_ALLOCA) so I am resubmitting the
GCC_NO_EXECUTABLES part of the patch.
Thanks,
Peter Foley
winsup/cygserver/ChangeLog:
2011-02-11 Peter
57 matches
Mail list logo