[doc] Fix xref in extend.texi
diff mbox

Message ID CAESRpQDzgBj0S3qDijdabNt5Zeuq6MBR-aigJpCNPRQ8LFWiZA@mail.gmail.com
State New
Headers show

Commit Message

Manuel López-Ibáñez May 9, 2012, 5:50 p.m. UTC
It is strange that a paragraph talking about GCC pragmas refers to the
section in CPP talking about #indent and other such directives (no
#pragma there). Wouldn't it better if it pointed to the section about
#pragmas?

OK?

2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>

        * doc/extend.texi (Function Attributes): Point xref to section
about Pragmas.

Comments

Gabriel Dos Reis May 9, 2012, 6:20 p.m. UTC | #1
On Wed, May 9, 2012 at 12:50 PM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> It is strange that a paragraph talking about GCC pragmas refers to the
> section in CPP talking about #indent and other such directives (no
> #pragma there). Wouldn't it better if it pointed to the section about
> #pragmas?

yes.  patch ok.
>
> OK?
>
> 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
>
>        * doc/extend.texi (Function Attributes): Point xref to section
> about Pragmas.
>
>
> Index: doc/extend.texi
> ===================================================================
> --- doc/extend.texi     (revision 187299)
> +++ doc/extend.texi     (working copy)
> @@ -4102,8 +4102,7 @@
>  found convenient to use @code{__attribute__} to achieve a natural
>  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 GNU C Preprocessor}.
> +part of the grammar.  @xref{Pragmas,,Pragmas Accepted by GCC}.
>
>  @node Attribute Syntax
>  @section Attribute Syntax

Patch
diff mbox

Index: doc/extend.texi
===================================================================
--- doc/extend.texi     (revision 187299)
+++ doc/extend.texi     (working copy)
@@ -4102,8 +4102,7 @@ 
 found convenient to use @code{__attribute__} to achieve a natural
 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 GNU C Preprocessor}.
+part of the grammar.  @xref{Pragmas,,Pragmas Accepted by GCC}.

 @node Attribute Syntax
 @section Attribute Syntax