This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Ada.Real_Time not properly initialized on Windows


On Windows, when using only Ada.Real_Time and not Ada.Calendar and not
using any real time feature such as a delay, some necessary
initialization was not performed and the values returned by function
Clock were constant and incorrect. This patch fixes that.
The test for this is to check that two values of Time obtained by calling
function Clock with some sufficient long processing are different.

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

2010-06-23  Vincent Celier  <celier@adacore.com>

	* a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]