OpenSolaris

Printable Version Enter a New Search
Bug ID 6310582
Synopsis gcc and sparc sysinfo don't get along
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:syscall
Keywords tonic-gcc
Responsible Engineer Ethan Solomita
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_24
Fixed In snv_24
Release Fixed solaris_nevada(snv_24)
Related Bugs
Submit Date 12-August-2005
Last Update Date 12-January-2007
Description
sun4/os/fillsysinfo.c and sun4v/os/fillsysinfo.c trigger warnings
when built with gcc.  These warnings are caused by casts from integers
to pointers which are different sizes.  The standards do not specify
whether such casts cause sign extension; gcc sign-extends and warns
while Studio does neither.  The safe way to keep the current behaviour
is to cast to uintptr_t first.

The format strings passed to VPRINTF in fill_address are also incorrect;
they use %x to print pointer values; %p is needed here.

See suggested fix for more detail.
Work Around
N/A
Comments
N/A