Cygwin: update C++ dialect to gnu++14

Disable -std option since gnu++14 is default anyway, but keep
it available as comment.

Update dynamic exception specifications deprecated with
C++11 to C++11-introduced noexcept expression.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2020-05-30 19:41:18 +02:00
parent 0c5aab9c99
commit d6242d8733
3 changed files with 25 additions and 25 deletions

View File

@ -77,7 +77,7 @@ COMMON_CFLAGS=-MMD ${$(*F)_CFLAGS} -Werror -fmerge-constants -ftracer $(CCEXTRA)
ifeq ($(target_cpu),x86_64) ifeq ($(target_cpu),x86_64)
COMMON_CFLAGS+=-mcmodel=small COMMON_CFLAGS+=-mcmodel=small
endif endif
COMPILE.cc+=${COMMON_CFLAGS} -std=gnu++98 COMPILE.cc+=${COMMON_CFLAGS} # -std=gnu++14
COMPILE.c+=${COMMON_CFLAGS} COMPILE.c+=${COMMON_CFLAGS}
AR:=@AR@ AR:=@AR@

View File

@ -34,21 +34,21 @@ details. */
references to these operators toward the redirectors in the Cygwin DLL; this references to these operators toward the redirectors in the Cygwin DLL; this
way we can record what definitions were visible at final link time but still way we can record what definitions were visible at final link time but still
send all calls to the redirectors. */ send all calls to the redirectors. */
extern WEAK void *operator new(std::size_t sz) throw (std::bad_alloc) extern WEAK void *operator new(std::size_t sz) noexcept (false)
__asm__ (REAL_ZNWX); __asm__ (REAL_ZNWX);
extern WEAK void *operator new[](std::size_t sz) throw (std::bad_alloc) extern WEAK void *operator new[](std::size_t sz) noexcept (false)
__asm__ (REAL_ZNAX); __asm__ (REAL_ZNAX);
extern WEAK void operator delete(void *p) throw() extern WEAK void operator delete(void *p) noexcept (true)
__asm__ (REAL_ZDLPV); __asm__ (REAL_ZDLPV);
extern WEAK void operator delete[](void *p) throw() extern WEAK void operator delete[](void *p) noexcept (true)
__asm__ (REAL_ZDAPV); __asm__ (REAL_ZDAPV);
extern WEAK void *operator new(std::size_t sz, const std::nothrow_t &nt) throw() extern WEAK void *operator new(std::size_t sz, const std::nothrow_t &nt) noexcept (true)
__asm__ (REAL_ZNWX_NOTHROW_T); __asm__ (REAL_ZNWX_NOTHROW_T);
extern WEAK void *operator new[](std::size_t sz, const std::nothrow_t &nt) throw() extern WEAK void *operator new[](std::size_t sz, const std::nothrow_t &nt) noexcept (true)
__asm__ (REAL_ZNAX_NOTHROW_T); __asm__ (REAL_ZNAX_NOTHROW_T);
extern WEAK void operator delete(void *p, const std::nothrow_t &nt) throw() extern WEAK void operator delete(void *p, const std::nothrow_t &nt) noexcept (true)
__asm__ (REAL_ZDLPV_NOTHROW_T); __asm__ (REAL_ZDLPV_NOTHROW_T);
extern WEAK void operator delete[](void *p, const std::nothrow_t &nt) throw() extern WEAK void operator delete[](void *p, const std::nothrow_t &nt) noexcept (true)
__asm__ (REAL_ZDAPV_NOTHROW_T); __asm__ (REAL_ZDAPV_NOTHROW_T);
/* Avoid an info message from linker when linking applications. */ /* Avoid an info message from linker when linking applications. */

View File

@ -32,67 +32,67 @@ details. */
#define MANGLED_ZNAX_NOTHROW_T "___wrap__ZnajRKSt9nothrow_t" #define MANGLED_ZNAX_NOTHROW_T "___wrap__ZnajRKSt9nothrow_t"
#endif #endif
extern void *operator new(std::size_t sz) throw (std::bad_alloc) extern void *operator new(std::size_t sz) noexcept (false)
__asm__ (MANGLED_ZNWX); __asm__ (MANGLED_ZNWX);
extern void *operator new[](std::size_t sz) throw (std::bad_alloc) extern void *operator new[](std::size_t sz) noexcept (false)
__asm__ (MANGLED_ZNAX); __asm__ (MANGLED_ZNAX);
extern void operator delete(void *p) throw() extern void operator delete(void *p) noexcept (true)
__asm__ (_SYMSTR (__wrap__ZdlPv)); __asm__ (_SYMSTR (__wrap__ZdlPv));
extern void operator delete[](void *p) throw() extern void operator delete[](void *p) noexcept (true)
__asm__ (_SYMSTR (__wrap__ZdaPv)); __asm__ (_SYMSTR (__wrap__ZdaPv));
extern void *operator new(std::size_t sz, const std::nothrow_t &nt) throw() extern void *operator new(std::size_t sz, const std::nothrow_t &nt) noexcept (true)
__asm__ (MANGLED_ZNWX_NOTHROW_T); __asm__ (MANGLED_ZNWX_NOTHROW_T);
extern void *operator new[](std::size_t sz, const std::nothrow_t &nt) throw() extern void *operator new[](std::size_t sz, const std::nothrow_t &nt) noexcept (true)
__asm__ (MANGLED_ZNAX_NOTHROW_T); __asm__ (MANGLED_ZNAX_NOTHROW_T);
extern void operator delete(void *p, const std::nothrow_t &nt) throw() extern void operator delete(void *p, const std::nothrow_t &nt) noexcept (true)
__asm__ (_SYMSTR (__wrap__ZdlPvRKSt9nothrow_t)); __asm__ (_SYMSTR (__wrap__ZdlPvRKSt9nothrow_t));
extern void operator delete[](void *p, const std::nothrow_t &nt) throw() extern void operator delete[](void *p, const std::nothrow_t &nt) noexcept (true)
__asm__ (_SYMSTR (__wrap__ZdaPvRKSt9nothrow_t)); __asm__ (_SYMSTR (__wrap__ZdaPvRKSt9nothrow_t));
extern void * extern void *
operator new(std::size_t sz) throw (std::bad_alloc) operator new(std::size_t sz) noexcept (false)
{ {
return (*user_data->cxx_malloc->oper_new) (sz); return (*user_data->cxx_malloc->oper_new) (sz);
} }
extern void * extern void *
operator new[](std::size_t sz) throw (std::bad_alloc) operator new[](std::size_t sz) noexcept (false)
{ {
return (*user_data->cxx_malloc->oper_new__) (sz); return (*user_data->cxx_malloc->oper_new__) (sz);
} }
extern void extern void
operator delete(void *p) throw() operator delete(void *p) noexcept (true)
{ {
(*user_data->cxx_malloc->oper_delete) (p); (*user_data->cxx_malloc->oper_delete) (p);
} }
extern void extern void
operator delete[](void *p) throw() operator delete[](void *p) noexcept (true)
{ {
(*user_data->cxx_malloc->oper_delete__) (p); (*user_data->cxx_malloc->oper_delete__) (p);
} }
extern void * extern void *
operator new(std::size_t sz, const std::nothrow_t &nt) throw() operator new(std::size_t sz, const std::nothrow_t &nt) noexcept (true)
{ {
return (*user_data->cxx_malloc->oper_new_nt) (sz, nt); return (*user_data->cxx_malloc->oper_new_nt) (sz, nt);
} }
extern void * extern void *
operator new[](std::size_t sz, const std::nothrow_t &nt) throw() operator new[](std::size_t sz, const std::nothrow_t &nt) noexcept (true)
{ {
return (*user_data->cxx_malloc->oper_new___nt) (sz, nt); return (*user_data->cxx_malloc->oper_new___nt) (sz, nt);
} }
extern void extern void
operator delete(void *p, const std::nothrow_t &nt) throw() operator delete(void *p, const std::nothrow_t &nt) noexcept (true)
{ {
(*user_data->cxx_malloc->oper_delete_nt) (p, nt); (*user_data->cxx_malloc->oper_delete_nt) (p, nt);
} }
extern void extern void
operator delete[](void *p, const std::nothrow_t &nt) throw() operator delete[](void *p, const std::nothrow_t &nt) noexcept (true)
{ {
(*user_data->cxx_malloc->oper_delete___nt) (p, nt); (*user_data->cxx_malloc->oper_delete___nt) (p, nt);
} }