From: Eric Botcazou Date: Wed, 29 Apr 2020 19:42:22 +0000 (+0200) Subject: [Ada] Deal with enumeration types with very large size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5c69d05a905069496f81a3e2fe78ec85aa8dd36;p=gcc.git [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. --- 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;