public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2022] [Ada] Temporarily disable Ada 2022 Image and Put_Image support for tagged types
@ 2021-07-05 13:14 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-05 13:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:74895b63549a064f2de8de8bd66e7c0bdbff7076
commit r12-2022-g74895b63549a064f2de8de8bd66e7c0bdbff7076
Author: Steve Baird <baird@adacore.com>
Date: Tue Apr 27 13:57:36 2021 -0700
[Ada] Temporarily disable Ada 2022 Image and Put_Image support for tagged types
gcc/ada/
* exp_put_image.adb:
(Enable_Put_Image, Preload_Root_Buffer_Type): Revert to querying
the -gnatd_z switch, as opposed to testing whether Ada_Version >= Ada_2022.
Diff:
---
gcc/ada/exp_put_image.adb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gcc/ada/exp_put_image.adb b/gcc/ada/exp_put_image.adb
index 3a9751b574d..0cf38ac8380 100644
--- a/gcc/ada/exp_put_image.adb
+++ b/gcc/ada/exp_put_image.adb
@@ -26,6 +26,7 @@
with Aspects; use Aspects;
with Atree; use Atree;
with Csets; use Csets;
+with Debug; use Debug;
with Einfo; use Einfo;
with Einfo.Entities; use Einfo.Entities;
with Einfo.Utils; use Einfo.Utils;
@@ -50,6 +51,9 @@ with Uintp; use Uintp;
package body Exp_Put_Image is
+ Tagged_Put_Image_Enabled : Boolean renames Debug_Flag_Underscore_Z;
+ -- Temporary until we resolve mixing Ada 2012 and 2022 code
+
-----------------------
-- Local Subprograms --
-----------------------
@@ -933,6 +937,7 @@ package body Exp_Put_Image is
if Ada_Version < Ada_2022
or else Is_Remote_Types (Scope (Typ))
or else (Is_Tagged_Type (Typ) and then In_Predefined_Unit (Typ))
+ or else (Is_Tagged_Type (Typ) and then not Tagged_Put_Image_Enabled)
then
return False;
end if;
@@ -1188,6 +1193,7 @@ package body Exp_Put_Image is
if not In_Predefined_Unit (Compilation_Unit)
and then Ada_Version >= Ada_2022
+ and then Tagged_Put_Image_Enabled
and then Tagged_Seen
and then not No_Run_Time_Mode
and then RTE_Available (RE_Root_Buffer_Type)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-05 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 13:14 [gcc r12-2022] [Ada] Temporarily disable Ada 2022 Image and Put_Image support for tagged types Pierre-Marie de Rodat
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).