Skip to content

Commit

Permalink
od: use -fipa-pta
Browse files Browse the repository at this point in the history
Improves performance of emulators (e.g. gambatte on rs90) at the cost of
slightly increased build times.

Per GCC documentation:

> Perform interprocedural pointer analysis and interprocedural modification and reference analysis.
> This option can cause excessive memory and compile-time usage on large compilation units.
> It is not enabled by default at any optimization level.

Signed-off-by: Gleb Mazovetskiy <[email protected]>
  • Loading branch information
glebm authored and pcercuei committed Feb 16, 2023
1 parent 9023683 commit 3bd800b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/od_gcw0_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BR2_GCC_VERSION_12_X=y
BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-mips-plt"
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_HOST_GDB=y
BR2_TARGET_OPTIMIZATION="-pipe"
BR2_TARGET_OPTIMIZATION="-pipe -fipa-pta"
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/output/ccache/gcw0"
BR2_CCACHE_BR_ONLY=y
Expand Down
2 changes: 1 addition & 1 deletion configs/od_lepus_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_HOST_GDB=y
BR2_PACKAGE_HOST_GDB_PYTHON3=y
BR2_GDB_VERSION_11=y
BR2_TARGET_OPTIMIZATION="-pipe"
BR2_TARGET_OPTIMIZATION="-pipe -fipa-pta"
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/output/ccache/lepus"
BR2_CCACHE_BR_ONLY=y
Expand Down
2 changes: 1 addition & 1 deletion configs/od_rs90_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-mips-plt"
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_HOST_GDB=y
BR2_GDB_VERSION_11=y
BR2_TARGET_OPTIMIZATION="-pipe"
BR2_TARGET_OPTIMIZATION="-pipe -fipa-pta"
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/output/ccache/rs90"
BR2_CCACHE_BR_ONLY=y
Expand Down

0 comments on commit 3bd800b

Please sign in to comment.