Joerg Schilling wrote: > Roland Mainz <[EMAIL PROTECTED]> wrote: [snip] > > From cc(1): > > -- snip -- > > -xstrconst > > Inserts string literals into the read-only data section > > of the text segment instead of the default data seg- > > ment. Duplicate strings will be eliminated and the > > remaining copy shared amongst references in the code. > > -- snip -- > > The important part is that duplicate string literals will be removed. > > Note that -xstrconst also makes strings read-only and that some programs > might still be unclean with respect to string constants.
Right... but the last code I saw was the libxrxnest.so Netscape plugin in the X11R6.8 sources and that code was untouched since more or less four years at that point. > If you find a sufficient way to test, I believe that the compilation > could be changed in general. It depends on how you define "sufficient way to test". I was often thinking about writing a OS/Net tree-wide patch for that... but I think this would be wasted work as long as we have to match the "requirement" that such a patch must be tested with all possible/imaginable codepaths (which is impossible for a single engineer (and even more difficult since I lack Sun's test suites) ... and I wish the barrier could be lowered to "... must result in a booting and running OS/Net which can be used for OS/Net development without problems... " - that would be a goal which we could archive quickly) ... ;-( ... and as I said... the real problem is that Sun Workshop/Forte/Studio defaults to writeable string literals - this issue needs to be addressed ASAP... ---- 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
