Subject: CVS commit: [netbsd-4] src/usr.bin/xlint/lint2
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 09/28/2007 22:03:29
Module Name:	src
Committed By:	xtraeme
Date:		Fri Sep 28 22:03:29 UTC 2007

Modified Files:
	src/usr.bin/xlint/lint2 [netbsd-4]: read.c

Log Message:
Pull up following revision(s) (requested by uwe in ticket #907):
	usr.bin/xlint/lint2/read.c: revision 1.19

tlst[inptype(...)] is bad C code because inptype() can realloc tlst
and there's no intermediate sequence point!  We actually hit this on
sh3 with -O2 where gcc4 caches tlst in a register prior to recursive
call to inptype() and if you are unlucky the recursive call needs to
realloc tlst.
Introduce a temp variable to force a sequence point.


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.18.6.1 src/usr.bin/xlint/lint2/read.c

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