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

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	cloder_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2005/12/09 22:35:16

Modified files:
	usr.bin/xlint/lint1: decl.c 

Log message:
Fix a crash when enum bitfields are encountered.  Reported by marc on
sparc but we really should see the crash on any arch.  Lots of places
in the code assume that if tspec == ENUM that they can touch t_enum,
so when we see an ENUM bitfield, we coerce the type to INT or UINT.
We also clear the t_isenum flag and the t_proto flag any time we
invalidate the data in the union.  We should be stricter about checking
t_isenum everywhere, but that is a bigger job.



Visit your host, monkey.org