Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Issue 1837563002: bit_cast: check is_trivially_copyable (Closed)

Created:
4 years, 9 months ago by JF
Modified:
4 years, 8 months ago
Reviewers:
Nico
CC:
chromium-reviews, Mostyn Bramley-Moore
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bit_cast: check is_trivially_copyable Instead of using a misleading comment about POD-ness. R=thakis@chromium.org Committed: https://crrev.com/d81c1ced74e63e4bf50019ffd2d398def71bdae7 Cr-Commit-Position: refs/heads/master@{#385281}

Patch Set 1 #

Patch Set 2 : Comments: no libc++ version check; nicer to clang. #

Total comments: 1

Patch Set 3 : Fix __has_feature #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -3 lines) Patch
M base/bit_cast.h View 1 2 2 chunks +30 lines, -3 lines 0 comments Download
M base/compiler_specific.h View 1 2 1 chunk +6 lines, -0 lines 1 comment Download

Messages

Total messages: 36 (12 generated)
JF
4 years, 9 months ago (2016-03-25 20:27:45 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837563002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837563002/1
4 years, 9 months ago (2016-03-25 20:28:11 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-25 21:39:47 UTC) #5
JF
Ping.
4 years, 8 months ago (2016-03-30 22:27:55 UTC) #6
Nico
I don't think you need the libc++ version check -- we don't support building with ...
4 years, 8 months ago (2016-03-30 22:42:34 UTC) #7
JF
On 2016/03/30 22:42:34, Nico wrote: > I don't think you need the libc++ version check ...
4 years, 8 months ago (2016-03-30 22:52:20 UTC) #8
Nico
On 2016/03/30 22:52:20, JF wrote: > On 2016/03/30 22:42:34, Nico wrote: > > I don't ...
4 years, 8 months ago (2016-03-31 01:07:19 UTC) #9
JF
On 2016/03/31 01:07:19, Nico wrote: > On 2016/03/30 22:52:20, JF wrote: > > On 2016/03/30 ...
4 years, 8 months ago (2016-03-31 21:08:07 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837563002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837563002/20001
4 years, 8 months ago (2016-03-31 21:09:00 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/114711)
4 years, 8 months ago (2016-03-31 21:23:22 UTC) #14
Nico
lgtm with obvious change https://codereview.chromium.org/1837563002/diff/20001/base/bit_cast.h File base/bit_cast.h (right): https://codereview.chromium.org/1837563002/diff/20001/base/bit_cast.h#newcode74 base/bit_cast.h:74: #elif defined(__has_feature) && __has_feature(is_trivially_copyable) this ...
4 years, 8 months ago (2016-03-31 22:28:15 UTC) #15
JF
PTAL at the updated change, I think handling __has_feature this way is cleaner.
4 years, 8 months ago (2016-03-31 22:50:17 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837563002/40001
4 years, 8 months ago (2016-03-31 22:50:24 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_TIMED_OUT, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/46414)
4 years, 8 months ago (2016-04-01 06:48:55 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837563002/40001
4 years, 8 months ago (2016-04-01 16:28:50 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 18:14:58 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837563002/40001
4 years, 8 months ago (2016-04-05 17:11:00 UTC) #27
Nico
I'm very sorry about the huge amounts of back and forth for such a tiny ...
4 years, 8 months ago (2016-04-05 18:43:38 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-05 20:52:12 UTC) #29
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d81c1ced74e63e4bf50019ffd2d398def71bdae7 Cr-Commit-Position: refs/heads/master@{#385281}
4 years, 8 months ago (2016-04-05 20:53:25 UTC) #31
Mostyn Bramley-Moore
@Nico: it seems that this breaks gcc builds, because std::is_trivially_copyable is not available. Investigating workarounds... ...
4 years, 8 months ago (2016-04-05 21:44:43 UTC) #32
JF
On 2016/04/05 18:43:38, Nico (hiding until Fri) wrote: > I'm very sorry about the huge ...
4 years, 8 months ago (2016-04-05 21:49:31 UTC) #33
JF
On 2016/04/05 21:44:43, Mostyn Bramley-Moore wrote: > @Nico: it seems that this breaks gcc builds, ...
4 years, 8 months ago (2016-04-05 21:52:16 UTC) #34
JF
4 years, 8 months ago (2016-04-05 22:22:32 UTC) #35
Message was sent while issue was closed.
On 2016/04/05 21:52:16, JF wrote:
> On 2016/04/05 21:44:43, Mostyn Bramley-Moore wrote:
> > @Nico: it seems that this breaks gcc builds, because
> std::is_trivially_copyable
> > is not available.  Investigating workarounds...
> 
> Which version of GCC and which version of libstdc++?
> 
> Do we have that version on any of the bots?

Moving discussion to: https://codereview.chromium.org/1863523005/

Powered by Google App Engine
This is Rietveld 408576698