Patch installed for libiberty physmem.c

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri Feb 21 05:11:00 GMT 2003


Some libiberty physmem.c nits:

1.  physmem.c needed to be de-ansi-fied.

2.  I forgot that libiberty has two places for adding function tests,
    the $checkfuncs variable and AC_CHECK_FUNCS.  I originally omitted
    the latter.

Thanks to Dave Anglin for helping uncover these.

Installed on trunk and 3.3.

		--Kaveh


Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/ChangeLog,v
retrieving revision 1.414
diff -u -p -r1.414 ChangeLog
--- ChangeLog	21 Feb 2003 00:27:04 -0000	1.414
+++ ChangeLog	21 Feb 2003 05:01:51 -0000
@@ -1,3 +1,9 @@
+2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
+	* configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
+	pstat_getdynamic.
+	
 2003-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
 	* Makefile.in (CFILES): Add physmem.c.
Index: physmem.c
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/physmem.c,v
retrieving revision 1.2
diff -u -p -r1.2 physmem.c
--- physmem.c	21 Feb 2003 00:27:04 -0000	1.2
+++ physmem.c	21 Feb 2003 05:01:51 -0000
@@ -31,7 +31,7 @@
 
 /* Return the total amount of physical memory.  */
 double
-physmem_total (void)
+physmem_total ()
 {
 #if defined _SC_PHYS_PAGES && defined _SC_PAGESIZE
   {
@@ -61,7 +61,7 @@ physmem_total (void)
 
 /* Return the amount of physical memory available.  */
 double
-physmem_available (void)
+physmem_available ()
 {
 #if defined _SC_AVPHYS_PAGES && defined _SC_PAGESIZE
   {
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/configure.in,v
retrieving revision 1.58
diff -u -p -r1.58 configure.in
--- configure.in	21 Feb 2003 00:27:04 -0000	1.58
+++ configure.in	21 Feb 2003 05:01:51 -0000
@@ -219,6 +219,7 @@ if test "x" = "y"; then
   AC_CHECK_FUNCS(strtod strtol strtoul tmpnam vasprintf vfprintf vprintf)
   AC_CHECK_FUNCS(vsprintf waitpid getrusage on_exit psignal strerror strsignal)
   AC_CHECK_FUNCS(sysconf times sbrk gettimeofday ffs)
+  AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic)
   AC_CHECK_FUNCS(realpath canonicalize_file_name)
   AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.])
   AC_DEFINE(HAVE_SYS_NERR,    1, [Define if you have the sys_nerr variable.])



More information about the Gcc-patches mailing list