From: Jonathan Wakely Date: Mon, 30 Nov 2020 12:28:25 +0000 (+0000) Subject: doc: Fix description of dg-require-effective-target X-Git-Tag: upstream/12.2.0~11414 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d795a8ef4e02a96ab060b330d38ef923a198c7ce;p=platform%2Fupstream%2Fgcc.git doc: Fix description of dg-require-effective-target 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. --- diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 852eaa2..4f7af20 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -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} @}}