public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Define non-inline destructor for filesystem_error
@ 2015-05-02 11:37 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2015-05-02 11:37 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

This fixes a linker warning on darwin, and helps compilation time and
object size on all targets by defining the key function in the
library, so the vtable and RTTI are only emitted once.

Tested x86_64-linux and powerpc-aix.

[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 1302 bytes --]

commit 8e3b9a3452172033918b80bc69d940538690bfcb
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Sat May 2 12:26:53 2015 +0100

    	* include/experimental/fs_path.h (filesystem_error::~filesystem_error):
    	Declare.
    	* src/filesystem/path.cc (filesystem_error::~filesystem_error):
    	Define.

diff --git a/libstdc++-v3/include/experimental/fs_path.h b/libstdc++-v3/include/experimental/fs_path.h
index 33a16db..d103312 100644
--- a/libstdc++-v3/include/experimental/fs_path.h
+++ b/libstdc++-v3/include/experimental/fs_path.h
@@ -531,6 +531,8 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
     : system_error(__ec, __what_arg), _M_path1(__p1), _M_path2(__p2)
     { }
 
+    ~filesystem_error();
+
     const path& path1() const noexcept { return _M_path1; }
     const path& path2() const noexcept { return _M_path2; }
     const char* what() const noexcept { return _M_what.c_str(); }
diff --git a/libstdc++-v3/src/filesystem/path.cc b/libstdc++-v3/src/filesystem/path.cc
index 7924732..a5441b9 100644
--- a/libstdc++-v3/src/filesystem/path.cc
+++ b/libstdc++-v3/src/filesystem/path.cc
@@ -26,6 +26,8 @@
 
 using std::experimental::filesystem::path;
 
+std::experimental::filesystem::filesystem_error::~filesystem_error() = default;
+
 constexpr path::value_type path::preferred_separator;
 
 path&

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-02 11:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02 11:37 [patch] Define non-inline destructor for filesystem_error Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).