On Sat, Sep 23, 2023 at 09:31:16PM +0200, Mark Kettenis wrote:
> Newer U-Boot versions have started to require LTO in order to save
> some space for certain targets.  I don't see a downside in enabling it
> as the cross compiler won't be used to build OpenBSD binaries.
> 
> ok?

if atf, m1n1, u-boot, newlib still build, sure
ok jsg@

> 
> 
> Index: devel/arm-none-eabi/gcc/Makefile
> ===================================================================
> RCS file: /cvs/ports/devel/arm-none-eabi/gcc/Makefile,v
> retrieving revision 1.3
> diff -u -p -r1.3 Makefile
> --- devel/arm-none-eabi/gcc/Makefile  21 Sep 2023 09:49:48 -0000      1.3
> +++ devel/arm-none-eabi/gcc/Makefile  23 Sep 2023 19:25:41 -0000
> @@ -3,7 +3,7 @@ COMMENT=      gcc for ${CONFIG} cross-develop
>  VERSION=     12.2.0
>  DISTNAME=    gcc-${VERSION}
>  PKGNAME=     ${CONFIG}-gcc-${VERSION}
> -REVISION=    0
> +REVISION=    1
>  
>  USE_NOEXECONLY=      Yes
>  
> @@ -55,7 +55,6 @@ CONFIGURE_ARGS+=--enable-languages=${LAN
>               --with-gmp=${LOCALBASE}         \
>               --with-newlib                   \
>               --disable-libcc1                \
> -             --disable-lto                   \
>               --enable-cpp                    \
>               --without-isl                   \
>               --without-zstd
> Index: devel/arm-none-eabi/gcc/pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/devel/arm-none-eabi/gcc/pkg/PLIST,v
> retrieving revision 1.1
> diff -u -p -r1.1 PLIST
> --- devel/arm-none-eabi/gcc/pkg/PLIST 22 Apr 2023 16:23:25 -0000      1.1
> +++ devel/arm-none-eabi/gcc/pkg/PLIST 23 Sep 2023 19:25:41 -0000
> @@ -11,6 +11,7 @@
>  @bin bin/${CONFIG}-gcov
>  @bin bin/${CONFIG}-gcov-dump
>  @bin bin/${CONFIG}-gcov-tool
> +@bin bin/${CONFIG}-lto-dump
>  libexec/gcc/
>  libexec/gcc/${CONFIG}/
>  libexec/gcc/${CONFIG}/${VERSION}/
> @@ -23,7 +24,10 @@ libexec/gcc/${CONFIG}/${VERSION}/install
>  @bin libexec/gcc/${CONFIG}/${VERSION}/install-tools/fixincl
>  libexec/gcc/${CONFIG}/${VERSION}/install-tools/mkheaders
>  libexec/gcc/${CONFIG}/${VERSION}/install-tools/mkinstalldirs
> +libexec/gcc/${CONFIG}/${VERSION}/liblto_plugin.la
> +@so libexec/gcc/${CONFIG}/${VERSION}/liblto_plugin.so
>  @bin libexec/gcc/${CONFIG}/${VERSION}/lto-wrapper
> +@bin libexec/gcc/${CONFIG}/${VERSION}/lto1
>  libexec/gcc/${CONFIG}/${VERSION}/plugin/
>  @bin libexec/gcc/${CONFIG}/${VERSION}/plugin/gengtype
>  @man man/man1/${CONFIG}-cpp.1
> @@ -35,3 +39,4 @@ libexec/gcc/${CONFIG}/${VERSION}/plugin/
>  @comment @man man/man7/fsf-funding.7
>  @comment @man man/man7/gfdl.7
>  @comment @man man/man7/gpl.7
> +@man man/man1/${CONFIG}-lto-dump.1
> 
> 

Reply via email to