On Fri, Oct 07, 2011 at 09:47:15PM +0800, Yao Qi wrote: > 这个patch是fsf gcc doc目录下边和gccint有关文件从 r170935到 > r179462的修改。我们gccint-zh trunk也是根据这个patch进行修改。 > > -- > Yao Qi <qiyaoltc AT gmail DOT com> > > Index: configfiles.texi > =================================================================== > --- configfiles.texi (revision 170935) > +++ configfiles.texi (revision 179462) > @@ -59,6 +59,14 @@ > machine. > @item > @file{tm_p.h}, which includes the header @file{@var{machine}-protos.h} > -that contains prototypes for functions in the target @file{.c} file. > -FIXME: why is such a separate header necessary? > +that contains prototypes for functions in the target > +@file{@var{machine}.c} file. The header @file{@var{machine}-protos.h} > +can include prototypes of functions that use rtl and tree data > +structures inside appropriate @code{#ifdef RTX_CODE} and @code{#ifdef > +TREE_CODE} conditional code segements. The > +@file{@var{machine}-protos.h} is included after the @file{rtl.h} > +and/or @file{tree.h} would have been included. The @file{tm_p.h} also > +includes the header @file{tm-preds.h} which is generated by > +@file{genpreds} program during the build to define the declarations > +and inline functions for the predicate functions. > @end itemize -- Yao Qi <qiyaoltc AT gmail DOT com> Perilous to all of us are the devices of an art deeper than we ourselves possess. -- Gandalf the Grey [J.R.R. Tolkien, "Lord of the Rings"] ndex: configfiles.texi =================================================================== --- configfiles.texi (revision 374) +++ configfiles.texi (working copy) @@ -86,8 +86,17 @@ @en machine. @en @item @en @file{tm_p.h}, which includes the header @file{@var{machine}-protos.h} -@en that contains prototypes for functions in the target @file{.c} file. -@en FIXME: why is such a separate header necessary? +@en that contains prototypes for functions in the target +@en @file{@var{machine}.c} file. The header @file{@var{machine}-protos.h} +@en can include prototypes of functions that use rtl and tree data +@en structures inside appropriate @code{#ifdef RTX_CODE} and @code{#ifdef +@en TREE_CODE} conditional code segements. The +@en @file{@var{machine}-protos.h} is included after the @file{rtl.h} +@en and/or @file{tree.h} would have been included. The @file{tm_p.h} also +@en includes the header @file{tm-preds.h} which is generated by +@en @file{genpreds} program during the build to define the declarations +@en and inline functions for the predicate functions. + @en @end itemize @itemize @bullet @item @@ -97,7 +106,18 @@ @item @file{tconfig.h}, 供运行在target机器上的程序和库使用。 @item -@file{tm_p.h}, 包括了含有target机器上@file{.c} -文件中的函数原形的头文件@file{@var{machine}-protos.h}。 -FIXME:为什么需要这样一个独立的头文件? +@en @file{tm_p.h}, 包括了含有target机器上@file{.c} +@en 文件中的函数原形的头文件@file{@var{machine}-protos.h}。 +@en FIXME:为什么需要这样一个独立的头文件? +@file{tm_p.h}, which includes the header @file{@var{machine}-protos.h} +that contains prototypes for functions in the target +@file{@var{machine}.c} file. The header @file{@var{machine}-protos.h} +can include prototypes of functions that use rtl and tree data +structures inside appropriate @code{#ifdef RTX_CODE} and @code{#ifdef +TREE_CODE} conditional code segements. The +@file{@var{machine}-protos.h} is included after the @file{rtl.h} +and/or @file{tree.h} would have been included. The @file{tm_p.h} also +includes the header @file{tm-preds.h} which is generated by +@file{genpreds} program during the build to define the declarations +and inline functions for the predicate functions. @end itemize