Commit 77147c8e authored by Vasili Skurydzin's avatar Vasili Skurydzin Committed by Commit Bot

ppc64, aix: eliminate cctest failures due to gcc bug on Aix

test/cctest/compiler/value-helper.h: fix due to a GCC bug affecting padding
of aggregate data types on Aix.

GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61976

Change-Id: I303b09a9a84b372033c16cbf157d5fc2bf25f93a
Reviewed-on: https://chromium-review.googlesource.com/1244616Reviewed-by: 's avatarDaniel Clifford <danno@chromium.org>
Reviewed-by: 's avatarJunliang Yan <jyan@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#56274}
parent 734626b9
......@@ -345,7 +345,7 @@ template <typename type>
struct FloatCompareWrapper {
type value;
explicit FloatCompareWrapper(type x) : value(x) {}
bool operator==(FloatCompareWrapper<type> other) const {
bool operator==(FloatCompareWrapper<type> const& other) const {
return std::isnan(value)
? std::isnan(other.value)
: value == other.value &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment