This is the mail archive of the gcc-bugs@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]

Re: egcs-971207: Bug with getrlimit/setrlimit


On Mon, 8 December 1997, 18:53:12, manfred@s-direktnet.de wrote:

 > On the two Motorola delta boxes m68k-motorola-sysv and m88k-motorola-sysv3
 > the include file <sys/resource.h> exists and defines RLIMIT_STACK, but libc
 > doesn't provide the two functions getrlimit and setrlimit. As a result, cccp
 > cannot be built.
 > 
 > Mon Dec  8 18:47:44 1997  Manfred Hollstein  <manfred@s-direktnet.de>
 > 
 > 	* configure.in: Check for functions getrlimit and setrlimit.
 > 	* configure: Rebuilt.
 > 	* cccp.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition
 > 	to RLIMIT_STACK to see if we can call getrlimit and setrlimit.
 > 
 [patch deleted]

The same applies to toplev.c

Mon Dec  8 18:47:44 1997  Manfred Hollstein  <manfred@s-direktnet.de>

	* toplev.c (main): Likewise.

diff -c -p egcs-971207/gcc/toplev.c.orig egcs-971207/gcc/toplev.c
*** egcs-971207/gcc/toplev.c.orig	Sun Dec  7 01:29:15 1997
--- egcs-971207/gcc/toplev.c	Sun Dec  7 01:29:15 1997
*************** main (argc, argv, envp)
*** 3819,3825 ****
      --p;
    progname = p;
  
! #ifdef RLIMIT_STACK
    /* Get rid of any avoidable limit on stack size.  */
    {
      struct rlimit rlim;
--- 3819,3825 ----
      --p;
    progname = p;
  
! #if defined (RLIMIT_STACK) && defined (HAVE_GETRLIMIT) && defined (HAVE_SETRLIMIT)
    /* Get rid of any avoidable limit on stack size.  */
    {
      struct rlimit rlim;


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