This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
conditional register usage via function attribute - how?
- To: gcc at gcc dot gnu dot org
- Subject: conditional register usage via function attribute - how?
- From: Dylan_S_Cuthbert at hq dot scei dot sony dot co dot jp
- Date: Tue, 20 Jun 2000 13:40:23 +0900
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