[RFA:] Provide rlim_t for bootstrap problem

Hans-Peter Nilsson hp@bitrange.com
Mon Mar 3 05:54:00 GMT 2003


Bootstrap is past the failing point for i686-pc-linux-gnulibc1
and into stage2.  The pertinent type is "long" here.  Right, it
might be "int" for some system missing the same definition, but
let's burn that bridge when we come to it...

Ok if is passes on i686-pc-linux-gnu (which *has* rlim_t) too?
(Will also test and apply to 3.3.)

	* configure.in (rlim_t): Define to long if no valid definition
	found in sys/resource.h.
	* acconfig.h (rlim_t): Add.
	* config.in, configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.645
diff -p -c -r1.645 configure.in
*** configure.in	2 Mar 2003 22:15:50 -0000	1.645
--- configure.in	3 Mar 2003 05:42:00 -0000
*************** AC_CHECK_FUNCS(times clock dup2 kill get
*** 718,723 ****
--- 718,726 ----

  AC_CHECK_TYPE(ssize_t, int)

+ AC_TRY_COMPILE([#include <sys/resource.h>],[rlim_t l;],,
+ 	       [AC_DEFINE([rlim_t],[long])])
+
  # Try to determine the array type of the second argument of getgroups
  # for the target system (int or gid_t).
  AC_TYPE_GETGROUPS
Index: acconfig.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/acconfig.h,v
retrieving revision 1.52
diff -p -c -r1.52 acconfig.h
*** acconfig.h	9 Oct 2001 22:40:11 -0000	1.52
--- acconfig.h	3 Mar 2003 05:52:36 -0000
***************
*** 26,31 ****
--- 26,34 ----
  /* Define to `int' if <sys/types.h> doesn't define.  */
  #undef ssize_t

+ /* Define to `long' if <sys/resource.h> doesn't define.  */
+ #undef rlim_t
+
  /* Define if cpp should also search $prefix/include.  */
  #undef PREFIX_INCLUDE_DIR

brgds, H-P



More information about the Gcc-patches mailing list