Extracting live registers

Segher Boessenkool segher@kernel.crashing.org
Wed Nov 7 04:31:00 GMT 2018

Hi Paulo,

On Tue, Nov 06, 2018 at 09:35:35PM +0100, Paulo Matos wrote:
> I remember from awhile ago that there's some option (or there was...)
> that gets GCC to print some register allocation information together
> with the assembler output.
> I am interested in obtaining the live registers per basic block. I think
> the option I had in mind did that but I can't remember the option name
> anymore. Can someone point me out to the option or a way to extract such
> information?

-fdump-rtl-alignments[-all] is the last dump with all that information I
think.  This one also has all this info without -all it seems.  With -all
it shows it interleaving the RTL dump as well, which may or may not be
handy for you.


More information about the Gcc mailing list