Marks data as local.
.-:-----. V | >>- -q--datalocal--=----names-+--------------------------------><
This option applies only to 64-bit compilation.
When this option is in effect, local variables are statically bound with the functions that use them.
struct C{ static int i; }you would specify the variable C::i as being local data by specifying the compiler option in the following manner:
-qdatalocal=i__1CYou can use the operating system dump -tv or nm utilities to get the mangled names from an object file. To verify a mangled name, use the c++filt utility.
Performance may decrease if an imported variable is assumed to be local.
Conflicts among the -qdataimported and -qdatalocal data-marking options are resolved in the following manner:
Options that list variable names: | The last explicit specification for a particular variable name is used. |
Options that change the default: | This form does not specify a name list. The last option specified is the default for variables not explicitly listed in the name-list form. |
Related information