This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch master
in repository libtool.

The following commit(s) were added to refs/heads/master by this push:
     new 4f47d556 ltmain: Pass through -fno-lto and -ffixed=*
4f47d556 is described below

commit 4f47d5565ff3324c3d300a2ae318c9f9981af227
Author: Marc <[email protected]>
AuthorDate: Thu Sep 10 21:19:40 2026 +0200

    ltmain: Pass through -fno-lto and -ffixed=*
    
    Reported: 
https://lists.gnu.org/archive/html/libtool-patches/2026-09/msg00000.html
    
    * build-aux/ltmain.in: Pass through -fno-lto and -ffixed=*.
    * NEWS: Update.
---
 NEWS                | 5 +++++
 build-aux/ltmain.in | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/NEWS b/NEWS
index 827c97aa..b702d93b 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,11 @@ NEWS - list of user-visible changes between releases of GNU 
Libtool
 
 * Noteworthy changes in release ?.? (????-??-??) [?]
 
+** New features:
+
+  - Pass through -fno-lto and -ffixed=* to disable link-time optimization
+    and reserve registers.
+
 ** Changes in supported systems or compilers:
 
   - Support AOCC Fortran compiler 'aof'.
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index af2f7560..0cf5aaf0 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5666,6 +5666,8 @@ func_mode_link ()
       # --sysroot=*          for sysroot support
       # --target=*           for target architecture support
       # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time 
optimization
+      # -fno-lto             disable link-time optimization
+      # -ffixed=*            reserve registers
       # -specs=*             GCC specs files
       # -stdlib=*            select c++ std lib with clang
       # -fdiagnostics-color* simply affects output
@@ -5687,6 +5689,7 @@ func_mode_link ()
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
       
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*|--target=*|
 \
       
-O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes|
 \
+      -fno-lto|-ffixed=*| \
       -stdlib=*|-resource-dir=*|-rtlib=*|--unwindlib=*| \
       -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
       
-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*|
 \

Reply via email to