Add noexcept to custom non-throwing new operators.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 24 Nov 2016 20:01:24 +0000 (12:01 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 24 Nov 2016 20:01:24 +0000 (12:01 -0800)
commitbbe910e6e1140cb484a74911f3cea854cf9e7e2a
treef1e36cce0d512302a559831c0df78c913e86303b
parent793c128d03113816db85e8d1fa0bcd4982e246ee
Add noexcept to custom non-throwing new operators.

Both libc++ and libstdc++ declare non-throwing new operators as
noexcept and overloads must also be noexcept.  This fixes a
-Wmissing-exception-spec warning with clang.

gdb/ChangeLog:

* common/new-op.c (operator new): Mark 'noexcept'.
(operator new[]): Likewise.
gdb/ChangeLog
gdb/common/new-op.c