diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/gnat_rm.texi | 38 | ||||
-rw-r--r-- | gcc/ada/gnat_ug.texi | 71 | ||||
-rw-r--r-- | gcc/ada/gnat_ug_unx.texi | 38 | ||||
-rw-r--r-- | gcc/ada/gnat_ug_vms.texi | 38 | ||||
-rw-r--r-- | gcc/ada/gnat_ug_vxw.texi | 38 | ||||
-rw-r--r-- | gcc/ada/gnat_ug_wnt.texi | 38 | ||||
-rw-r--r-- | gcc/doc/cpp.texi | 12 | ||||
-rw-r--r-- | gcc/doc/gcc.texi | 51 | ||||
-rw-r--r-- | gcc/doc/gccint.texi | 50 | ||||
-rw-r--r-- | gcc/doc/install.texi | 10 | ||||
-rw-r--r-- | gcc/f/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/f/g77.texi | 66 | ||||
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/gcj.texi | 76 | ||||
-rw-r--r-- | gcc/treelang/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/treelang/treelang.texi | 62 | ||||
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/docs/html/17_intro/porting.html | 652 | ||||
-rw-r--r-- | libstdc++-v3/docs/html/17_intro/porting.texi | 36 |
21 files changed, 618 insertions, 686 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e864c86..0693b60 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> + * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi: + Use @copying. + +2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> + * configure.in: Increase makeinfo version requirement to 4.[2-9]. * configure: Regenerate. * doc/install.texi: Update Texinfo version requirement. diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 87b4ba8..046347d 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> + + * gnat_rm.texi, gnat_ug.texi: Use @copying. + * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, + gnat_ug_wnt.texi: Regenerate. + 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk> * gnat_rm.texi: Include gcc-common.texi. Use GCC version number diff --git a/gcc/ada/gnat_rm.texi b/gcc/ada/gnat_rm.texi index aa09ad8..dd43cf0 100644 --- a/gcc/ada/gnat_rm.texi +++ b/gcc/ada/gnat_rm.texi @@ -8,7 +8,7 @@ @c o @c G N A T _ RM o @c o -@c $Revision: 1.8 $ +@c $Revision: 1.9 $ @c o @c Copyright (C) 1995-2002 Free Software Foundation o @c o @@ -28,18 +28,8 @@ @direntry * GNAT Reference Manual: (gnat_rm). Reference Manual for GNU Ada tools. @end direntry -@titlepage - - -@title GNAT Reference Manual -@subtitle GNAT, The GNU Ada 95 Compiler -@subtitle GNAT Version for GCC @value{version-GCC} -@author Ada Core Technologies, Inc. - -@page -@vskip 0pt plus 1filll - +@copying Copyright @copyright{} 1995-2001, Free Software Foundation Permission is granted to copy, distribute and/or modify this document @@ -49,7 +39,20 @@ with the Invariant Sections being ``GNU Free Documentation License'', with the Front-Cover Texts being ``GNAT Reference Manual'', and with no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. +@end copying + +@titlepage + + +@title GNAT Reference Manual +@subtitle GNAT, The GNU Ada 95 Compiler +@subtitle GNAT Version for GCC @value{version-GCC} +@author Ada Core Technologies, Inc. + +@page +@vskip 0pt plus 1filll +@insertcopying @end titlepage @ifnottex @@ -65,16 +68,7 @@ GNAT Version for GCC @value{version-GCC} Ada Core Technologies, Inc. - -Copyright @copyright{} 1995-2001, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being ``GNAT Reference Manual'', and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @menu diff --git a/gcc/ada/gnat_ug.texi b/gcc/ada/gnat_ug.texi index 784adb4..8faa273 100644 --- a/gcc/ada/gnat_ug.texi +++ b/gcc/ada/gnat_ug.texi @@ -78,6 +78,31 @@ @syncodeindex fn cp @c %**end of header +@copying +Copyright @copyright{} 1995-2002, Free Software Foundation + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +or any later version published by the Free Software Foundation; +with the Invariant Sections being ``GNU Free Documentation License'', with the +Front-Cover Texts being +@ifset vms +``GNAT User's Guide for OpenVMS Alpha'', +@end ifset +@ifset wnt +``GNAT User's Guide for Windows NT'', +@end ifset +@ifset unx +``GNAT User's Guide for Unix Platforms'', +@end ifset +@ifset vxworks +``GNAT User's Guide for Cross Platforms'', +@end ifset +and with no Back-Cover Texts. +A copy of the license is included in the section entitled ``GNU +Free Documentation License''. +@end copying + @titlepage @ifset vms @@ -108,28 +133,7 @@ @page @vskip 0pt plus 1filll -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -@ifset vms -``GNAT User's Guide for OpenVMS Alpha'', -@end ifset -@ifset wnt -``GNAT User's Guide for Windows NT'', -@end ifset -@ifset unx -``GNAT User's Guide for Unix Platforms'', -@end ifset -@ifset vxworks -``GNAT User's Guide for Cross Platforms'', -@end ifset -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @end titlepage @@ -159,28 +163,7 @@ GNAT Version for GCC @value{version-GCC} Ada Core Technologies, Inc. -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -@ifset vms -``GNAT User's Guide for OpenVMS Alpha'', -@end ifset -@ifset wnt -``GNAT User's Guide for Windows NT'', -@end ifset -@ifset unx -``GNAT User's Guide for Unix Platforms'', -@end ifset -@ifset vxworks -``GNAT User's Guide for Cross Platforms'', -@end ifset -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @menu * About This Guide:: diff --git a/gcc/ada/gnat_ug_unx.texi b/gcc/ada/gnat_ug_unx.texi index 2aae3d8..b567e31 100644 --- a/gcc/ada/gnat_ug_unx.texi +++ b/gcc/ada/gnat_ug_unx.texi @@ -64,6 +64,20 @@ @syncodeindex fn cp @c %**end of header +@copying +Copyright @copyright{} 1995-2002, Free Software Foundation + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +or any later version published by the Free Software Foundation; +with the Invariant Sections being ``GNU Free Documentation License'', with the +Front-Cover Texts being +``GNAT User's Guide for Unix Platforms'', +and with no Back-Cover Texts. +A copy of the license is included in the section entitled ``GNU +Free Documentation License''. +@end copying + @titlepage @@ -80,17 +94,7 @@ @page @vskip 0pt plus 1filll -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for Unix Platforms'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @end titlepage @@ -109,17 +113,7 @@ GNAT Version for GCC @value{version-GCC} Ada Core Technologies, Inc. -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for Unix Platforms'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @menu * About This Guide:: diff --git a/gcc/ada/gnat_ug_vms.texi b/gcc/ada/gnat_ug_vms.texi index 647e0e3..5c6834f 100644 --- a/gcc/ada/gnat_ug_vms.texi +++ b/gcc/ada/gnat_ug_vms.texi @@ -64,6 +64,20 @@ @syncodeindex fn cp @c %**end of header +@copying +Copyright @copyright{} 1995-2002, Free Software Foundation + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +or any later version published by the Free Software Foundation; +with the Invariant Sections being ``GNU Free Documentation License'', with the +Front-Cover Texts being +``GNAT User's Guide for OpenVMS Alpha'', +and with no Back-Cover Texts. +A copy of the license is included in the section entitled ``GNU +Free Documentation License''. +@end copying + @titlepage @title GNAT User's Guide @@ -80,17 +94,7 @@ @page @vskip 0pt plus 1filll -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for OpenVMS Alpha'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @end titlepage @@ -109,17 +113,7 @@ GNAT Version for GCC @value{version-GCC} Ada Core Technologies, Inc. -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for OpenVMS Alpha'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @menu * About This Guide:: diff --git a/gcc/ada/gnat_ug_vxw.texi b/gcc/ada/gnat_ug_vxw.texi index 5c7ac93..6ea120e 100644 --- a/gcc/ada/gnat_ug_vxw.texi +++ b/gcc/ada/gnat_ug_vxw.texi @@ -64,6 +64,20 @@ @syncodeindex fn cp @c %**end of header +@copying +Copyright @copyright{} 1995-2002, Free Software Foundation + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +or any later version published by the Free Software Foundation; +with the Invariant Sections being ``GNU Free Documentation License'', with the +Front-Cover Texts being +``GNAT User's Guide for Cross Platforms'', +and with no Back-Cover Texts. +A copy of the license is included in the section entitled ``GNU +Free Documentation License''. +@end copying + @titlepage @@ -80,17 +94,7 @@ @page @vskip 0pt plus 1filll -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for Cross Platforms'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @end titlepage @@ -109,17 +113,7 @@ GNAT Version for GCC @value{version-GCC} Ada Core Technologies, Inc. -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for Cross Platforms'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @menu * About This Guide:: diff --git a/gcc/ada/gnat_ug_wnt.texi b/gcc/ada/gnat_ug_wnt.texi index 102823d..7a3faa5 100644 --- a/gcc/ada/gnat_ug_wnt.texi +++ b/gcc/ada/gnat_ug_wnt.texi @@ -64,6 +64,20 @@ @syncodeindex fn cp @c %**end of header +@copying +Copyright @copyright{} 1995-2002, Free Software Foundation + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +or any later version published by the Free Software Foundation; +with the Invariant Sections being ``GNU Free Documentation License'', with the +Front-Cover Texts being +``GNAT User's Guide for Windows NT'', +and with no Back-Cover Texts. +A copy of the license is included in the section entitled ``GNU +Free Documentation License''. +@end copying + @titlepage @@ -80,17 +94,7 @@ @page @vskip 0pt plus 1filll -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for Windows NT'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @end titlepage @@ -109,17 +113,7 @@ GNAT Version for GCC @value{version-GCC} Ada Core Technologies, Inc. -Copyright @copyright{} 1995-2002, Free Software Foundation - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 -or any later version published by the Free Software Foundation; -with the Invariant Sections being ``GNU Free Documentation License'', with the -Front-Cover Texts being -``GNAT User's Guide for Windows NT'', -and with no Back-Cover Texts. -A copy of the license is included in the section entitled ``GNU -Free Documentation License''. +@insertcopying @menu * About This Guide:: diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index a0366e9..a6cf3a1 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -6,7 +6,7 @@ @c @cropmarks @c @finalout -@macro copyrightnotice +@copying @c man begin COPYRIGHT Copyright @copyright{} 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 @@ -23,9 +23,7 @@ section entitled ``GNU Free Documentation License''. man page gfdl(7). @c man end @end ignore -@end macro -@macro covertexts @c man begin COPYRIGHT This manual contains no Invariant Sections. The Front-Cover Texts are (a) (see below), and the Back-Cover Texts are (b) (see below). @@ -40,7 +38,7 @@ This manual contains no Invariant Sections. The Front-Cover Texts are software. Copies published by the Free Software Foundation raise funds for GNU development. @c man end -@end macro +@end copying @macro gcctabopt{body} @code{\body\} @@ -70,8 +68,7 @@ This manual contains no Invariant Sections. The Front-Cover Texts are @c There is a fill at the bottom of the page, so we need a filll to @c override it. @vskip 0pt plus 1filll -@copyrightnotice{} -@covertexts{} +@insertcopying @end titlepage @contents @page @@ -180,8 +177,7 @@ Obsolete Features @end detailmenu @end menu -@copyrightnotice{} -@covertexts{} +@insertcopying @end ifnottex @node Overview diff --git a/gcc/doc/gcc.texi b/gcc/doc/gcc.texi index 1e9fcf4..90b3312c 100644 --- a/gcc/doc/gcc.texi +++ b/gcc/doc/gcc.texi @@ -60,23 +60,10 @@ \global\setfont\defbf\ttbshape{10}{\magstep1} @end tex -@macro copyrightnotice +@copying Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. -@end macro -@ifnottex -@dircategory Programming -@direntry -* gcc: (gcc). The GNU Compiler Collection. -@end direntry -This file documents the use of the GNU compilers. -@sp 1 -Published by the Free Software Foundation@* -59 Temple Place - Suite 330@* -Boston, MA 02111-1307 USA -@sp 1 -@copyrightnotice{} -@sp 1 + Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the @@ -94,6 +81,20 @@ included in the section entitled ``GNU Free Documentation License''. You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development. +@end copying +@ifnottex +@dircategory Programming +@direntry +* gcc: (gcc). The GNU Compiler Collection. +@end direntry +This file documents the use of the GNU compilers. +@sp 1 +Published by the Free Software Foundation@* +59 Temple Place - Suite 330@* +Boston, MA 02111-1307 USA +@sp 1 +@insertcopying +@sp 1 @end ifnottex @setchapternewpage odd @@ -108,8 +109,6 @@ included in the section entitled ``GNU Free Documentation License''. @center for GCC @value{version-GCC} @page @vskip 0pt plus 1filll -@copyrightnotice{} -@sp 2 For GCC Version @value{version-GCC}@* @sp 1 Published by the Free Software Foundation @* @@ -122,23 +121,7 @@ Printed copies are available for $50 each.@* ISBN 1-882114-37-X @end ifset @sp 1 -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. +@insertcopying @end titlepage @summarycontents @contents diff --git a/gcc/doc/gccint.texi b/gcc/doc/gccint.texi index 35bd02c..f6ad48a 100644 --- a/gcc/doc/gccint.texi +++ b/gcc/doc/gccint.texi @@ -46,23 +46,10 @@ \global\setfont\defbf\ttbshape{10}{\magstep1} @end tex -@macro copyrightnotice +@copying Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. -@end macro -@ifnottex -@dircategory Programming -@direntry -* gccint: (gccint). Internals of the GNU Compiler Collection. -@end direntry -This file documents the internals of the GNU compilers. -@sp 1 -Published by the Free Software Foundation@* -59 Temple Place - Suite 330@* -Boston, MA 02111-1307 USA -@sp 1 -@copyrightnotice{} -@sp 1 + Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the @@ -80,6 +67,19 @@ included in the section entitled ``GNU Free Documentation License''. You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development. +@end copying +@ifnottex +@dircategory Programming +@direntry +* gccint: (gccint). Internals of the GNU Compiler Collection. +@end direntry +This file documents the internals of the GNU compilers. +@sp 1 +Published by the Free Software Foundation@* +59 Temple Place - Suite 330@* +Boston, MA 02111-1307 USA +@sp 1 +@insertcopying @end ifnottex @setchapternewpage odd @@ -94,8 +94,6 @@ included in the section entitled ``GNU Free Documentation License''. @center for GCC @value{version-GCC} @page @vskip 0pt plus 1filll -@copyrightnotice{} -@sp 2 For GCC Version @value{version-GCC}@* @sp 1 Published by the Free Software Foundation @* @@ -108,23 +106,7 @@ Printed copies are available for $50 each.@* ISBN 1-882114-37-X @end ifset @sp 1 -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. +@insertcopying @end titlepage @summarycontents @contents diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 76586cb..315ea8e 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -58,7 +58,7 @@ @end ifnothtml @c Part 2 Summary Description and Copyright -@macro copyrightnotice +@copying Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. @sp 1 @@ -79,9 +79,9 @@ Free Documentation License}''. You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development. -@end macro +@end copying @ifinfo -@copyrightnotice{} +@insertcopying @end ifinfo @c Part 3 Titlepage and Copyright @@ -93,7 +93,7 @@ Free Documentation License}''. @c The following two commands start the copyright page. @page @vskip 0pt plus 1filll -@copyrightnotice{} +@insertcopying @end titlepage @c Part 4 Top node and Master Menu @@ -197,7 +197,7 @@ not yet been merged into the main part of this manual. @ifhtml @uref{./index.html,,Return to the GCC Installation page} -@copyrightnotice{} +@insertcopying @end ifhtml @end ifset diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index a88ff5f..d826438 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> + + * g77.texi: Use @copying. + 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk> * root.texi: Include gcc-common.texi. diff --git a/gcc/f/g77.texi b/gcc/f/g77.texi index 9e9b516..1ae25e4 100644 --- a/gcc/f/g77.texi +++ b/gcc/f/g77.texi @@ -62,6 +62,29 @@ @c \global\normaloffset =0.75in @c @end tex +@copying +Copyright @copyright{} @value{copyrights-g77} Free Software Foundation, Inc. + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 or +any later version published by the Free Software Foundation; with the +Invariant Sections being ``GNU General Public License'' and ``Funding +Free Software'', the Front-Cover +texts being (a) (see below), and with the Back-Cover Texts being (b) +(see below). A copy of the license is included in the section entitled +``GNU Free Documentation License''. + +(a) The FSF's Front-Cover Text is: + + A GNU Manual + +(b) The FSF's Back-Cover Text is: + + You have freedom to copy and modify this GNU Manual, like GNU + software. Copies published by the Free Software Foundation raise + funds for GNU development. +@end copying + @ifinfo @dircategory Programming @direntry @@ -87,27 +110,7 @@ Published by the Free Software Foundation 59 Temple Place - Suite 330 Boston, MA 02111-1307 USA -Copyright (C) @value{copyrights-g77} Free Software Foundation, Inc. - - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'' and ``Funding -Free Software'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. +@insertcopying @end ifinfo Contributed by James Craig Burley (@email{@value{email-burley}}). @@ -136,8 +139,6 @@ was contributed to Craig by David Ronis (@email{ronis@@onsager.chem.mcgill.ca}). @center for version @value{which-g77} @page @vskip 0pt plus 1filll -Copyright @copyright{} @value{copyrights-g77} Free Software Foundation, Inc. -@sp 2 For the @value{which-g77} Version* @sp 1 Published by the Free Software Foundation @* @@ -147,24 +148,7 @@ Boston, MA 02111-1307, USA@* @c Printed copies are available for $? each.@* @c ISBN ??? @sp 1 -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'' and ``Funding -Free Software'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. +@insertcopying @end titlepage @summarycontents @contents diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 7fb17a8..8a9d380 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> + + * gcj.texi: Use @copying. + 2002-12-27 Mark Mitchell <mark@codesourcery.com> * gjavah.c (print_name_for_stub_or_jni): Adjust call to diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi index d527e40..5c352d5 100644 --- a/gcc/java/gcj.texi +++ b/gcc/java/gcj.texi @@ -15,33 +15,9 @@ @c Versions @set which-gcj GCC-@value{version-GCC} -@ifinfo -@format -@dircategory Programming -@direntry -* Gcj: (gcj). Ahead-of-time compiler for the Java language -@end direntry - -@dircategory Individual utilities -@direntry -* gcjh: (gcj)Invoking gcjh. - Generate header files from Java class files -* jv-scan: (gcj)Invoking jv-scan. - Print information about Java source files -* jcf-dump: (gcj)Invoking jcf-dump. - Print information about Java class files -* gij: (gcj)Invoking gij. GNU interpreter for Java bytecode -* jv-convert: (gcj)Invoking jv-convert. - Convert file from one encoding to another -* rmic: (gcj)Invoking rmic. - Generate stubs for Remote Method Invocation. -* rmiregistry: (gcj)Invoking rmiregistry. - The remote object registry. -@end direntry -@end format - +@copying @c man begin COPYRIGHT -Copyright (C) @value{copyrights-gcj} Free Software Foundation, Inc. +Copyright @copyright{} @value{copyrights-gcj} Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or @@ -70,6 +46,34 @@ man page gfdl(7). software. Copies published by the Free Software Foundation raise funds for GNU development. @c man end +@end copying + +@ifinfo +@format +@dircategory Programming +@direntry +* Gcj: (gcj). Ahead-of-time compiler for the Java language +@end direntry + +@dircategory Individual utilities +@direntry +* gcjh: (gcj)Invoking gcjh. + Generate header files from Java class files +* jv-scan: (gcj)Invoking jv-scan. + Print information about Java source files +* jcf-dump: (gcj)Invoking jcf-dump. + Print information about Java class files +* gij: (gcj)Invoking gij. GNU interpreter for Java bytecode +* jv-convert: (gcj)Invoking jv-convert. + Convert file from one encoding to another +* rmic: (gcj)Invoking rmic. + Generate stubs for Remote Method Invocation. +* rmiregistry: (gcj)Invoking rmiregistry. + The remote object registry. +@end direntry +@end format + +@insertcopying @end ifinfo @titlepage @@ -78,31 +82,13 @@ man page gfdl(7). @page @vskip 0pt plus 1filll -Copyright @copyright{} @value{copyrights-gcj} Free Software Foundation, Inc. -@sp 2 For the @value{which-gcj} Version* @sp 1 Published by the Free Software Foundation @* 59 Temple Place - Suite 330@* Boston, MA 02111-1307, USA@* @sp 1 -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. +@insertcopying @end titlepage @contents @page diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index a40952b..56c61c1 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,7 @@ +2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> + + * treelang.texi: Use @copying. + 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk> * treelang.texi: Include gcc-common.texi. diff --git a/gcc/treelang/treelang.texi b/gcc/treelang/treelang.texi index 1104d81..fc8d6d4 100644 --- a/gcc/treelang/treelang.texi +++ b/gcc/treelang/treelang.texi @@ -81,6 +81,28 @@ @c \global\normaloffset =0.75in @c @end tex +@copying +Copyright @copyright{} @value{copyrights-treelang} Free Software Foundation, Inc. + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 or +any later version published by the Free Software Foundation; with the +Invariant Sections being ``GNU General Public License'', the Front-Cover +texts being (a) (see below), and with the Back-Cover Texts being (b) +(see below). A copy of the license is included in the section entitled +``GNU Free Documentation License''. + +(a) The FSF's Front-Cover Text is: + + A GNU Manual + +(b) The FSF's Back-Cover Text is: + + You have freedom to copy and modify this GNU Manual, like GNU + software. Copies published by the Free Software Foundation raise + funds for GNU development. +@end copying + @ifnottex @dircategory Programming @direntry @@ -107,25 +129,7 @@ Published by the Free Software Foundation 59 Temple Place - Suite 330 Boston, MA 02111-1307 USA -Copyright (C) @value{copyrights-treelang} Free Software Foundation, Inc. - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. +@insertcopying @end ifnottex treelang was Contributed by Tim Josling (@email{@value{email-josling}}). @@ -157,8 +161,6 @@ documentation. @center for version @value{version-treelang} @page @vskip 0pt plus 1filll -Copyright @copyright{} @value{copyrights-treelang} Free Software Foundation, Inc. -@sp 2 For the @value{which-treelang} Version* @sp 1 Published by the Free Software Foundation @* @@ -168,23 +170,7 @@ Boston, MA 02111-1307, USA@* @c Printed copies are available for $? each.@* @c ISBN ??? @sp 1 -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. +@insertcopying @end titlepage @page diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a39f252..1efcc9a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk> + + * docs/html/17_intro/porting.texi: Use @copying. + * docs/html/17_intro/porting.html: Regenerate. + 2002-12-27 Mark Mitchell <mark@codesourcery.com> * config/locale/gnu/ctype_members.cc diff --git a/libstdc++-v3/docs/html/17_intro/porting.html b/libstdc++-v3/docs/html/17_intro/porting.html index c28f89f..7712c44 100644 --- a/libstdc++-v3/docs/html/17_intro/porting.html +++ b/libstdc++-v3/docs/html/17_intro/porting.html @@ -2,60 +2,84 @@ <head> <title>Porting libstdc++-v3</title> <meta http-equiv="Content-Type" content="text/html"> -<meta name=description content="Porting libstdc++-v3"> -<meta name=generator content="makeinfo 4.2"> -<link href="http://www.gnu.org/software/texinfo/" rel=generator-home> +<meta name="description" content="Porting libstdc++-v3"> +<meta name="generator" content="makeinfo 4.3"> +<link href="http://www.gnu.org/software/texinfo/" rel="generator-home"> +<!-- +Copyright © 2000, 2001, 2002 Free Software Foundation, Inc. + + <p>Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 or +any later version published by the Free Software Foundation; with the +Invariant Sections being "GNU General Public License", the Front-Cover +texts being (a) (see below), and with the Back-Cover Texts being (b) +(see below). A copy of the license is included in the section entitled +"GNU Free Documentation License". + + <p>(a) The FSF's Front-Cover Text is: + + <p>A GNU Manual + + <p>(b) The FSF's Back-Cover Text is: + + <p>You have freedom to copy and modify this GNU Manual, like GNU + software. Copies published by the Free Software Foundation raise + funds for GNU development.--> </head> <body> -<h1>Porting libstdc++-v3</h1> +<h1 class="settitle">Porting libstdc++-v3</h1> +<div class="node"> <p><hr> Node:<a name="Top">Top</a>, -Next:<a rel=next accesskey=n href="#Operating%20system">Operating system</a>, -Up:<a rel=up accesskey=u href="#dir">(dir)</a> +Next:<a rel="next" accesskey="n" href="#Operating%20system">Operating system</a>, +Up:<a rel="up" accesskey="u" href="#dir">(dir)</a> <br> +</div> -<h2>Porting libstdc++-v3</h2> +<h2 class="unnumbered">Porting libstdc++-v3</h2> -<p>This document explains how to port libstdc++-v3 (the GNU C++ library) to + <p>This document explains how to port libstdc++-v3 (the GNU C++ library) to a new target. -<p>In order to make the GNU C++ library (libstdc++-v3) work with a new + <p>In order to make the GNU C++ library (libstdc++-v3) work with a new target, you must edit some configuration files and provide some new header files. Unless this is done, libstdc++-v3 will use generic settings which may not be correct for your target; even if they are correct, they will likely be inefficient. -<p>Before you get started, make sure that you have a working C library on + <p>Before you get started, make sure that you have a working C library on your target. The C library need not precisely comply with any particular standard, but should generally conform to the requirements imposed by the ANSI/ISO standard. -<p>In addition, you should try to verify that the C++ compiler generally + <p>In addition, you should try to verify that the C++ compiler generally works. It is difficult to test the C++ compiler without a working library, but you should at least try some minimal test cases. -<p>Here are the primary steps required to port the library: + <p>Here are the primary steps required to port the library: -<ul> -<li><a accesskey=1 href="#Operating%20system">Operating system</a>: Configuring for your operating system. -<li><a accesskey=2 href="#CPU">CPU</a>: Configuring for your processor chip. -<li><a accesskey=3 href="#Character%20types">Character types</a>: Implementing character classification. -<li><a accesskey=4 href="#Thread%20safety">Thread safety</a>: Implementing atomic operations. -<li><a accesskey=5 href="#Numeric%20limits">Numeric limits</a>: Implementing numeric limits. -<li><a accesskey=6 href="#Libtool">Libtool</a>: Using libtool. -<li><a accesskey=7 href="#GNU%20Free%20Documentation%20License">GNU Free Documentation License</a>: How you can copy and share this manual. +<ul class="menu"> +<li><a accesskey="1" href="#Operating%20system">Operating system</a>: Configuring for your operating system. +<li><a accesskey="2" href="#CPU">CPU</a>: Configuring for your processor chip. +<li><a accesskey="3" href="#Character%20types">Character types</a>: Implementing character classification. +<li><a accesskey="4" href="#Thread%20safety">Thread safety</a>: Implementing atomic operations. +<li><a accesskey="5" href="#Numeric%20limits">Numeric limits</a>: Implementing numeric limits. +<li><a accesskey="6" href="#Libtool">Libtool</a>: Using libtool. +<li><a accesskey="7" href="#GNU%20Free%20Documentation%20License">GNU Free Documentation License</a>: How you can copy and share this manual. </ul> +<div class="node"> <p><hr> Node:<a name="Operating%20system">Operating system</a>, -Next:<a rel=next accesskey=n href="#CPU">CPU</a>, -Previous:<a rel=previous accesskey=p href="#Top">Top</a>, -Up:<a rel=up accesskey=u href="#Top">Top</a> +Next:<a rel="next" accesskey="n" href="#CPU">CPU</a>, +Previous:<a rel="previous" accesskey="p" href="#Top">Top</a>, +Up:<a rel="up" accesskey="u" href="#Top">Top</a> <br> +</div> -<h2>Operating system</h2> +<h2 class="chapter">Operating system</h2> -<p>If you are porting to a new operating system (as opposed to a new chip + <p>If you are porting to a new operating system (as opposed to a new chip using an existing operating system), you will need to create a new directory in the <code>config/os</code> hierarchy. For example, the IRIX configuration files are all in <code>config/os/irix</code>. There is no set @@ -68,7 +92,7 @@ directory. The important information is that there needs to be a directory under <code>config/os</code> to store the files for your operating system. -<p>You might have to change the <code>configure.target</code> file to ensure that + <p>You might have to change the <code>configure.target</code> file to ensure that your new directory is activated. Look for the switch statement that sets <code>os_include_dir</code>, and add a pattern to handle your operating system if the default will not suffice. The switch statement switches on only @@ -76,17 +100,17 @@ the OS portion of the standard target triplet; e.g., the <code>solaris2.8</code> in <code>sparc-sun-solaris2.8</code>. If the new directory is named after the OS portion of the triplet (the default), then nothing needs to be changed. -<p>The first file to create in this directory, should be called + <p>The first file to create in this directory, should be called <code>os_defines.h</code>. This file contains basic macro definitions that are required to allow the C++ library to work with your C library. This file should provide macro definitions for <code>__off_t</code>, <code>__off64_t</code>, and <code>__ssize_t</code>. Typically, this just looks like: -<br><pre>#define __off_t off_t -#define __off64_t off64_t -#define __ssize_t ssize_t -</pre> +<pre class="example"> #define __off_t off_t + #define __off64_t off64_t + #define __ssize_t ssize_t + </pre> <p>You don't have to provide these definitions if your system library already defines these types - but the only library known to provide @@ -95,7 +119,7 @@ provide these macros. Note that this file does not have to include a header file that defines <code>off_t</code>, or the other types; you simply have to provide the macros. -<p>In addition, several libstdc++-v3 source files unconditionally define + <p>In addition, several libstdc++-v3 source files unconditionally define the macro <code>_POSIX_SOURCE</code>. On many systems, defining this macro causes large portions of the C library header files to be eliminated at preprocessing time. Therefore, you may have to <code>#undef</code> this @@ -110,71 +134,75 @@ need to define. You will need to add them to the target. It will not work to simply define these macros in <code>os_defines.h</code>. -<p>At this time, there is one libstdc++-v3-specific macro which may be + <p>At this time, there is one libstdc++-v3-specific macro which may be defined. <code>_G_USING_THUNKS</code> may be defined to 0 to express that the port doesn't use thunks (although it is unclear that this is still useful since libio support isn't currently working and the g++ v3 ABI invalidates the assumption that some ports don't use thunks). -<p>Finally, you should bracket the entire file in an include-guard, like + <p>Finally, you should bracket the entire file in an include-guard, like this: -<br><pre>#ifndef _GLIBCPP_OS_DEFINES -#define _GLIBCPP_OS_DEFINES -... -#endif -</pre> +<pre class="example"> #ifndef _GLIBCPP_OS_DEFINES + #define _GLIBCPP_OS_DEFINES + ... + #endif + </pre> -<p>We recommend copying an existing <code>os_defines.h</code> to use as a + <p>We recommend copying an existing <code>os_defines.h</code> to use as a starting point. +<div class="node"> <p><hr> Node:<a name="CPU">CPU</a>, -Next:<a rel=next accesskey=n href="#Character%20types">Character types</a>, -Previous:<a rel=previous accesskey=p href="#Operating%20system">Operating system</a>, -Up:<a rel=up accesskey=u href="#Top">Top</a> +Next:<a rel="next" accesskey="n" href="#Character%20types">Character types</a>, +Previous:<a rel="previous" accesskey="p" href="#Operating%20system">Operating system</a>, +Up:<a rel="up" accesskey="u" href="#Top">Top</a> <br> +</div> -<h2>CPU</h2> +<h2 class="chapter">CPU</h2> -<p>If you are porting to a new chip (as opposed to a new operating system + <p>If you are porting to a new chip (as opposed to a new operating system running on an existing chip), you will need to create a new directory in the <code>config/cpu</code> hierarchy. Much like the <a href="#Operating%20system">Operating system</a> setup, there are no strict rules on how to organize the CPU configuration directory, but careful naming choices will allow the configury to find your setup files without explicit help. -<p>We recommend that for a target triplet <code><CPU>-<vendor>-<OS></code>, you + <p>We recommend that for a target triplet <code><CPU>-<vendor>-<OS></code>, you name your configuration directory <code>config/cpu/<CPU></code>. If you do this, the configury will find the directory itself. Otherwise you will need to edit the <code>configure.target</code> file and, in the switch statement that sets <code>cpu_include_dir</code>, add a pattern to handle your chip. -<p>Note that some chip families share a single configuration directory, for + <p>Note that some chip families share a single configuration directory, for example, <code>alpha</code>, <code>alphaev5</code>, and <code>alphaev6</code> all use the <code>config/cpu/alpha</code> directory, and there is an entry in the <code>configure.target</code> switch statement to handle this. -<p>The <code>cpu_include_dir</code> sets default locations for the files controlling + <p>The <code>cpu_include_dir</code> sets default locations for the files controlling <a href="#Thread%20safety">Thread safety</a> and <a href="#Numeric%20limits">Numeric limits</a>, if the defaults are not appropriate for your chip. +<div class="node"> <p><hr> Node:<a name="Character%20types">Character types</a>, -Next:<a rel=next accesskey=n href="#Thread%20safety">Thread safety</a>, -Previous:<a rel=previous accesskey=p href="#CPU">CPU</a>, -Up:<a rel=up accesskey=u href="#Top">Top</a> +Next:<a rel="next" accesskey="n" href="#Thread%20safety">Thread safety</a>, +Previous:<a rel="previous" accesskey="p" href="#CPU">CPU</a>, +Up:<a rel="up" accesskey="u" href="#Top">Top</a> <br> +</div> -<h2>Character types</h2> +<h2 class="chapter">Character types</h2> -<p>The library requires that you provide three header files to implement + <p>The library requires that you provide three header files to implement character classification, analogous to that provided by the C libraries <code><ctype.h></code> header. You can model these on the files provided in <code>config/os/generic</code>. However, these files will almost certainly need some modification. -<p>The first file to write is <code>ctype_base.h</code>. This file provides + <p>The first file to write is <code>ctype_base.h</code>. This file provides some very basic information about character classification. The libstdc++-v3 library assumes that your C library implements <code><ctype.h></code> by using a table (indexed by character code) containing integers, where each of @@ -184,33 +212,33 @@ file gives the type of the integer, and the values of the various bit masks. You will have to peer at your own <code><ctype.h></code> to figure out how to define the values required by this file. -<p>The <code>ctype_base.h</code> header file does not need include guards. + <p>The <code>ctype_base.h</code> header file does not need include guards. It should contain a single <code>struct</code> definition called <code>ctype_base</code>. This <code>struct</code> should contain two type declarations, and one enumeration declaration, like this example, taken from the IRIX configuration: -<br><pre>struct ctype_base -{ - typedef unsigned int mask; - typedef int* __to_type; - - enum - { - space = _ISspace, - print = _ISprint, - cntrl = _IScntrl, - upper = _ISupper, - lower = _ISlower, - alpha = _ISalpha, - digit = _ISdigit, - punct = _ISpunct, - xdigit = _ISxdigit, - alnum = _ISalnum, - graph = _ISgraph - }; -}; -</pre> +<pre class="example"> struct ctype_base + { + typedef unsigned int mask; + typedef int* __to_type; + + enum + { + space = _ISspace, + print = _ISprint, + cntrl = _IScntrl, + upper = _ISupper, + lower = _ISlower, + alpha = _ISalpha, + digit = _ISdigit, + punct = _ISpunct, + xdigit = _ISxdigit, + alnum = _ISalnum, + graph = _ISgraph + }; + }; + </pre> <p>The <code>mask</code> type is the type of the elements in the table. If your C library uses a table to map lower-case numbers to upper-case numbers, @@ -220,29 +248,29 @@ penalty, or if your library doesn't implement <code>toupper</code> and <code>tolower</code> in this way, you can pick any pointer-to-integer type, but you must still define the type. -<p>The enumeration should give definitions for all the values in the above + <p>The enumeration should give definitions for all the values in the above example, using the values from your native <code><ctype.h></code>. They can be given symbolically (as above), or numerically, if you prefer. You do not have to include <code><ctype.h></code> in this header; it will always be included before <code>ctype_base.h</code> is included. -<p>The next file to write is <code>ctype_noninline.h</code>, which also does + <p>The next file to write is <code>ctype_noninline.h</code>, which also does not require include guards. This file defines a few member functions that will be included in <code>include/bits/locale_facets.h</code>. The first function that must be written is the <code>ctype<char>::ctype</code> constructor. Here is the IRIX example: -<br><pre>ctype<char>::ctype(const mask* __table = 0, bool __del = false, - size_t __refs = 0) - : _Ctype_nois<char>(__refs), _M_del(__table != 0 && __del), - _M_toupper(NULL), - _M_tolower(NULL), - _M_ctable(NULL), - _M_table(!__table - ? (const mask*) (__libc_attr._ctype_tbl->_class + 1) - : __table) - { } -</pre> +<pre class="example"> ctype<char>::ctype(const mask* __table = 0, bool __del = false, + size_t __refs = 0) + : _Ctype_nois<char>(__refs), _M_del(__table != 0 && __del), + _M_toupper(NULL), + _M_tolower(NULL), + _M_ctable(NULL), + _M_table(!__table + ? (const mask*) (__libc_attr._ctype_tbl->_class + 1) + : __table) + { } + </pre> <p>There are two parts of this that you might choose to alter. The first, and most important, is the line involving <code>__libc_attr</code>. That is @@ -253,140 +281,142 @@ operating system's tables to map upper-case letters to lower-case, and vice versa, you should initialize <code>_M_toupper</code> and <code>_M_tolower</code> with those tables, in similar fashion. -<p>Now, you have to write two functions to convert from upper-case to + <p>Now, you have to write two functions to convert from upper-case to lower-case, and vice versa. Here are the IRIX versions: -<br><pre>char -ctype<char>::do_toupper(char __c) const -{ return _toupper(__c); } - -char -ctype<char>::do_tolower(char __c) const -{ return _tolower(__c); } -</pre> +<pre class="example"> char + ctype<char>::do_toupper(char __c) const + { return _toupper(__c); } + + char + ctype<char>::do_tolower(char __c) const + { return _tolower(__c); } + </pre> <p>Your C library provides equivalents to IRIX's <code>_toupper</code> and <code>_tolower</code>. If you initialized <code>_M_toupper</code> and <code>_M_tolower</code> above, then you could use those tables instead. -<p>Finally, you have to provide two utility functions that convert strings + <p>Finally, you have to provide two utility functions that convert strings of characters. The versions provided here will always work - but you could use specialized routines for greater performance if you have machinery to do that on your system: -<br><pre>const char* -ctype<char>::do_toupper(char* __low, const char* __high) const -{ - while (__low < __high) - { - *__low = do_toupper(*__low); - ++__low; - } - return __high; -} - -const char* -ctype<char>::do_tolower(char* __low, const char* __high) const -{ - while (__low < __high) - { - *__low = do_tolower(*__low); - ++__low; - } - return __high; -} -</pre> - -<p>You must also provide the <code>ctype_inline.h</code> file, which +<pre class="example"> const char* + ctype<char>::do_toupper(char* __low, const char* __high) const + { + while (__low < __high) + { + *__low = do_toupper(*__low); + ++__low; + } + return __high; + } + + const char* + ctype<char>::do_tolower(char* __low, const char* __high) const + { + while (__low < __high) + { + *__low = do_tolower(*__low); + ++__low; + } + return __high; + } + </pre> + + <p>You must also provide the <code>ctype_inline.h</code> file, which contains a few more functions. On most systems, you can just copy <code>config/os/generic/ctype_inline.h</code> and use it on your system. -<p>In detail, the functions provided test characters for particular + <p>In detail, the functions provided test characters for particular properties; they are analogous to the functions like <code>isalpha</code> and <code>islower</code> provided by the C library. -<p>The first function is implemented like this on IRIX: + <p>The first function is implemented like this on IRIX: -<br><pre>bool -ctype<char>:: -is(mask __m, char __c) const throw() -{ return (_M_table)[(unsigned char)(__c)] & __m; } -</pre> +<pre class="example"> bool + ctype<char>:: + is(mask __m, char __c) const throw() + { return (_M_table)[(unsigned char)(__c)] & __m; } + </pre> <p>The <code>_M_table</code> is the table passed in above, in the constructor. This is the table that contains the bitmasks for each character. The implementation here should work on all systems. -<p>The next function is: + <p>The next function is: -<br><pre>const char* -ctype<char>:: -is(const char* __low, const char* __high, mask* __vec) const throw() -{ - while (__low < __high) - *__vec++ = (_M_table)[(unsigned char)(*__low++)]; - return __high; -} -</pre> +<pre class="example"> const char* + ctype<char>:: + is(const char* __low, const char* __high, mask* __vec) const throw() + { + while (__low < __high) + *__vec++ = (_M_table)[(unsigned char)(*__low++)]; + return __high; + } + </pre> <p>This function is similar; it copies the masks for all the characters from <code>__low</code> up until <code>__high</code> into the vector given by <code>__vec</code>. -<p>The last two functions again are entirely generic: - -<br><pre>const char* -ctype<char>:: -scan_is(mask __m, const char* __low, const char* __high) const throw() -{ - while (__low < __high && !this->is(__m, *__low)) - ++__low; - return __low; -} - -const char* -ctype<char>:: -scan_not(mask __m, const char* __low, const char* __high) const throw() -{ - while (__low < __high && this->is(__m, *__low)) - ++__low; - return __low; -} -</pre> - + <p>The last two functions again are entirely generic: + +<pre class="example"> const char* + ctype<char>:: + scan_is(mask __m, const char* __low, const char* __high) const throw() + { + while (__low < __high && !this->is(__m, *__low)) + ++__low; + return __low; + } + + const char* + ctype<char>:: + scan_not(mask __m, const char* __low, const char* __high) const throw() + { + while (__low < __high && this->is(__m, *__low)) + ++__low; + return __low; + } + </pre> + +<div class="node"> <p><hr> Node:<a name="Thread%20safety">Thread safety</a>, -Next:<a rel=next accesskey=n href="#Numeric%20limits">Numeric limits</a>, -Previous:<a rel=previous accesskey=p href="#Character%20types">Character types</a>, -Up:<a rel=up accesskey=u href="#Top">Top</a> +Next:<a rel="next" accesskey="n" href="#Numeric%20limits">Numeric limits</a>, +Previous:<a rel="previous" accesskey="p" href="#Character%20types">Character types</a>, +Up:<a rel="up" accesskey="u" href="#Top">Top</a> <br> +</div> -<h2>Thread safety</h2> +<h2 class="chapter">Thread safety</h2> -<p>The C++ library string functionality requires a couple of atomic + <p>The C++ library string functionality requires a couple of atomic operations to provide thread-safety. If you don't take any special action, the library will use stub versions of these functions that are not thread-safe. They will work fine, unless your applications are multi-threaded. -<p>If you want to provide custom, safe, versions of these functions, there + <p>If you want to provide custom, safe, versions of these functions, there are two distinct approaches. One is to provide a version for your CPU, using assembly language constructs. The other is to use the thread-safety primitives in your operating system. In either case, you make a file called <code>atomicity.h</code>, and the variable <code>ATOMICITYH</code> must point to this file. -<p>If you are using the assembly-language approach, put this code in + <p>If you are using the assembly-language approach, put this code in <code>config/cpu/<chip>/atomicity.h</code>, where chip is the name of your processor (see <a href="#CPU">CPU</a>). No additional changes are necessary to locate the file in this case; <code>ATOMICITYH</code> will be set by default. -<p>If you are using the operating system thread-safety primitives approach, + <p>If you are using the operating system thread-safety primitives approach, you can also put this code in the same CPU directory, in which case no more work is needed to locate the file. For examples of this approach, see the <code>atomicity.h</code> file for IRIX or IA64. -<p>Alternatively, if the primitives are more closely related to the OS + <p>Alternatively, if the primitives are more closely related to the OS than they are to the CPU, you can put the <code>atomicity.h</code> file in the <a href="#Operating%20system">Operating system</a> directory instead. In this case, you must edit <code>configure.target</code>, and in the switch statement that handles @@ -394,120 +424,126 @@ operating systems, override the <code>ATOMICITYH</code> variable to point to the appropriate <code>os_include_dir</code>. For examples of this approach, see the <code>atomicity.h</code> file for AIX. -<p>With those bits out of the way, you have to actually write + <p>With those bits out of the way, you have to actually write <code>atomicity.h</code> itself. This file should be wrapped in an include guard named <code>_BITS_ATOMICITY_H</code>. It should define one type, and two functions. -<p>The type is <code>_Atomic_word</code>. Here is the version used on IRIX: + <p>The type is <code>_Atomic_word</code>. Here is the version used on IRIX: -<br><pre>typedef long _Atomic_word; -</pre> +<pre class="example"> typedef long _Atomic_word; + </pre> <p>This type must be a signed integral type supporting atomic operations. If you're using the OS approach, use the same type used by your system's primitives. Otherwise, use the type for which your CPU provides atomic primitives. -<p>Then, you must provide two functions. The bodies of these functions + <p>Then, you must provide two functions. The bodies of these functions must be equivalent to those provided here, but using atomic operations: -<br><pre>static inline _Atomic_word -__attribute__ ((__unused__)) -__exchange_and_add (_Atomic_word* __mem, int __val) -{ - _Atomic_word __result = *__mem; - *__mem += __val; - return __result; -} - -static inline void -__attribute__ ((__unused__)) -__atomic_add (_Atomic_word* __mem, int __val) -{ - *__mem += __val; -} -</pre> - +<pre class="example"> static inline _Atomic_word + __attribute__ ((__unused__)) + __exchange_and_add (_Atomic_word* __mem, int __val) + { + _Atomic_word __result = *__mem; + *__mem += __val; + return __result; + } + + static inline void + __attribute__ ((__unused__)) + __atomic_add (_Atomic_word* __mem, int __val) + { + *__mem += __val; + } + </pre> + +<div class="node"> <p><hr> Node:<a name="Numeric%20limits">Numeric limits</a>, -Next:<a rel=next accesskey=n href="#Libtool">Libtool</a>, -Previous:<a rel=previous accesskey=p href="#Thread%20safety">Thread safety</a>, -Up:<a rel=up accesskey=u href="#Top">Top</a> +Next:<a rel="next" accesskey="n" href="#Libtool">Libtool</a>, +Previous:<a rel="previous" accesskey="p" href="#Thread%20safety">Thread safety</a>, +Up:<a rel="up" accesskey="u" href="#Top">Top</a> <br> +</div> -<h2>Numeric limits</h2> +<h2 class="chapter">Numeric limits</h2> -<p>The C++ library requires information about the fundamental data types, + <p>The C++ library requires information about the fundamental data types, such as the minimum and maximum representable values of each type. You can define each of these values individually, but it is usually easiest just to indicate how many bits are used in each of the data types and let the library do the rest. For information about the macros to define, see the top of <code>include/bits/std_limits.h</code>. -<p>If you need to define any macros, you can do so in <code>os_defines.h</code>. + <p>If you need to define any macros, you can do so in <code>os_defines.h</code>. However, if all operating systems for your CPU are likely to use the same values, you can provide a CPU-specific file instead so that you do not have to provide the same definitions for each operating system. To take that approach, create a new file called <code>cpu_limits.h</code> in your CPU configuration directory (see <a href="#CPU">CPU</a>). +<div class="node"> <p><hr> Node:<a name="Libtool">Libtool</a>, -Next:<a rel=next accesskey=n href="#GNU%20Free%20Documentation%20License">GNU Free Documentation License</a>, -Previous:<a rel=previous accesskey=p href="#Numeric%20limits">Numeric limits</a>, -Up:<a rel=up accesskey=u href="#Top">Top</a> +Next:<a rel="next" accesskey="n" href="#GNU%20Free%20Documentation%20License">GNU Free Documentation License</a>, +Previous:<a rel="previous" accesskey="p" href="#Numeric%20limits">Numeric limits</a>, +Up:<a rel="up" accesskey="u" href="#Top">Top</a> <br> +</div> -<h2>Libtool</h2> +<h2 class="chapter">Libtool</h2> -<p>The C++ library is compiled, archived and linked with libtool. + <p>The C++ library is compiled, archived and linked with libtool. Explaining the full workings of libtool is beyond the scope of this document, but there are a few, particular bits that are necessary for porting. -<p>Some parts of the libstdc++-v3 library are compiled with the libtool + <p>Some parts of the libstdc++-v3 library are compiled with the libtool <code>--tags CXX</code> option (the C++ definitions for libtool). Therefore, <code>ltcf-cxx.sh</code> in the top-level directory needs to have the correct logic to compile and archive objects equivalent to the C version of libtool, <code>ltcf-c.sh</code>. Some libtool targets have definitions for C but not for C++, or C++ definitions which have not been kept up to date. -<p>The C++ run-time library contains initialization code that needs to be + <p>The C++ run-time library contains initialization code that needs to be run as the library is loaded. Often, that requires linking in special object files when the C++ library is built as a shared library, or taking other system-specific actions. -<p>The libstdc++-v3 library is linked with the C version of libtool, even + <p>The libstdc++-v3 library is linked with the C version of libtool, even though it is a C++ library. Therefore, the C version of libtool needs to ensure that the run-time library initializers are run. The usual way to do this is to build the library using <code>gcc -shared</code>. -<p>If you need to change how the library is linked, look at + <p>If you need to change how the library is linked, look at <code>ltcf-c.sh</code> in the top-level directory. Find the switch statement that sets <code>archive_cmds</code>. Here, adjust the setting for your operating system. +<div class="node"> <p><hr> Node:<a name="GNU%20Free%20Documentation%20License">GNU Free Documentation License</a>, -Previous:<a rel=previous accesskey=p href="#Libtool">Libtool</a>, -Up:<a rel=up accesskey=u href="#Top">Top</a> +Previous:<a rel="previous" accesskey="p" href="#Libtool">Libtool</a>, +Up:<a rel="up" accesskey="u" href="#Top">Top</a> <br> +</div> -<h2>GNU Free Documentation License</h2> +<h2 class="unnumbered">GNU Free Documentation License</h2> <div align="center">Version 1.1, March 2000</div> -<br><pre>Copyright © 2000 Free Software Foundation, Inc. -59 Temple Place, Suite 330, Boston, MA 02111-1307, USA +<pre class="display"> Copyright © 2000 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + </pre> -Everyone is permitted to copy and distribute verbatim copies -of this license document, but changing it is not allowed. -</pre> + <ol type=1 start=0> +<li>PREAMBLE -<ol type=1 start=0> -</p><li>PREAMBLE - -<p>The purpose of this License is to make a manual, textbook, or other + <p>The purpose of this License is to make a manual, textbook, or other written document <dfn>free</dfn> in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, @@ -515,12 +551,12 @@ this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. -<p>This License is a kind of "copyleft", which means that derivative + <p>This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. -<p>We have designed this License in order to use it for manuals for free + <p>We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; @@ -528,19 +564,19 @@ it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. -</p><li>APPLICABILITY AND DEFINITIONS + </p><li>APPLICABILITY AND DEFINITIONS -<p>This License applies to any manual or other work that contains a + <p>This License applies to any manual or other work that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". -<p>A "Modified Version" of the Document means any work containing the + <p>A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. -<p>A "Secondary Section" is a named appendix or a front-matter section of + <p>A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly @@ -551,15 +587,15 @@ connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. -<p>The "Invariant Sections" are certain Secondary Sections whose titles + <p>The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. -<p>The "Cover Texts" are certain short passages of text that are listed, + <p>The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. -<p>A "Transparent" copy of the Document means a machine-readable copy, + <p>A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, whose contents can be viewed and edited directly and straightforwardly with generic text editors or (for images composed of @@ -571,7 +607,7 @@ format whose markup has been designed to thwart or discourage subsequent modification by readers is not Transparent. A copy that is not "Transparent" is called "Opaque". -<p>Examples of suitable formats for Transparent copies include plain + <p>Examples of suitable formats for Transparent copies include plain <small>ASCII</small> without markup, Texinfo input format, LaTeX input format, <small>SGML</small> or <small>XML</small> using a publicly available <small>DTD</small>, and standard-conforming simple <small>HTML</small> designed @@ -582,16 +618,16 @@ the <small>DTD</small> and/or processing tools are not generally available, and the machine-generated <small>HTML</small> produced by some word processors for output purposes only. -<p>The "Title Page" means, for a printed book, the title page itself, + <p>The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. -</p><li>VERBATIM COPYING + </p><li>VERBATIM COPYING -<p>You may copy and distribute the Document in any medium, either + <p>You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other @@ -601,12 +637,12 @@ copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. -<p>You may also lend copies, under the same conditions stated above, and + <p>You may also lend copies, under the same conditions stated above, and you may publicly display copies. -</p><li>COPYING IN QUANTITY + </p><li>COPYING IN QUANTITY -<p>If you publish printed copies of the Document numbering more than 100, + <p>If you publish printed copies of the Document numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on @@ -618,12 +654,12 @@ Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. -<p>If the required texts for either cover are too voluminous to fit + <p>If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. -<p>If you publish or distribute Opaque copies of the Document numbering + <p>If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a publicly-accessible computer-network location containing a complete @@ -637,49 +673,49 @@ until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. -<p>It is requested, but not required, that you contact the authors of the + <p>It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. -</p><li>MODIFICATIONS + </p><li>MODIFICATIONS -<p>You may copy and distribute a Modified Version of the Document under + <p>You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: -<ol type=A start=1> -</p><li>Use in the Title Page (and on the covers, if any) a title distinct + <ol type=A start=1> +<li>Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. -<li>List on the Title Page, as authors, one or more persons or entities + <li>List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has less than five). -<li>State on the Title page the name of the publisher of the + <li>State on the Title page the name of the publisher of the Modified Version, as the publisher. -<li>Preserve all the copyright notices of the Document. + <li>Preserve all the copyright notices of the Document. -<li>Add an appropriate copyright notice for your modifications + <li>Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. -<li>Include, immediately after the copyright notices, a license notice + <li>Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. -<li>Preserve in that license notice the full lists of Invariant Sections + <li>Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. -<li>Include an unaltered copy of this License. + <li>Include an unaltered copy of this License. -<li>Preserve the section entitled "History", and its title, and add to + <li>Preserve the section entitled "History", and its title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section entitled "History" in the Document, create one @@ -687,7 +723,7 @@ stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. -<li>Preserve the network location, if any, given in the Document for + <li>Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. @@ -695,36 +731,36 @@ You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. -<li>In any section entitled "Acknowledgments" or "Dedications", + <li>In any section entitled "Acknowledgments" or "Dedications", preserve the section's title, and preserve in the section all the substance and tone of each of the contributor acknowledgments and/or dedications given therein. -<li>Preserve all the Invariant Sections of the Document, + <li>Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. -<li>Delete any section entitled "Endorsements". Such a section + <li>Delete any section entitled "Endorsements". Such a section may not be included in the Modified Version. -<li>Do not retitle any existing section as "Endorsements" + <li>Do not retitle any existing section as "Endorsements" or to conflict in title with any Invariant Section. -</ol> + </ol> -<p>If the Modified Version includes new front-matter sections or + <p>If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. -<p>You may add a section entitled "Endorsements", provided it contains + <p>You may add a section entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. -<p>You may add a passage of up to five words as a Front-Cover Text, and a + <p>You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or @@ -734,20 +770,20 @@ by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. -<p>The author(s) and publisher(s) of the Document do not by this License + <p>The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. -</p><li>COMBINING DOCUMENTS + </p><li>COMBINING DOCUMENTS -<p>You may combine the Document with other documents released under this + <p>You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice. -<p>The combined work need only contain one copy of this License, and + <p>The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by @@ -756,28 +792,28 @@ author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. -<p>In the combination, you must combine any sections entitled "History" + <p>In the combination, you must combine any sections entitled "History" in the various original documents, forming one section entitled "History"; likewise combine any sections entitled "Acknowledgments", and any sections entitled "Dedications". You must delete all sections entitled "Endorsements." -</p><li>COLLECTIONS OF DOCUMENTS + </p><li>COLLECTIONS OF DOCUMENTS -<p>You may make a collection consisting of the Document and other documents + <p>You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. -<p>You may extract a single document from such a collection, and distribute + <p>You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. -</p><li>AGGREGATION WITH INDEPENDENT WORKS + </p><li>AGGREGATION WITH INDEPENDENT WORKS -<p>A compilation of the Document or its derivatives with other separate + <p>A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, does not as a whole count as a Modified Version of the Document, provided no compilation copyright is claimed for the @@ -786,15 +822,15 @@ License does not apply to the other self-contained works thus compiled with the Document, on account of their being thus compiled, if they are not themselves derivative works of the Document. -<p>If the Cover Text requirement of section 3 is applicable to these + <p>If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one quarter of the entire aggregate, the Document's Cover Texts may be placed on covers that surround only the Document within the aggregate. Otherwise they must appear on covers around the whole aggregate. -</p><li>TRANSLATION + </p><li>TRANSLATION -<p>Translation is considered a kind of modification, so you may + <p>Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include @@ -805,9 +841,9 @@ original English version of this License. In case of a disagreement between the translation and the original English version of this License, the original English version will prevail. -</p><li>TERMINATION + </p><li>TERMINATION -<p>You may not copy, modify, sublicense, or distribute the Document except + <p>You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, @@ -815,15 +851,15 @@ parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. -</p><li>FUTURE REVISIONS OF THIS LICENSE + </p><li>FUTURE REVISIONS OF THIS LICENSE -<p>The Free Software Foundation may publish new, revised versions + <p>The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See <a href="http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</a>. -<p>Each version of the License is given a distinguishing version number. + <p>Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or @@ -831,57 +867,51 @@ of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. -</ol> + </ol> -<h3>ADDENDUM: How to use this License for your documents</h3> +<h3 class="unnumberedsec">ADDENDUM: How to use this License for your documents</h3> -<p>To use this License in a document you have written, include a copy of + <p>To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: -<br><pre> Copyright (C) <var>year</var> <var>your name</var>. - Permission is granted to copy, distribute and/or modify this document - under the terms of the GNU Free Documentation License, Version 1.1 - or any later version published by the Free Software Foundation; - with the Invariant Sections being <var>list their titles</var>, with the - Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts being <var>list</var>. - A copy of the license is included in the section entitled ``GNU - Free Documentation License''. -</pre> - -<p>If you have no Invariant Sections, write "with no Invariant Sections" +<pre class="smallexample"> Copyright (C) <var>year</var> <var>your name</var>. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.1 + or any later version published by the Free Software Foundation; + with the Invariant Sections being <var>list their titles</var>, with the + Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts being <var>list</var>. + A copy of the license is included in the section entitled ``GNU + Free Documentation License''. + </pre> + + <p>If you have no Invariant Sections, write "with no Invariant Sections" instead of saying which ones are invariant. If you have no Front-Cover Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being <var>list</var>"; likewise for Back-Cover Texts. -<p>If your document contains nontrivial examples of program code, we + <p>If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software. +<div class="contents"> <h2>Table of Contents</h2> <ul> -<li><a name="toc_Top"></a> - <a href="#Top">Porting libstdc++-v3</a> -<li><a name="toc_Operating%20system"></a> - <a href="#Operating%20system">Operating system</a> -<li><a name="toc_CPU"></a> - <a href="#CPU">CPU</a> -<li><a name="toc_Character%20types"></a> - <a href="#Character%20types">Character types</a> -<li><a name="toc_Thread%20safety"></a> - <a href="#Thread%20safety">Thread safety</a> -<li><a name="toc_Numeric%20limits"></a> - <a href="#Numeric%20limits">Numeric limits</a> -<li><a name="toc_Libtool"></a> - <a href="#Libtool">Libtool</a> -<li><a name="toc_GNU%20Free%20Documentation%20License"></a> - <a href="#GNU%20Free%20Documentation%20License">GNU Free Documentation License</a> +<li><a name="toc_Top" href="#Top">Porting libstdc++-v3</a> +<li><a name="toc_Operating%20system" href="#Operating%20system">Operating system</a> +<li><a name="toc_CPU" href="#CPU">CPU</a> +<li><a name="toc_Character%20types" href="#Character%20types">Character types</a> +<li><a name="toc_Thread%20safety" href="#Thread%20safety">Thread safety</a> +<li><a name="toc_Numeric%20limits" href="#Numeric%20limits">Numeric limits</a> +<li><a name="toc_Libtool" href="#Libtool">Libtool</a> +<li><a name="toc_GNU%20Free%20Documentation%20License" href="#GNU%20Free%20Documentation%20License">GNU Free Documentation License</a> <ul> <li><a href="#GNU%20Free%20Documentation%20License">ADDENDUM: How to use this License for your documents</a> -</ul> -</ul> +</li></ul> +</li></ul> +</div> -</body></html> + </body></html> diff --git a/libstdc++-v3/docs/html/17_intro/porting.texi b/libstdc++-v3/docs/html/17_intro/porting.texi index 6c6ec1f..24ab682 100644 --- a/libstdc++-v3/docs/html/17_intro/porting.texi +++ b/libstdc++-v3/docs/html/17_intro/porting.texi @@ -8,22 +8,7 @@ @settitle Porting libstdc++-v3 @setchapternewpage odd -@ifinfo -This file explains how to port libstdc++-v3 (the GNU C++ library) to -a new target. - -Copyright (c) 2000, 2001, 2002 Free Software Foundation, Inc. -@end ifinfo - -@c --------------------------------------------------------------------- -@c Titlepage -@c --------------------------------------------------------------------- - -@titlepage -@title Porting libstdc++-v3 -@author Mark Mitchell -@page -@vskip 0pt plus 1filll +@copying Copyright @copyright{} 2000, 2001, 2002 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document @@ -43,6 +28,25 @@ texts being (a) (see below), and with the Back-Cover Texts being (b) You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development. +@end copying + +@ifinfo +This file explains how to port libstdc++-v3 (the GNU C++ library) to +a new target. + +@insertcopying +@end ifinfo + +@c --------------------------------------------------------------------- +@c Titlepage +@c --------------------------------------------------------------------- + +@titlepage +@title Porting libstdc++-v3 +@author Mark Mitchell +@page +@vskip 0pt plus 1filll +@insertcopying @end titlepage @c --------------------------------------------------------------------- |