From ba47c66add7b9bd51af6ca2e6f45529bb38b9dd3 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Tue, 8 Feb 1994 09:01:03 +0000 Subject: * README: Remove note about gcc warnings on alpha, these should be gone now. * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c, m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c remote-utils.c, stabsread.c: Include . * regex.c: Include "defs.h", change re_comp argument to const char *. * infptrace.c (fetch_register, store_inferior_registers): Change regaddr to type CORE_ADDR. * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS): Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR. --- gdb/regex.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'gdb/regex.c') diff --git a/gdb/regex.c b/gdb/regex.c index d83740f..78b1f47 100644 --- a/gdb/regex.c +++ b/gdb/regex.c @@ -32,14 +32,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #else /* not emacs */ -/* Make alloca work the best possible way. */ -#ifdef __GNUC__ -#define alloca __builtin_alloca -#else -#ifdef sparc -#include -#endif -#endif +#include "defs.h" +#include /* * Define the syntax stuff, so we can do the \<...\> things. @@ -1556,7 +1550,7 @@ static struct re_pattern_buffer re_comp_buf; char * re_comp (s) - char *s; + const char *s; { if (!s) { -- cgit v1.1