This is v4 patch for Andes nds32 port on documentation part. Thanks Joseph Myers's comments. Now we use @deftypefn and @samp to refine our documentation content.
The diff is as follows and the patch file is attached. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index f0002a9..5f91813 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -12432,33 +12432,38 @@ once the handler returns. These built-in functions are available for the NDS32 target: -@table @code -@item void __builtin_nds32_isync (int *@var{addr}) +@deftypefn {Built-in Function} void __builtin_nds32_isync (int *@var{addr}) Insert an ISYNC instruction into the instruction stream where @var{addr} is an instruction address for serialization. +@end deftypefn -@item void __builtin_nds32_isb (void) +@deftypefn {Built-in Function} void __builtin_nds32_isb (void) Insert an ISB instruction into the instruction stream. +@end deftypefn -@item int __builtin_nds32_mfsr (int @var{sr}) +@deftypefn {Built-in Function} int __builtin_nds32_mfsr (int @var{sr}) Return the content of a system register which is mapped by @var{sr}. +@end deftypefn -@item int __builtin_nds32_mfusr (int @var{usr}) +@deftypefn {Built-in Function} int __builtin_nds32_mfusr (int @var{usr}) Return the content of a user space register which is mapped by @var{usr}. +@end deftypefn -@item void __builtin_nds32_mtsr (int @var{value}, int @var{sr}) +@deftypefn {Built-in Function} void __builtin_nds32_mtsr (int @var{value}, int @var{sr}) Move the @var{value} to a system register which is mapped by @var{sr}. +@end deftypefn -@item void __builtin_nds32_mtusr (int @var{value}, int @var{usr}) +@deftypefn {Built-in Function} void __builtin_nds32_mtusr (int @var{value}, int @var{usr}) Move the @var{value} to a user space register which is mapped by @var{usr}. +@end deftypefn -@item void __builtin_nds32_setgie_en (void) +@deftypefn {Built-in Function} void __builtin_nds32_setgie_en (void) Enable global interrupt. +@end deftypefn -@item void __builtin_nds32_setgie_dis (void) +@deftypefn {Built-in Function} void __builtin_nds32_setgie_dis (void) Disable global interrupt. - -@end table +@end deftypefn @node picoChip Built-in Functions @subsection picoChip Built-in Functions diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 68af98e..cbc0644 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1864,7 +1864,7 @@ supported since version 4.7.2 and is the default in 4.8.0 and newer. @item --with-nds32-lib=@var{library} Specifies that @var{library} setting is used for building @file{libgcc.a}. -Currently, the valid @var{library} is 'newlib' or 'mculib'. +Currently, the valid @var{library} is @samp{newlib} or @samp{mculib}. This option is only supported for the NDS32 target. @item --with-build-time-tools=@var{dir} gcc/ 2013-10-29 Chung-Ju Wu <jasonw...@gmail.com> Shiva Chen <shiva0...@gmail.com> * doc/invoke.texi (NDS32 options): Document nds32 specific options. * doc/md.texi (NDS32 family): Document nds32 specific constraints. * doc/install.texi (Cross-Compiler-Specific Options): Document --with-nds32-lib for nds32 target. * doc/extend.texi (Function Attributes): Document nds32 specific attributes. Best regards, jasonwucj
5-nds32-documentation.v4.patch
Description: Binary data