This is the mail archive of the 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]
Other format: [Raw text]

[PATCH] Document undocumented macro


I just stumbled upon an undocumented macro in sparc.h, which appears to be 
defined only by the SPARC port and used only by local-alloc.c:combine_regs 
and global.c:set_preference.  It was added 3 years ago by the big patch that 
introduced byte-granularity for subregs.

Tested with 'make doc'.  OK for mainline and 3.4 branch?

2004-03-12  Eric Botcazou  <>

	* doc/tm.texi (registers) <Values in Registers>: Add

Eric Botcazou
Index: doc/tm.texi
RCS file: /cvs/gcc/gcc/gcc/doc/tm.texi,v
retrieving revision 1.311
diff -u -r1.311 tm.texi
--- doc/tm.texi	7 Mar 2004 20:23:32 -0000	1.311
+++ doc/tm.texi	12 Mar 2004 08:21:20 -0000
@@ -2011,6 +2011,15 @@
 @end smallexample
 @end defmac
+@defmac REGMODE_NATURAL_SIZE (@var{mode})
+Define this macro if the natural size of registers that hold values
+of mode @var{mode} is not the word size.  It is a C expression that
+should give the natural size in bytes for the specified mode.  It is
+used by the register allocator to try to optimize its results.  This
+happens for example on SPARC 64-bit where the natural size of
+floating-point registers is still 32-bit.
+@end defmac
 @defmac HARD_REGNO_MODE_OK (@var{regno}, @var{mode})
 A C expression that is nonzero if it is permissible to store a value
 of mode @var{mode} in hard register number @var{regno} (or in several

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