unc_memops.ads: Comment out the alloc/free/realloc exports and document how these...
authorOlivier Hainque <hainque@adacore.com>
Fri, 7 Dec 2007 15:33:48 +0000 (15:33 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Fri, 7 Dec 2007 15:33:48 +0000 (15:33 +0000)
2007-12-07  Olivier Hainque  <hainque@adacore.com>

testsuite/
* gnat.dg/unc_memops.ads: Comment out the alloc/free/realloc
exports and document how these can be exercised.

From-SVN: r130678

gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/unc_memops.ads

index 2dcabc16d61f76b8a6dbebd96ccb24b8cac0c825..9818fb4b48232042e69daa5522bf7473644152d0 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-07  Olivier Hainque  <hainque@adacore.com>
+
+       * gnat.dg/unc_memops.ads: Comment out the alloc/free/realloc
+       exports and document how these can be exercised.
+
 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
 
        PR ada/15805
index abc4fa7af2e5ecf1452e0f11fb92784346657c06..e64b3a62c406c13506ef1b83e95c2ff51ff404ea 100644 (file)
@@ -17,8 +17,14 @@ package Unc_Memops is
 
 private
 
-   pragma Export (C, Alloc,   "__gnat_malloc");
-   pragma Export (C, Free,    "__gnat_free");
-   pragma Export (C, Realloc, "__gnat_realloc");
+   --  Uncomment the exports below to really exercise the alternate versions.
+
+   --  This only works when using an installed version of the tools which
+   --  grabs the runtime library objects from an archive, hence doesn't force
+   --  the inclusion of s-memory.o.
+
+   --  pragma Export (C, Alloc,   "__gnat_malloc");
+   --  pragma Export (C, Free,    "__gnat_free");
+   --  pragma Export (C, Realloc, "__gnat_realloc");
 
 end;