Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh sprinkle more volatile (needed for the rescue build w...



details:   https://anonhg.NetBSD.org/src/rev/a76389436799
branches:  trunk
changeset: 344271:a76389436799
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 18 18:07:28 2016 +0000

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

diffstat:

 bin/sh/parser.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r dea410867542 -r a76389436799 bin/sh/parser.c
--- a/bin/sh/parser.c   Fri Mar 18 17:52:30 2016 +0000
+++ b/bin/sh/parser.c   Fri Mar 18 18:07:28 2016 +0000
@@ -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 @@
        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 @@
        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;



Home | Main Index | Thread Index | Old Index