Page MenuHomeFreeBSD

compiler.mk: Update clang dependency from v6 to v10, clean up duplication
ClosedPublic

Authored by jrm on Jan 12 2021, 8:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 15 2024, 3:59 PM
Unknown Object (File)
Dec 20 2023, 3:11 AM
Unknown Object (File)
Nov 11 2023, 6:13 AM
Unknown Object (File)
Nov 10 2023, 10:08 AM
Unknown Object (File)
Nov 3 2023, 5:42 AM
Unknown Object (File)
Oct 10 2023, 5:13 AM
Unknown Object (File)
Oct 9 2023, 8:59 AM
Unknown Object (File)
Aug 1 2023, 1:57 AM
Subscribers

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jrm requested review of this revision.Jan 12 2021, 8:11 PM
jrm retitled this revision from compiler.mk: Update clang dependency from v10, clean up duplication to compiler.mk: Update clang dependency from v6 to v10, clean up duplication.
Mk/Uses/compiler.mk
174 ↗(On Diff #82170)

I'd usually put parenthesizes around the && blocks rather than trusting operator precedence.

179 ↗(On Diff #82170)

Does it make sense to remove this OBE case while you're here (or as a new review)?

jrm added inline comments.
Mk/Uses/compiler.mk
179 ↗(On Diff #82170)

I lean towards a separate review with some reviewers who work on other architectures, because I don't have access to most of the tier 2+ architectures for testing. Or, are you confident that it's no longer necessary?

Mk/Uses/compiler.mk
179 ↗(On Diff #82170)

Separate review is fine and probably necessary. It's not the case that all Tier 2 arches use clang because sparc64 exists (I keep forgetting it's still around in stable). This should be changed so all supported arches in 13 default to clang, but that will probably require testing.

jrm edited the test plan for this revision. (Show Details)
Mk/Uses/compiler.mk
174 ↗(On Diff #82170)

I just wanted to wait for the exp-run to finish before making any code changes. The exp-run does pass, but are you aware of an issue with operator precedence? Or, do you mean the ( ) improves readability?

Mk/Uses/compiler.mk
174 ↗(On Diff #82170)

IMO ( ) improves readability. I'd rather not have to think about any but the most trivial precedence rules (obviously a subjective thing) when reading large conditionals.

Incorporate Brooks' suggestion to add extra parentheses, so readers do not need to think about operator precedence

jrm marked 3 inline comments as done.Jan 21 2021, 3:05 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 21 2021, 5:48 PM
This revision was automatically updated to reflect the committed changes.