Garrett D'Amore wrote: > [EMAIL PROTECTED] wrote: [snip] > FWIW, I think I agree with Roland on this ... making -xstrconst the > default in ON builds is probably an excellent idea.
IMO it should be the default for the Sun Studio compiler. We've been running after various application manually since years and still most of them don't use it because they do not know about this option. > On the other hand, I'm not entirely sure that this should be a compiler > default, or at least not unless an optimization of -xO2 or larger is > used. Urgh. No, please don't make the storage qualifier (e.g. |const| vs. non-|const|) of a variable depend on the optimizer level. The results would be... uhm... not really good (for example the whole thing blows-up badly if you mix optimized code with unoptimizec code - we had such a little game years ago with C++ code compiled with gcc and it was a nightmare to debug and fix). ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;) _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
