Open
Bug 1517209
Opened 5 years ago
Updated 2 years ago
-Wtype-limits warnings with GCC 9
Categories
(Firefox Build System :: Toolchains, defect, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: jh, Unassigned)
References
Details
Attachments
(1 file)
268.52 KB,
text/plain
|
Details |
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 :)
Updated•5 years ago
|
Comment 2•5 years ago
|
||
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)
Reporter | ||
Comment 3•5 years ago
|
||
Note that I discussed with GCC front-end folks to silence some of them. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88680
Updated•5 years ago
|
Component: General → Toolchains
Updated•5 years ago
|
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•