From e5f53db770e33d78e415be1766f9ebf36e5152e6 Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Mon, 23 Nov 2020 16:50:17 +0100 Subject: [PATCH] [Ada] Refactor duplicated code for Denorm and Signed_Zeros attributes gcc/ada/ * sem_attr.adb (Analyze_Attribute): Merge identical code for Denorm and Signed_Zeros attributes. --- gcc/ada/sem_attr.adb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 8f118afe25a..4ec22ae8fe7 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -3819,7 +3819,9 @@ package body Sem_Attr is -- Denorm -- ------------ - when Attribute_Denorm => + when Attribute_Denorm + | Attribute_Signed_Zeros + => Check_Floating_Point_Type_0; Set_Etype (N, Standard_Boolean); @@ -5949,9 +5951,7 @@ package body Sem_Attr is -- Signed_Zeros -- ------------------ - when Attribute_Signed_Zeros => - Check_Floating_Point_Type_0; - Set_Etype (N, Standard_Boolean); + -- Shares processing with Denorm attribute ---------- -- Size -- -- 2.30.2