From: Tsukasa OI Date: Mon, 28 Aug 2023 21:13:53 +0000 (-0600) Subject: RISC-V: Fix documentation of __builtin_riscv_pause X-Git-Tag: basepoints/gcc-15~6608 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf64ab18e3f820376ff20c663c7c7bf1af290f02;p=thirdparty%2Fgcc.git RISC-V: Fix documentation of __builtin_riscv_pause This built-in does not imply the 'Xgnuzihintpausestate' extension. It does not change architectural state (because all HINTs are prohibited from doing that). gcc/ChangeLog: * doc/extend.texi: Fix the description of __builtin_riscv_pause. --- diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 26328676ad25..174d78547c2d 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -21607,9 +21607,9 @@ Returns the value that is currently set in the @samp{tp} register. @enddefbuiltin @defbuiltin{void __builtin_riscv_pause (void)} -Generates the @code{pause} (hint) machine instruction. This implies the -Xgnuzihintpausestate extension, which redefines the @code{pause} instruction to -change architectural state. +Generates the @code{pause} (hint) machine instruction. If the target implements +the Zihintpause extension, it indicates that the current hart should be +temporarily paused or slowed down. @enddefbuiltin @node RISC-V Vector Intrinsics