Page MenuHomeFreeBSD

arm: Use -O2 instead of -O as optimization flag
ClosedPublic

Authored by diizzy on Jul 21 2019, 10:37 PM.
Tags
None
Referenced Files
F176288535: D21021.id60017.diff
Sat, Oct 17, 4:50 PM
F176288523: D21021.diff
Sat, Oct 17, 4:50 PM
Unknown Object (File)
Tue, Oct 6, 12:27 PM
Unknown Object (File)
Tue, Sep 29, 10:32 PM
Unknown Object (File)
Mon, Sep 28, 2:03 AM
Unknown Object (File)
Mon, Sep 28, 12:25 AM
Unknown Object (File)
Sat, Sep 26, 11:00 PM
Unknown Object (File)
Sat, Sep 26, 6:51 PM

Details

Summary

When using Clang -O is equivalent to -O2, change it -O2 to make it consistent with other platforms.
Reference: https://clang.llvm.org/docs/ClangCommandLineReference.html#optimization-level

Test Plan

Tested on armv7, Orange Pi PC

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Seems reasonable. Was originally introduced in rS173375 but Clang is the default compiler and we can assume that contemporary GCC won't have "the -O2 issues."

This revision is now accepted and ready to land.Jul 22 2019, 1:42 AM
This revision was automatically updated to reflect the committed changes.