Bug 146829

Summary: Enable STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE for GCC
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, andersca, bfulgham, commit-queue, kling, ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 120785    
Attachments:
Description Flags
Patch
none
Patch none

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.