There is a typo in the internal documentation. This patch fixes this.
Please let me know if the patch is not in the required format. PMatos 2011-07-26 Paulo J. Matos <paulo.ma...@csr.com> * Fix internal documentation typo. TERGET should be TARGET.
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 097531f..419faf0 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -2851,7 +2851,7 @@ A target hook returns the maximum number of consecutive registers of class @var{rclass} needed to hold a value of mode @var{mode}. This is closely related to the macro @code{HARD_REGNO_NREGS}. In fact, -the value returned by @code{TERGET_CLASS_MAX_NREGS (@var{rclass}, +the value returned by @code{TARGET_CLASS_MAX_NREGS (@var{rclass}, @var{mode})} target hook should be the maximum value of @code{HARD_REGNO_NREGS (@var{regno}, @var{mode})} for all @var{regno} values in the class @var{rclass}. diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 01beeb4..0a3a396 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -2837,7 +2837,7 @@ A target hook returns the maximum number of consecutive registers of class @var{rclass} needed to hold a value of mode @var{mode}. This is closely related to the macro @code{HARD_REGNO_NREGS}. In fact, -the value returned by @code{TERGET_CLASS_MAX_NREGS (@var{rclass}, +the value returned by @code{TARGET_CLASS_MAX_NREGS (@var{rclass}, @var{mode})} target hook should be the maximum value of @code{HARD_REGNO_NREGS (@var{regno}, @var{mode})} for all @var{regno} values in the class @var{rclass}.