aboutsummaryrefslogtreecommitdiffstats
path: root/translate/grt/grt-main.adb
diff options
context:
space:
mode:
authorgingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2008-08-30 13:30:19 +0000
committergingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2008-08-30 13:30:19 +0000
commitcd9300765e7e3fd43e450777e98a778146f700c2 (patch)
treef013fea17ae4eee9c1649e63b99b9bfe377fafb4 /translate/grt/grt-main.adb
parent4b6571671497ecc1f846bfa49678254e14511fc9 (diff)
downloadghdl-cd9300765e7e3fd43e450777e98a778146f700c2.tar.gz
ghdl-cd9300765e7e3fd43e450777e98a778146f700c2.tar.bz2
ghdl-cd9300765e7e3fd43e450777e98a778146f700c2.zip
Switch to gcc 4.3
Don't use tagged types in grt (not supported by recent versions of GNAT) Fix warnings
Diffstat (limited to 'translate/grt/grt-main.adb')
-rw-r--r--translate/grt/grt-main.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/translate/grt/grt-main.adb b/translate/grt/grt-main.adb
index 86a388cd6..43166fa0a 100644
--- a/translate/grt/grt-main.adb
+++ b/translate/grt/grt-main.adb
@@ -16,6 +16,7 @@
-- Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-- 02111-1307, USA.
with System.Storage_Elements; -- Work around GNAT bug.
+pragma Unreferenced (System.Storage_Elements);
with Grt.Types; use Grt.Types;
with Grt.Errors;
with Grt.Stacks;
@@ -60,6 +61,9 @@ package body Grt.Main is
is
Err : Boolean;
begin
+ -- The conditions may be statically known.
+ pragma Warnings (Off);
+
Err := False;
if (Std_Integer'Size = 32 and Flag_String (3) /= 'i')
or else (Std_Integer'Size = 64 and Flag_String (3) /= 'I')
@@ -71,6 +75,9 @@ package body Grt.Main is
then
Err := True;
end if;
+
+ pragma Warnings (On);
+
if Err then
Grt.Errors.Error
("GRT is not consistent with the flags used for your design");