Open Bug 1517209 Opened 5 years ago Updated 2 years ago

-Wtype-limits warnings with GCC 9

Categories

(Firefox Build System :: Toolchains, defect, P3)

64 Branch
defect

Tracking

(Not tracked)

People

(Reporter: jh, Unassigned)

References

Details

Attachments

(1 file)

Attached file type-limits.txt
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Steps to reproduce:

Comiles with GCC 9 SVN tree


Actual results:

Build failed on the  type-limits warnings



Expected results:

It should have worked :)
Blocks: build-gcc-9
Component: Untriaged → General
Product: Firefox → Firefox Build System
Could you please provide the error messages?
Flags: needinfo?(jh)
There are warnings in the attached type-limits.txt log file:

obj-firefox/dom/bindings/TestCodeGenBinding.cpp:8153:17: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
| static_assert(0 <= JSJitInfo::maxSlotIndex, "We won't fit");
|               ~~^~~~~~~~~~~~~~~~~~~~~~~~~~

Looks like the bindings code generator is producing some meaningless assertions that will always be true:

static_assert(0 <= JSJitInfo::maxSlotIndex, "We won't fit");
static_assert(0 < 1, "There is no slot for us");
Flags: needinfo?(jh)
Note that I discussed with GCC front-end folks to silence some of them.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88680
Keywords: in-triage
Component: General → Toolchains
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: in-triage
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: