Bug 146829 - Enable STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE for GCC
Summary: Enable STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE for GCC
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Csaba Osztrogonác
URL:
Keywords:
Depends on:
Blocks: 120785
  Show dependency treegraph
 
Reported: 2015-07-10 02:57 PDT by Csaba Osztrogonác
Modified: 2015-07-22 11:05 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.76 KB, patch)
2015-07-10 02:58 PDT, Csaba Osztrogonác
no flags Details | Formatted Diff | Diff
Patch (1.71 KB, patch)
2015-07-22 08:37 PDT, Csaba Osztrogonác
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Osztrogonác 2015-07-10 02:57:29 PDT
http://trac.webkit.org/changeset/155143 disabled STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE
on GCC builds due to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52702 .

But this bug is already solved long time ago, we already relies on newer GCC.
Comment 1 Csaba Osztrogonác 2015-07-10 02:58:21 PDT
Created attachment 256572 [details]
Patch
Comment 2 Darin Adler 2015-07-10 09:52:56 PDT
Comment on attachment 256572 [details]
Patch

What port is building with non-clang gcc? I’m not sure we should do the work to support that any more unless there is real benefit.
Comment 3 Csaba Osztrogonác 2015-07-10 09:54:35 PDT
(In reply to comment #2)
> Comment on attachment 256572 [details]
> Patch
> 
> What port is building with non-clang gcc? I’m not sure we should do the work
> to support that any more unless there is real benefit.

EFL and GTK.
Comment 4 Anders Carlsson 2015-07-10 10:38:07 PDT
Comment on attachment 256572 [details]
Patch

I think a better solution would be to just reimplement std::is_trivially_destructible in terms of std::has_trivial_destructor for MSVC and get rid of the compiler checks altogether.
Comment 5 Csaba Osztrogonác 2015-07-22 08:37:06 PDT
Created attachment 257273 [details]
Patch

Additionally removed the MSVC workaround since MSVC 2012 already supports std::is_trivially_destructible.
Comment 6 Csaba Osztrogonác 2015-07-22 08:41:57 PDT
(In reply to comment #5)
> Created attachment 257273 [details]
> Patch
> 
> Additionally removed the MSVC workaround since MSVC 2012 already supports
> std::is_trivially_destructible.

And now MSVC 2013 is mandatory - https://lists.webkit.org/pipermail/webkit-dev/2013-December/025941.html
Comment 7 Brent Fulgham 2015-07-22 09:50:51 PDT
Comment on attachment 257273 [details]
Patch

This looks good! Thanks.
Comment 8 WebKit Commit Bot 2015-07-22 11:05:32 PDT
Comment on attachment 257273 [details]
Patch

Clearing flags on attachment: 257273

Committed r187167: <http://trac.webkit.org/changeset/187167>
Comment 9 WebKit Commit Bot 2015-07-22 11:05:35 PDT
All reviewed patches have been landed.  Closing bug.