Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-4] src/usr.bin/xlint/lint2
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.
Home |
Main Index |
Thread Index |
Old Index