switch optimisation to O2

on average makes for faster and smaller code than O3
This commit is contained in:
Andrew Tridgell 2019-10-06 08:45:32 +11:00
parent ee25d05f3c
commit a452f8e4ed
9 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@ extern const AP_HAL::HAL &hal;
// we build this file with optimisation to lower the interrupt
// latency. This helps reduce the chance of losing an RC input byte
// due to missing a UART interrupt
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
static AP_IOMCU_FW iomcu;

View File

@ -16,7 +16,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#include "AP_Math.h"

View File

@ -2,7 +2,7 @@
* N dimensional matrix operations
*/
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#include "matrixN.h"

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#include <AP_HAL/AP_HAL.h>

View File

@ -18,7 +18,7 @@
#include "AP_Math.h"
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
/*
* The point in polygon algorithm is based on:

View File

@ -16,7 +16,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#include "AP_Math.h"

View File

@ -16,7 +16,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#include "AP_Math.h"

View File

@ -16,7 +16,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#include "AP_Math.h"

View File

@ -5,7 +5,7 @@
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#pragma GCC optimize("O0")
#else
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#endif
#include "SoloGimbalEKF.h"