MN10300 Options (Using the GNU Compiler Collection (GCC))

#### 3.20.31 MN10300 Options ¶

These `-m` options are defined for Matsushita MN10300 architectures:

`-mmult-bug` ¶
`-mno-mult-bug`

  When enabled, generate code to avoid bugs in the multiply instructions for the MN10300 processors. This is the default.

`-mam33` ¶
`-mno-am33`

  Generate code using features specific to the AM33 processor. The default is `-mno-am33`.

`-mam33-2` ¶
`-mno-am33-2`

  Generate code using features specific to the AM33/2.0 processor. The default is `-mno-am33-2`.

`-mam34` ¶
`-mno-am34`

  Generate code using features specific to the AM34 processor. The default is `-mno-am34`.

`-mtune=cpu-type` ¶

  Use the timing characteristics of the indicated CPU type when scheduling instructions. This does not change the targeted processor type. The CPU type must be one of ‘`mn10300`’, ‘`am33`’, ‘`am33-2`’ or ‘`am34`’.

`-mreturn-pointer-on-d0` ¶
`-mno-return-pointer-on-d0`

  When generating a function that returns a pointer, return the pointer in both `a0` and `d0`. Otherwise, the pointer is returned only in `a0`, and attempts to call such functions without a prototype result in errors. Note that this option is on by default; use `-mno-return-pointer-on-d0` to disable it.

`-mno-crt0` ¶

  Do not link in the C run-time initialization object file.

`-mrelax` ¶

  Indicate to the linker that it should perform a relaxation optimization pass to shorten branches, calls and absolute memory addresses. This option only has an effect when used on the command line for the final link step.

  This option makes symbolic debugging impossible.

`-mliw` ¶
`-mno-liw`

  Allow the compiler to generate Long Instruction Word instructions if the target is the ‘`AM33`’ or later. This option is enabled by default. `-mliw` defines the preprocessor macro `__LIW__`; `-mno-liw` defines the preprocessor macro `__NO_LIW__`.

`-msetlb` ¶
`-mno-setlb`

  Allow the compiler to generate the SETLB and Lcc instructions if the target is the ‘`AM33`’ or later. This option is enabled by default. `-msetlb` defines the preprocessor macro `__SETLB__`; `-mno-setlb` defines the preprocessor macro `__NO_SETLB__`.