public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5642] ada: Always use -gnatg in run-time GPR files
@ 2023-11-21  9:58 Marc Poulhi?s
  0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-11-21  9:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4b7d0f22b1357a407856571ad1945bbb4ca22f0c

commit r14-5642-g4b7d0f22b1357a407856571ad1945bbb4ca22f0c
Author: Ronan Desplanques <desplanques@adacore.com>
Date:   Thu Oct 19 10:05:51 2023 +0200

    ada: Always use -gnatg in run-time GPR files
    
    This patch makes it so -gnatg is always passed to the compiler when
    rebuilding the run-time library with the dedicated GPR files. Before
    this patch, if a user rebuilt the run-time with -XADAFLAGS=XXX where
    XXX didn't include "-gnatg", the build would immediately fail. This
    case occurs when following the instructions in libada.gpr, which
    use '-XADAFLAGS="-gnatn"'.
    
    gcc/ada/
    
            * libgnat/libgnat_common.gpr: Unconditionally pass -gnatg.

Diff:
---
 gcc/ada/libgnat/libgnat_common.gpr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/libgnat/libgnat_common.gpr b/gcc/ada/libgnat/libgnat_common.gpr
index 63039288764..a6340332c57 100644
--- a/gcc/ada/libgnat/libgnat_common.gpr
+++ b/gcc/ada/libgnat/libgnat_common.gpr
@@ -5,7 +5,7 @@ abstract project Libgnat_Common is
                    ("-I../include", "-DIN_RTS=1", "-fexceptions",
                     "-DSTANDALONE") &
                    External_As_List ("EXTRALIBFLAGS", " ");
-   Ada_Flags    := Common_Flags & ("-nostdinc", "-I../adainclude")
+   Ada_Flags    := Common_Flags & ("-nostdinc", "-I../adainclude", "-gnatg")
                    & Split (External ("ADAFLAGS", "-gnatpg"), " ");
    Library_Kind := External ("LIBRARY_KIND", "static");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-21  9:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21  9:58 [gcc r14-5642] ada: Always use -gnatg in run-time GPR files Marc Poulhi?s

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).