Configure tests for e.g. -mavxvnni don't guarantee the flag actually works
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox157 fixed)
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(2 files)
There's a gap between compiler support for those flags and them actually working... with GCC. Because GCC produces assembly and calls GAS to generate the machine code, actual support for the corresponding instructions depend on what GAS supports, and the GCC and GAS versions are not necessarily lined up properly for that.
GCC does disable support at build time when it detects GAS doesn't support the flags at GCC build time, but the GAS used at GCC build time and Firefox build time can be different. And thus we can end up in a situation where configure says we can use -mavxvnni, but the build fails because GAS doesn't understand the operands produced by GCC.
| Assignee | ||
Comment 1•12 days ago
|
||
There's a gap between compiler support for those flags and them actually
working... with GCC. Because GCC produces assembly and calls GAS to
generate the machine code, actual support for the corresponding
instructions depend on what GAS supports, and the GCC and GAS versions
are not necessarily lined up properly for that.
GCC does disable support at build time when it detects GAS doesn't
support the flags at GCC build time, but the GAS used at GCC build time
and Firefox build time can be different. And thus we can end up in a
situation where configure says we can use -mavxvnni, but the build fails
because GAS doesn't understand the operands produced by GCC.
| Assignee | ||
Comment 2•12 days ago
|
||
Updated•12 days ago
|
https://hg.mozilla.org/mozilla-central/rev/740716cdb8dd
https://hg.mozilla.org/mozilla-central/rev/7d97c162e9be
Description
•