[Ada] Refactor repeated code for fixed point attributes
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 23 Nov 2020 23:00:17 +0000 (00:00 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 15 Dec 2020 11:41:52 +0000 (06:41 -0500)
commit57d5ceda2f8669bd36be135176e9e7ee416df7df
tree9127e030e2952644b8a46c64608182ee7265228e
parent9c852dfb057c645e1dc1e29115e57062b878bdc5
[Ada] Refactor repeated code for fixed point attributes

gcc/ada/

* sem_attr.adb (Analyze_Attribute): Consistently call
Check_Fixed_Point_Type before checking the number of attribute
expressions (like it is done for floating point types); reuse
Check_Fixed_Point_Type_0.
gcc/ada/sem_attr.adb