[Webkit-unassigned] [Bug 163869] New: GCC warning in testb3.cpp testAbsArgWithEffectfulDoubleConversion
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 23 08:26:17 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=163869
Bug ID: 163869
Summary: GCC warning in testb3.cpp
testAbsArgWithEffectfulDoubleConversion
Classification: Unclassified
Product: WebKit
Version: Other
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at igalia.com
CC: ggaren at apple.com, keith_miller at apple.com
Since r207696 "Expand Trunc in B3 to support Double to Float":
[284/3418] Building CXX object Source/...akeFiles/testb3.dir/__/b3/testb3.cpp.o
../../Source/JavaScriptCore/b3/testb3.cpp: In function âvoid {anonymous}::testAbsArgWithEffectfulDoubleConversion(float)â:
../../Source/JavaScriptCore/b3/testb3.cpp:3832:38: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
CHECK(isIdentical(effect, fabs(a)));
^
../../Source/JavaScriptCore/b3/testb3.cpp:100:16: note: in definition of macro âCHECKâ
if (!!(x)) \
^
In file included from ../../Source/JavaScriptCore/b3/air/AirArg.h:31:0,
from ../../Source/JavaScriptCore/b3/air/AirCode.h:30,
from ../../Source/JavaScriptCore/b3/testb3.cpp:28:
../../Source/JavaScriptCore/b3/B3Common.h:67:13: note: candidate 1: bool JSC::B3::isIdentical(double, double)
inline bool isIdentical(double left, double right)
^~~~~~~~~~~
../../Source/JavaScriptCore/b3/B3Common.h:72:13: note: candidate 2: bool JSC::B3::isIdentical(float, float)
inline bool isIdentical(float left, float right)
^~~~~~~~~~~
../../Source/JavaScriptCore/b3/testb3.cpp: In function âvoid {anonymous}::testSqrtArgWithEffectfulDoubleConversion(float)â:
../../Source/JavaScriptCore/b3/testb3.cpp:4336:38: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
CHECK(isIdentical(effect, sqrt(a)));
^
../../Source/JavaScriptCore/b3/testb3.cpp:100:16: note: in definition of macro âCHECKâ
if (!!(x)) \
^
In file included from ../../Source/JavaScriptCore/b3/air/AirArg.h:31:0,
from ../../Source/JavaScriptCore/b3/air/AirCode.h:30,
from ../../Source/JavaScriptCore/b3/testb3.cpp:28:
../../Source/JavaScriptCore/b3/B3Common.h:67:13: note: candidate 1: bool JSC::B3::isIdentical(double, double)
inline bool isIdentical(double left, double right)
^~~~~~~~~~~
../../Source/JavaScriptCore/b3/B3Common.h:72:13: note: candidate 2: bool JSC::B3::isIdentical(float, float)
inline bool isIdentical(float left, float right)
^~~~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161023/09f80e3e/attachment.html>
More information about the webkit-unassigned
mailing list