[gcc r17-2746] ada: adjust runtime flags used by the GPR file

Marc Poulhies via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:53c2caff2d09ac247840d16b03232effd4bd8ffa

commit r17-2746-g53c2caff2d09ac247840d16b03232effd4bd8ffa
Author: Marc Poulhiès <[email protected]>
Date:   Tue Jul 28 09:59:05 2026 +0200

    ada: adjust runtime flags used by the GPR file
    
    Adjust libgnat_common.gpr after r14-1351-ge256e67a8a3ce9,
    r14-5642-g4b7d0f22b1357a and r17-723-g6cd854ea878c44 were
    incorrectly ported.
    
    gcc/ada/ChangeLog:
    
            * libgnat/libgnat_common.gpr (Ada_Flags): Remove the -gnatpg.
            (No_Reorder): Remove -O0.
            (Version): Added.

Diff:
---
 gcc/ada/libgnat/libgnat_common.gpr | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/ada/libgnat/libgnat_common.gpr b/gcc/ada/libgnat/libgnat_common.gpr
index a6340332c578..b9fee5b942b9 100644
--- a/gcc/ada/libgnat/libgnat_common.gpr
+++ b/gcc/ada/libgnat/libgnat_common.gpr
@@ -6,14 +6,15 @@ abstract project Libgnat_Common is
                     "-DSTANDALONE") &
                    External_As_List ("EXTRALIBFLAGS", " ");
    Ada_Flags    := Common_Flags & ("-nostdinc", "-I../adainclude", "-gnatg")
-                   & Split (External ("ADAFLAGS", "-gnatpg"), " ");
+                   & Split (External ("ADAFLAGS", ""), " ");
    Library_Kind := External ("LIBRARY_KIND", "static");
+   Version      := External ("LIBRARY_VERSION", "0");
 
    No_Opt      := ("-O0");
    Force_Debug := ("-g");
    No_Inline   := ("-fno-inline");
    No_Omit     := ("-fno-omit-frame-pointer");
    No_Sibling  := ("-fno-optimize-sibling-calls");
-   No_Reorder  := ("-fno-toplevel-reorder", "-O0");
+   No_Reorder  := ("-fno-toplevel-reorder");
 
 end Libgnat_Common;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.