From c5c69d05a905069496f81a3e2fe78ec85aa8dd36 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 29 Apr 2020 21:42:22 +0200 Subject: [PATCH] [Ada] Deal with enumeration types with very large size 2020-06-19 Eric Botcazou gcc/ada/ * exp_attr.adb (Get_Integer_Type): Return the largest supported unsigned integer type if need be. --- gcc/ada/exp_attr.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/exp_attr.adb b/gcc/ada/exp_attr.adb index 30bb7cce1e4..f21ec9e9117 100644 --- a/gcc/ada/exp_attr.adb +++ b/gcc/ada/exp_attr.adb @@ -1766,7 +1766,7 @@ package body Exp_Attr is Int_Typ := Standard_Unsigned; else - raise Program_Error; + Int_Typ := Standard_Long_Long_Unsigned; end if; return Int_Typ; -- 2.30.2