How to obtain info about `-ffixed-reg' at a compilation?

Andrew Pinski pinskia@physics.uc.edu
Sun Jan 16 19:37:00 GMT 2005


On Jan 15, 2005, at 11:20 PM, Dmitry K. wrote:

> First, for asm-with-cpp programs, like setjmp/longjmp.

First off -ffixed-reg does nothing for .s files even though
they are preprocessed.

Second -ffixed-reg is really only useful when you know that a
register is going to be used by another part like say r2 on PPC
inside the linux kernel, where it is the TOC register for user-
land but you don't want to use it.

-- Pinski



More information about the Gcc mailing list