An upcoming change in behavior in the Sun Studio C compiler ...
By dpagan on Jul 30, 2008
In an upcoming expresss release of Sun Studio, the C compiler will provide a new option.
It enables/disables string literal placement in read-only memory. The default for this new option will be -features=conststrings, which replaces the deprecated -xstrconst option. Note that with this change in default, programs attempting to write to a string literal will now fail under the default compilation mode just as if -xstrconst had been explicitly specified on the command line. Prior to this change, no runtime error would be seen and the contents of the string written to would change. To revert to the old behavior, specify