]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Size of time_t in newer verions of VxWorks7
authorDoug Rupp <rupp@adacore.com>
Fri, 17 Sep 2021 20:18:29 +0000 (13:18 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 11 Oct 2021 13:38:09 +0000 (13:38 +0000)
gcc/ada/

* libgnat/s-parame__ae653.ads (time_t_bits): Change to
Long_Long_Integer'Size.  Add some comments to explain.

gcc/ada/libgnat/s-parame__ae653.ads

index f838b41d5b118b2200d935fa882cc89fe3a34c3f..a3e235124893af0bfdb75672d67964168530bc2e 100644 (file)
@@ -104,8 +104,12 @@ package System.Parameters is
    -- Characteristics of time_t type --
    ------------------------------------
 
-   time_t_bits : constant := Long_Integer'Size;
-   --  Number of bits in type time_t
+   --  IMPORTANT NOTE:
+   --  time_t_bits must match the size specified in the VSB.
+
+   time_t_bits : constant := Long_Long_Integer'Size;
+   --  Number of bits in type time_t for SR0660 and newer,
+   --  with the default configuration of the VSB.
 
    ----------------------------------------------
    -- Characteristics of types in Interfaces.C --