Closed
Bug 1669966
Opened 5 years ago
Closed 5 years ago
irregexp build failure on x86 with gcc 9.3.0: comparison of integer expressions of different signedness
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
83 Branch
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: nbp, Assigned: iain)
Details
Attachments
(1 file)
Compiling SpiderMonkey for x86 (arm-simulator build) produces the following error messages with gcc:
…/js/src/irregexp/util/VectorShim.h:72:24: error: comparison of integer expressions of different signedness: 'const size_t' {aka 'const unsigned int'} and 'int' [-Werror=sign-compare]
72 | MOZ_ASSERT(length_ <= std::numeric_limits<int>::max());
…/dist/include/mozilla/Likely.h:17:48: note: in definition of macro 'MOZ_UNLIKELY'
17 | # define MOZ_UNLIKELY(x) (__builtin_expect(!!(x), 0))
| ^
…/dist/include/mozilla/Assertions.h:386:23: note: in expansion of macro 'MOZ_CHECK_ASSERT_ASSIGNMENT'
386 | if (MOZ_UNLIKELY(!MOZ_CHECK_ASSERT_ASSIGNMENT(expr))) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
…/dist/include/mozilla/Assertions.h:404:31: note: in expansion of macro 'MOZ_ASSERT_HELPER1'
404 | #define MOZ_ASSERT_GLUE(a, b) a b
| ^
…/dist/include/mozilla/Assertions.h:412:5: note: in expansion of macro 'MOZ_ASSERT_GLUE'
412 | MOZ_ASSERT_GLUE( \
| ^~~~~~~~~~~~~~~
…/js/src/irregexp/util/VectorShim.h:72:5: note: in expansion of macro 'MOZ_ASSERT'
72 | MOZ_ASSERT(length_ <= std::numeric_limits<int>::max());
| ^~~~~~~~~~
Flags: needinfo?(iireland)
Reporter | ||
Updated•5 years ago
|
Severity: -- → S4
Priority: -- → P3
Assignee | ||
Comment 1•5 years ago
|
||
The same 'issue' exists in the upstream V8 code this was copied from: https://github.com/v8/v8/blob/c4a7bd869851ecbebc07e83db970c878174f134a/src/utils/vector.h#L49
Updated•5 years ago
|
Assignee: nobody → iireland
Status: NEW → ASSIGNED
Assignee | ||
Updated•5 years ago
|
Flags: needinfo?(iireland)
Pushed by iireland@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bf878ce3529b
Don't compare size_t to int r=nbp
Comment 3•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox83:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•