From cf64ab18e3f820376ff20c663c7c7bf1af290f02 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Mon, 28 Aug 2023 15:13:53 -0600 Subject: [PATCH] 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. --- gcc/doc/extend.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2