5.7.12.6 Fixed-reg Option

The -ffixed-reg option has the compiler treat the register named reg as a fixed register. Code generated by the compiler will never make use of this register (except in cases where the register has some fixed role, like as a Stack Pointer or Frame Pointer).

The register name can be a register number, for example -ffixed-3 to refer to r3.