re PR ada/82126 (gnat.dg/alignment3.adb FAILs)
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 7 Sep 2017 09:27:31 +0000 (09:27 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 7 Sep 2017 09:27:31 +0000 (09:27 +0000)
PR ada/82126
* gnat.dg/alignment3.adb: Add pragma No_Component_Reordering.

From-SVN: r251834

gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/alignment3.adb

index 59af0f7..d138514 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-07  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/82126
+       * gnat.dg/alignment3.adb: Add pragma No_Component_Reordering.
+
 2017-09-07  Richard Biener  <rguenther@suse.de>
 
        * gcc.dg/tree-ssa/ssa-thread-12.c: XFAIL third FSM threading
index 2776f5b..cf82691 100644 (file)
@@ -9,21 +9,22 @@ procedure alignment3 is
          when others => A, B : Natural;
       end case;
    end record;
-   
+
    type Link_Type (Short_Values : Boolean) is record
       Input, Output : Value_Type (Short_Values);
       Initialized : Boolean;
       N_Probes    : Natural;
    end record;
-   
+   pragma No_Component_Reordering (Link_Type);
+
    type Link_Access is access Link_Type;
-   
+
    type Natural_Access is access all Natural;
    function To_Natural_Access is
       new Ada.Unchecked_Conversion (System.Address, Natural_Access);
-   
+
    Ptr : Natural_Access;
-   
+
    procedure N_Probes_For (Link : Link_Access)  is
    begin
       Ptr := To_Natural_Access (Link.N_Probes'address);