On 05/23/11 20:21, Darren Reed wrote:
> /ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc -g -m32

Try setting -xO1 in there along with -g.  It should produce reasonable
output and avoid this problem.

Do the Makefiles in place ever compile the code you're looking at with
just "-g" and no "-xO" option?  If not, then what's the beef?  There are
many compiler options that can provoke various failures.

> The behaviour you're expecting is quite rightly compiler
> dependent and there's no reason to expect it to work on
> every compiler.

That's true of all of ON.  It's not portable.  It's not intended to be
portable.  If you tried to compile it with aCC or xlC, you'd end up
being pretty sad.

> I'd actively discourage people from ever writing such code.

Ha!

-- 
James Carlson         42.703N 71.076W         <carls...@workingcode.com>
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to