]> gcc.gnu.org Git - gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Thu, 16 Apr 2009 08:33:28 +0000 (10:33 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 16 Apr 2009 08:33:28 +0000 (10:33 +0200)
2009-04-16  Olivier Hainque  <hainque@adacore.com>

* gnat_ugn.texi (gnatmem description): Make it explicit that
gnatmem is designed to work in association with static runtime
library only.

2009-04-16  Thomas Quinot  <quinot@adacore.com>

* sem_type.adb: Minor reformatting

2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>

* s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
concerning return codes of gettimeofday and return value check.

2009-04-16  Ed Falis  <falis@adacore.com>

* s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
body can be renaming of imported routines.

2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>

* s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
targeted fashion.

From-SVN: r146149

gcc/ada/ChangeLog
gcc/ada/gnat_ugn.texi
gcc/ada/s-asthan-vms-alpha.adb
gcc/ada/s-osprim-darwin.adb
gcc/ada/s-osprim-posix.adb
gcc/ada/s-vxwext-kernel.ads
gcc/ada/sem_type.adb

index b02eed282e563013b7a52e5d6d3b267e164fdfda..14e369d31091b55e2b17b28398e0f25443e4a5a9 100644 (file)
@@ -1,3 +1,28 @@
+2009-04-16  Olivier Hainque  <hainque@adacore.com>
+
+       * gnat_ugn.texi (gnatmem description): Make it explicit that
+       gnatmem is designed to work in association with static runtime
+       library only.
+
+2009-04-16  Thomas Quinot  <quinot@adacore.com>
+
+       * sem_type.adb: Minor reformatting
+
+2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
+
+       * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
+       concerning return codes of gettimeofday and return value check.
+
+2009-04-16  Ed Falis  <falis@adacore.com>
+
+       * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
+       body can be renaming of imported routines.
+
+2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
+
+       * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
+       targeted fashion.
+
 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
 
        * exp_ch9.adb: Comment improvements.
index d45ee0fa858c9eea3c4287025b21023aa87781d8..c645682bbbe2b191316e29a259de030112602e87 100644 (file)
@@ -19708,7 +19708,8 @@ Debug Pool info:
 The @code{gnatmem} utility monitors dynamic allocation and
 deallocation activity in a program, and displays information about
 incorrect deallocations and possible sources of memory leaks.
-It provides three type of information:
+It is designed to work in association with a static runtime library
+only and in this context provides three types of information:
 @itemize @bullet
 @item
 General information concerning memory management, such as the total
index 70f3cd8c979f62ccf5df4f0d8aa99d7f898886ec..2e04081f41080034f7ad76fce95ac20397672427 100644 (file)
@@ -133,9 +133,6 @@ package body System.AST_Handling is
 
    type Descriptor_Type is new SSE.Storage_Array (1 .. 48);
    for  Descriptor_Type'Alignment use Standard'Maximum_Alignment;
-   pragma Warnings (Off, Descriptor_Type);
-   --  Suppress harmless warnings about alignment.
-   --  Should explain why this warning is harmless ???
 
    type Descriptor_Ref is access all Descriptor_Type;
 
@@ -459,12 +456,18 @@ package body System.AST_Handling is
       Process_AST_Ptr : constant AST_Handler := Process_AST'Access;
       --  Reference to standard procedure descriptor for Process_AST
 
+      pragma Warnings (Off, "*alignment*");
+      --  Suppress harmless warnings about alignment.
+      --  Should explain why this warning is harmless ???
+
       function To_Descriptor_Ref is new Ada.Unchecked_Conversion
         (AST_Handler, Descriptor_Ref);
 
       Original_Descriptor_Ref : constant Descriptor_Ref :=
                                   To_Descriptor_Ref (Process_AST_Ptr);
 
+      pragma Warnings (On, "*alignment*");
+
    begin
       if ATID.Is_Terminated (Taskid) then
          raise Program_Error;
index 2425cf6e6d0e7a6652d0fefa07d4061e74e61633..d47c608a74ee5ff229f9e9dfba2b5d304c2a9234 100644 (file)
@@ -78,6 +78,14 @@ package body System.OS_Primitives is
       pragma Unreferenced (Result);
 
    begin
+      --  The return codes for gettimeofday are as follows (from man pages):
+      --    EPERM  settimeofday is called by someone other than the superuser
+      --    EINVAL Timezone (or something else) is invalid
+      --    EFAULT One of tv or tz pointed outside accessible address space
+
+      --  None of these codes signal a potential clock skew, hence the return
+      --  value is never checked.
+
       Result := gettimeofday (TV'Access, null);
       return Duration (TV.tv_sec) + Duration (TV.tv_usec) / 10#1#E6;
    end Clock;
index 7042830d36e2324cb06e205cd810ea7b76f1cfae..c02ad98380c988ef776c12ffba47f2f0a7ab2fed 100644 (file)
@@ -78,6 +78,14 @@ package body System.OS_Primitives is
       pragma Unreferenced (Result);
 
    begin
+      --  The return codes for gettimeofday are as follows (from man pages):
+      --    EPERM  settimeofday is called by someone other than the superuser
+      --    EINVAL Timezone (or something else) is invalid
+      --    EFAULT One of tv or tz pointed outside accessible address space
+
+      --  None of these codes signal a potential clock skew, hence the return
+      --  value is never checked.
+
       Result := gettimeofday (TV'Access, null);
       return Duration (TV.tv_sec) + Duration (TV.tv_usec) / 10#1#E6;
    end Clock;
index b0008e8e3e7b5597eafc35e0511f5b47e114ec83..423acab2ba9f7deb0c7bd46b18a2787fd791da46 100644 (file)
@@ -45,10 +45,10 @@ package System.VxWorks.Ext is
    type Interrupt_Vector is new System.Address;
 
    function Int_Lock return int;
-   pragma Inline (Int_Lock);
+   pragma Convention (C, Int_Lock);
 
    function Int_Unlock return int;
-   pragma Inline (Int_Unlock);
+   pragma Convention (C, Int_Unlock);
 
    function Interrupt_Connect
      (Vector    : Interrupt_Vector;
index bc9dbdbc95306be1baf7c7b605c63f9b1443de67..47bc6628e472e77c8b6d96b6501179a3b862fcc5 100644 (file)
@@ -885,7 +885,7 @@ package body Sem_Type is
       then
          return True;
 
-      --  An aggregate is compatible with an array or record type.
+      --  An aggregate is compatible with an array or record type
 
       elsif T2 = Any_Composite
         and then Ekind (T1) in E_Array_Type .. E_Record_Subtype
This page took 0.165998 seconds and 5 git commands to generate.