Module Name:    src
Committed By:   christos
Date:           Fri Mar 18 18:07:28 UTC 2016

Modified Files:
        src/bin/sh: parser.c

Log Message:
sprinkle more volatile (needed for the rescue build with gcc-5.3)


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/bin/sh/parser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/parser.c
diff -u src/bin/sh/parser.c:1.104 src/bin/sh/parser.c:1.105
--- src/bin/sh/parser.c:1.104	Tue Mar  8 09:11:56 2016
+++ src/bin/sh/parser.c	Fri Mar 18 14:07:28 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: parser.c,v 1.104 2016/03/08 14:11:56 christos Exp $	*/
+/*	$NetBSD: parser.c,v 1.105 2016/03/18 18:07:28 christos Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)parser.c	8.7 (Berkeley) 5/16/95";
 #else
-__RCSID("$NetBSD: parser.c,v 1.104 2016/03/08 14:11:56 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.105 2016/03/18 18:07:28 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1094,8 +1094,8 @@ readtoken1(int firstc, char const *syn, 
 	volatile int quotef;
 	volatile int oldstyle;
 	VSS static_stack;
-	VSS *stack = &static_stack;
-	VVSS *vstack = stack;
+	VSS * volatile stack = &static_stack;
+	VVSS * volatile vstack = stack;
 
 	stack->prev = NULL;
 	stack->cur = 0;
@@ -1558,7 +1558,7 @@ parsebackq: {
 	struct nodelist **nlpp;
 	int savepbq;
 	union node *n;
-	char *str = NULL;
+	char * volatile str = NULL;
 	struct jmploc jmploc;
 	struct jmploc *volatile savehandler = NULL;
 	int savelen;

Reply via email to