Subject: standards/14166: int_mwgwtypes.h is non-sensical on sparc64
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 10/05/2001 18:20:52
>Number:         14166
>Category:       standards
>Synopsis:       int_mwgwtypes.h is non-sensical on sparc64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 05 18:22:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jason R Thorpe
>Release:        NetBSD 1.5Y, Oct 5 2001
>Organization:
Wasabi Systems, Inc.
>Environment:
	
System: NetBSD cp1500-1.fast-100.shagadelic.org 1.5Y NetBSD 1.5Y (SHAG-CP1500) #6: Fri Oct  5 10:37:00 PDT 2001     thorpej@cp1500-1.fast-100.shagadelic.org:/nfs-yeah-baby-u1/netbsd/src/sys/arch/sparc64/compile/SHAG-CP1500 sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	The minimum-width types (espcially the "fast" types) are
	not quite correct for the sparc64 port.  There is rampant
	use of "unsigned char", "unsigned short", etc. where
	"unsigned long" should be used for the fastest access.
	The int_fmtio.h header appears to have better definitions,
	but do not match the int_mwgwtypes.h header file (actually,
	I just made int_fmtio.h match the int_mwgwtypes.h header,
	in order to make the system compile).

>How-To-Repeat:
	Code inspection.

>Fix:
	Port maintainer and/or other experts should correct the
	file, and make it match the 32-bit sparc port version
	when a non-LP64 compiler is in use.

	This is very important to correct as quickly as possible,
	since it constitutes an ABI change (i.e. this MUST be fixed
	before the 1.6 release is made).
>Release-Note:
>Audit-Trail:
>Unformatted: