Page MenuHomeFreeBSD

Fix qmath(3) with new GCC
ClosedPublic

Authored by trasz on Aug 27 2019, 6:30 PM.
Tags
None
Referenced Files
F137003188: D21442.id61445.diff
Thu, Nov 20, 11:22 PM
F137001323: D21442.id61366.diff
Thu, Nov 20, 11:16 PM
F137001032: D21442.id61445.diff
Thu, Nov 20, 11:15 PM
F136999518: D21442.id61366.diff
Thu, Nov 20, 11:09 PM
F136999414: D21442.id.diff
Thu, Nov 20, 11:09 PM
F136999374: D21442.id.diff
Thu, Nov 20, 11:09 PM
F136997786: D21442.diff
Thu, Nov 20, 11:02 PM
F136997366: D21442.diff
Thu, Nov 20, 11:01 PM
Subscribers

Details

Summary

Fix build problems in qmath(3) with new GCC. Trivial, except for the signedness part in qmath.h.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26139
Build 24656: arc lint + arc unit

Event Timeline

sys/sys/qmath.h
270

Technically, shouldn't you cast it _before_ inverting it?

-(int64_t)(Q_ABS(iv) << Q_NFBITS(q))

Note that I'm committing it without waiting for a proper acceptance due to being a build fix.

sys/sys/qmath.h
270

Thanks; fixed.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 29 2019, 7:39 AM
This revision was automatically updated to reflect the committed changes.
trasz marked an inline comment as done.