OpenSolaris

Printable Version Enter a New Search
Bug ID 6309433
Synopsis gcc and dr don't get along
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:dr
Keywords non-regression | other_escape | tonic-gcc | triaged
Responsible Engineer Kelly Moyer
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_29
Fixed In snv_29
Release Fixed solaris_nevada(snv_29)
Related Bugs
Submit Date 11-August-2005
Last Update Date 24-January-2006
Description
DR support sources trigger a large number of warnings when built with gcc.
The most common issues are:

1. Casts between pointers and integers of 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.

2. Incorrect format strings, mainly missing or extra 'l' qualifiers or
confusion between %p and %x or %lx specifiers.  In some cases, the format
strings are correct and there are unnecessary casts of the arguments.

See suggested fix for more detail as to which files are affected.
Work Around
N/A
Comments
N/A