From d795a8ef4e02a96ab060b330d38ef923a198c7ce Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 30 Nov 2020 12:28:25 +0000 Subject: [PATCH] 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. --- gcc/doc/sourcebuild.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 852eaa2e676..4f7af2074fe 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} @}} -- 2.30.2