* c-exp.y, m2-exp.y: Move remapping defines for malloc and

realloc.  Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
	* config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
	sun4os5.mh}:  Add definition for INSTALL using /usr/ucb/install.
This commit is contained in:
Fred Fish 1992-06-10 02:05:20 +00:00
parent cc0d9de867
commit 36ce1b6469
8 changed files with 61 additions and 16 deletions

View file

@ -1,3 +1,10 @@
Tue Jun 9 17:19:45 1992 Fred Fish (fnf@cygnus.com)
* c-exp.y, m2-exp.y: Move remapping defines for malloc and
realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
* config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
* depend: rebuild to account for remote-st2000.c.

View file

@ -42,14 +42,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "symfile.h"
#include "objfiles.h"
/* Ensure that if the generated parser contains any calls to malloc/realloc,
that they get mapped to xmalloc/xrealloc. */
#define malloc xmalloc
#define realloc xrealloc
/* These MUST be included in any grammar file!!!!
Please choose unique names! */
/* These MUST be included in any grammar file!!!! Please choose unique names!
Note that this are a combined list of variables that can be produced
by any one of bison, byacc, or yacc. */
#define yymaxdepth c_maxdepth
#define yyparse c_parse
#define yylex c_lex
@ -77,6 +72,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define yy_yyv c_yyv
#define yyval c_val
#define yylloc c_lloc
#define yyss c_yyss /* byacc */
#define yyssp c_yysp /* byacc */
#define yyvs c_yyvs /* byacc */
#define yyvsp c_yyvsp /* byacc */
int
yyparse PARAMS ((void));
@ -193,9 +192,22 @@ parse_number PARAMS ((char *, int, int, YYSTYPE *));
%token <ssym> BLOCKNAME
%type <bval> block
%left COLONCOLON
%%
%{
/* Ensure that if the generated parser contains any calls to malloc/realloc,
that they get mapped to xmalloc/xrealloc. We have to do this here
rather than earlier in the file because this is the first point after
the place where the SVR4 yacc includes <malloc.h>, and if we do it
before that, then the remapped declarations in <malloc.h> will collide
with the ones in "defs.h". */
#define malloc xmalloc
#define realloc xrealloc
%}
start : exp1
| type_exp
;

View file

@ -19,3 +19,6 @@ ALLOCA1=alloca.o
# old termcap descriptions are incomplete. So ensure that we use the
# new terminfo interface and latest terminal descriptions.
TERMCAP=-ltermlib
# SVR4 puts the BSD compatible install in /usr/ucb.
INSTALL = /usr/ucb/install -c

View file

@ -25,3 +25,6 @@ ALLOCA1=alloca.o
# old termcap descriptions are incomplete. So ensure that we use the
# new terminfo interface and latest terminal descriptions.
TERMCAP=-ltermlib
# SVR4 puts the BSD compatible install in /usr/ucb.
INSTALL = /usr/ucb/install -c

View file

@ -34,3 +34,6 @@ ALLOCA1=alloca.o
# old termcap descriptions are incomplete. So ensure that we use the
# new terminfo interface and latest terminal descriptions.
TERMCAP=-ltermlib
# SVR4 puts the BSD compatible install in /usr/ucb.
INSTALL = /usr/ucb/install -c

View file

@ -19,3 +19,6 @@ ALLOCA1=alloca.o
# old termcap descriptions are incomplete. So ensure that we use the
# new terminfo interface and latest terminal descriptions.
TERMCAP=-ltermlib
# SVR4 puts the BSD compatible install in /usr/ucb.
INSTALL = /usr/ucb/install -c

View file

@ -20,6 +20,9 @@ REGEX1=regex.o
# new terminfo interface and latest terminal descriptions.
TERMCAP=-ltermlib
# SVR4 puts the BSD compatible install in /usr/ucb.
INSTALL = /usr/ucb/install -c
# Sun's compilers require the -xs option to produce debug information
# in the final linked executable. Otherwise they leave it in the .o
# files only, with undocumented pointers to it in the linked executable.

View file

@ -43,14 +43,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "symfile.h"
#include "objfiles.h"
/* Ensure that if the generated parser contains any calls to malloc/realloc,
that they get mapped to xmalloc/xrealloc. */
#define malloc xmalloc
#define realloc xrealloc
/* These MUST be included in any grammar file!!!!
Please choose unique names! */
/* These MUST be included in any grammar file!!!! Please choose unique names!
Note that this are a combined list of variables that can be produced
by any one of bison, byacc, or yacc. */
#define yymaxdepth m2_maxdepth
#define yyparse m2_parse
#define yylex m2_lex
@ -78,6 +73,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define yy_yyv m2_yyv
#define yyval m2_val
#define yylloc m2_lloc
#define yyss m2_yyss /* byacc */
#define yyssp m2_yysp /* byacc */
#define yyvs m2_yyvs /* byacc */
#define yyvsp m2_yyvsp /* byacc */
#if 0
static char *
@ -180,6 +179,18 @@ struct block *modblock=0;
*/
%%
%{
/* Ensure that if the generated parser contains any calls to malloc/realloc,
that they get mapped to xmalloc/xrealloc. We have to do this here
rather than earlier in the file because this is the first point after
the place where the SVR4 yacc includes <malloc.h>, and if we do it
before that, then the remapped declarations in <malloc.h> will collide
with the ones in "defs.h". */
#define malloc xmalloc
#define realloc xrealloc
%}
start : exp
| type_exp
;