Commit 1cbd2080 by Eric Botcazou Committed by Pierre-Marie de Rodat

[Ada] Do not set a bogus Esize on subtype built for Component_Size clause

2019-12-16  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

	* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Set only
	the RM_Size on the subtype built for a Component_Size clause
	when the component type is a biased integer type.

From-SVN: r279437
parent 08611be2
2019-12-16 Eric Botcazou <ebotcazou@adacore.com>
* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Set only
the RM_Size on the subtype built for a Component_Size clause
when the component type is a biased integer type.
2019-12-16 Arnaud Charlet <charlet@adacore.com> 2019-12-16 Arnaud Charlet <charlet@adacore.com>
* socket.c: Shutdown warning. * socket.c: Shutdown warning.
......
...@@ -5476,7 +5476,7 @@ package body Sem_Ch13 is ...@@ -5476,7 +5476,7 @@ package body Sem_Ch13 is
Analyze (Decl, Suppress => All_Checks); Analyze (Decl, Suppress => All_Checks);
Set_Has_Delayed_Freeze (New_Ctyp, False); Set_Has_Delayed_Freeze (New_Ctyp, False);
Set_Esize (New_Ctyp, Csize); Init_Esize (New_Ctyp);
Set_RM_Size (New_Ctyp, Csize); Set_RM_Size (New_Ctyp, Csize);
Init_Alignment (New_Ctyp); Init_Alignment (New_Ctyp);
Set_Is_Itype (New_Ctyp, True); Set_Is_Itype (New_Ctyp, True);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment