None.
Specifies the storage location for constant pointers.
When -qroptr is in effect, constant pointers, virtual function tables, and virtual type tables are placed in read-only storage. When -qnoroptr is in effect, pointers, virtual function tables, and virtual type tables are placed are placed in read/write storage.
-qnoroptr
int* const p = &n;
When -qnoroptr is in effect, you can change the values of constant pointers, virtual function tables, and virtual type tables without generating errors.
char c1 = 10; char c2 = 20; char* const c1_ptr = &c1; int main() { *(char**)&c1_ptr = &c2; }Compiling this code with the -qroptr option specified will result in a segmentation fault at run time.
You should not use -qroptr for compiled code that will become part of a shared library.
None.