This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Documentation Buglet (Broken Link)


On Thu, 2 Oct 2003, Stephan T. Lavavej wrote:
> http://gcc.gnu.org/onlinedocs/gcc/C---Extensions.html#C++%20Extensions
> links to
> http://gcc.gnu.org/onlinedocs/cpp.info/Standard-Predefined.html
> which doesn't exist. It should link to
> http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html#Standard%2
> 0Predefined%20Macros
>
> I tried looking at the .texi that generates this page, but I couldn't
> figure out how the link is generated.

It first thought this looked like a texinfo problem, but indeed the
texinfo sources seemed quite bogus -- four problems in one reference!

For info files (where the link was also broken), the patch below fixes
the problem.  Joseph, did I miss anything?

Gerald

2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>

	* doc/extend.texi (Function Attributes): Fix title of GNU C
	Preprocessor manual.
	(C++ Extensions): Fix reference to "Predefined Macros" in the
	GNU C Preprocessor manual.

Index: doc/extend.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/extend.texi,v
retrieving revision 1.161
diff -u -3 -p -r1.161 extend.texi
--- doc/extend.texi	16 Sep 2003 07:58:25 -0000	1.161
+++ doc/extend.texi	3 Oct 2003 21:32:45 -0000
@@ -2706,7 +2706,7 @@ found convenient to use @code{__attribut
 attachment of attributes to their corresponding declarations, whereas
 @code{#pragma GCC} is of use for constructs that do not naturally form
 part of the grammar.  @xref{Other Directives,,Miscellaneous
-Preprocessing Directives, cpp, The C Preprocessor}.
+Preprocessing Directives, cpp, The GNU C Preprocessor}.

 @node Attribute Syntax
 @section Attribute Syntax
@@ -7602,8 +7602,8 @@ can also use most of the C language exte
 want to write code that checks whether these features are available, you can
 test for the GNU compiler the same way as for C programs: check for a
 predefined macro @code{__GNUC__}.  You can also use @code{__GNUG__} to
-test specifically for GNU C++ (@pxref{Standard Predefined,,Standard
-Predefined Macros,cpp.info,The C Preprocessor}).
+test specifically for GNU C++ (@pxref{Common Predefined Macros,,
+Predefined Macros,cpp,The GNU C Preprocessor}).

 @menu
 * Min and Max::		C++ Minimum and maximum operators.


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