From e194729e56e164093934312a8a46787c4546e92b Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 11 Jun 2018 09:18:49 +0000 Subject: [PATCH] [Ada] Minor tweaks for Repinfo 2018-06-11 Eric Botcazou gcc/ada/ * gnat1drv.adb: Remove use clause for Repinfo. (Gnat1drv): Beef up comment about the interplay between -gnatc and back-end annotations. Use full qualified name for List_Rep_Info. From-SVN: r261420 --- gcc/ada/ChangeLog | 6 ++++++ gcc/ada/gnat1drv.adb | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 85b344e4692..f6902cfca71 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2018-06-11 Eric Botcazou + + * gnat1drv.adb: Remove use clause for Repinfo. + (Gnat1drv): Beef up comment about the interplay between -gnatc and + back-end annotations. Use full qualified name for List_Rep_Info. + 2018-06-11 Hristian Kirtchev * libgnat/g-arrspl.ads: Add pragma Preelaborate. diff --git a/gcc/ada/gnat1drv.adb b/gcc/ada/gnat1drv.adb index 4325cf35e7d..95780624a86 100644 --- a/gcc/ada/gnat1drv.adb +++ b/gcc/ada/gnat1drv.adb @@ -50,7 +50,7 @@ with Osint.C; use Osint.C; with Output; use Output; with Par_SCO; with Prepcomp; -with Repinfo; use Repinfo; +with Repinfo; with Restrict; with Rident; use Rident; with Rtsfind; @@ -1442,7 +1442,9 @@ begin Exit_Program (Ecode); end if; - -- In -gnatc mode, we only do annotation if -gnatt or -gnatR is also set + -- In -gnatc mode we only do annotation if -gnatt or -gnatR is also set, + -- or if -gnatwz is enabled (default setting) and there is an unchecked + -- conversion that involves a type whose size is not statically known, -- as indicated by Back_Annotate_Rep_Info being set to True. -- We don't call for annotations on a subunit, because to process those @@ -1558,7 +1560,7 @@ begin Errout.Finalize (Last_Call => True); Errout.Output_Messages; - List_Rep_Info (Ttypes.Bytes_Big_Endian); + Repinfo.List_Rep_Info (Ttypes.Bytes_Big_Endian); Inline.List_Inlining_Info; -- Only write the library if the backend did not generate any error -- 2.30.2