This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

conditional register usage via function attribute - how?



Anybody know the best way to implement conditional register usage via a function
attribute?

I was thinking along the lines of VALID_MACHINE_DECL_ATTRIBUTE doing the
disabling/enabling of fixed_regs - but what if the attribute *isn't* specified -
ie. how do I reset the fixed_regs flags to their defaults after the function?

If the worst comes to the worst I could always use a pragma directive I suppose
:-)

Regards

Dylan Cuthbert



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]