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)

defect

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)
Severity: -- → S4
Priority: -- → P3
Assignee: nobody → iireland
Status: NEW → ASSIGNED
Flags: needinfo?(iireland)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: