This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-CVS19980628, GCC_NEED_DECLARATION search additional headers patch
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: egcs-CVS19980628, GCC_NEED_DECLARATION search additional headers patch
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 30 Jun 1998 00:48:50 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
> This patch adds some functionality to GCC_NEED_DECLARATION{S} so
> that we can search in arbitrary header files for declarations. It also
> adds checks for getrlimit/setrlimit in sys/resource.h which make use of
> this new functionailty.
>
> Okay to install?
>
> --Kaveh
>
>
> Sun Jun 28 16:19:15 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * aclocal.m4 (GCC_NEED_DECLARATION): Accept an optional second
> argument, which is typically preprocessor code used to draw in
> additional header files when looking for a function declaration.
> (GCC_NEED_DECLARATIONS): Likewise.
>
> * configure.in (GCC_NEED_DECLARATIONS): Add checks for getrlimit
> and setrlimit, search for them in sys/resource.h.
>
> * acconfig.h: Add stubs for NEED_DECLARATION_GETRLIMIT and
> NEED_DECLARATION_SETRLIMIT.
>
> * system.h: Prototype getrlimit/setrlimit if necessary.
Looks fine to me.
jeff