doc: Fix description of dg-require-effective-target
authorJonathan Wakely <jwakely@redhat.com>
Mon, 30 Nov 2020 12:28:25 +0000 (12:28 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 30 Nov 2020 12:29:01 +0000 (12:29 +0000)
The optional target selector for the dg-require-effective-target
directive needs to be { target selector } not just { selector } as
currently documented.

gcc/ChangeLog:

* doc/sourcebuild.texi (Directives): Fix description of
dg-require-effective-target to include "target" in selector.

gcc/doc/sourcebuild.texi

index 852eaa2e6765c53ce52d19de610cc1df6c828fac..4f7af2074fe7616d2bc81f2213b2f51daf41824d 100644 (file)
@@ -1141,7 +1141,7 @@ but not if @code{-fpic} is also present:
 /* @{ dg-skip-if "" @{ *-*-* @}  @{ "-O2 -g" "-O3 -g" @} @{ "-fpic" @} @} */
 @end smallexample
 
-@item @{ dg-require-effective-target @var{keyword} [@{ @var{selector} @}] @}
+@item @{ dg-require-effective-target @var{keyword} [@{ target @var{selector} @}] @}
 Skip the test if the test target, including current multilib flags,
 is not covered by the effective-target keyword.
 If the directive includes the optional @samp{@{ @var{selector} @}}