From: Eric Botcazou Date: Tue, 6 Jan 2015 10:35:08 +0000 (+0000) Subject: freeze.adb (Freeze_Array_Type): Remove always true test and unreachable 'else' arm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5dc6778ce163e025c4eee5545c8021abab64c8c7;p=gcc.git freeze.adb (Freeze_Array_Type): Remove always true test and unreachable 'else' arm. 2015-01-06 Eric Botcazou * freeze.adb (Freeze_Array_Type) : Remove always true test and unreachable 'else' arm. From-SVN: r219254 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 861d0c87f45..6e363c35f19 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2015-01-06 Eric Botcazou + + * freeze.adb (Freeze_Array_Type) : Remove always + true test and unreachable 'else' arm. + 2015-01-06 Vincent Celier * prj-conf.adb (Check_Target): Improve error message when diff --git a/gcc/ada/freeze.adb b/gcc/ada/freeze.adb index a2fcddc645a..c07bb563c52 100644 --- a/gcc/ada/freeze.adb +++ b/gcc/ada/freeze.adb @@ -2450,27 +2450,18 @@ package body Freeze is Get_Attribute_Definition_Clause (FS, Attribute_Component_Size); - if Known_Static_Esize (Ctyp) then - Error_Msg_N - ("incorrect component size for " - & T & " components", Clause); - Error_Msg_Uint_1 := Esize (Ctyp); - Error_Msg_N - ("\only allowed value is^", Clause); - - else - Error_Msg_N - ("component size cannot be given for " - & T & " components", Clause); - end if; + Error_Msg_N + ("incorrect component size for " + & T & " components", Clause); + Error_Msg_Uint_1 := Esize (Ctyp); + Error_Msg_N + ("\only allowed value is^", Clause); else Error_Msg_N ("cannot pack " & T & " components", Get_Rep_Pragma (FS, Name_Pack)); end if; - - return; end Complain_CS; -- Start of processing for Alias_Atomic_Check