[Ada] Size of time_t in newer verions of VxWorks7

Message ID 20211011133900.GA1518510@adacore.com
State Committed
Commit 3e10307b9a76b0ba4a7b1f65518c015df6bf9e90
Headers
Series [Ada] Size of time_t in newer verions of VxWorks7 |

Commit Message

Pierre-Marie de Rodat Oct. 11, 2021, 1:39 p.m. UTC
  Set the default size of time_t_bits to match the standard runtimes. The
size must match that which is used in the VSB, since the same VSB is
used to build all of the runtimes.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

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

Patch

diff --git a/gcc/ada/libgnat/s-parame__ae653.ads b/gcc/ada/libgnat/s-parame__ae653.ads
--- a/gcc/ada/libgnat/s-parame__ae653.ads
+++ b/gcc/ada/libgnat/s-parame__ae653.ads
@@ -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 --