From 1189d1b38e2b9507488ea294cda771c79e972c1d Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Thu, 9 Feb 2023 11:33:31 +0100
Subject: [PATCH] docs: add caveat for __builtin_cpu_supports

Document that the function does not work correctly for old
VIA processors.

	PR target/100758

gcc/ChangeLog:

	* doc/extend.texi: Document that the function
	does not work correctly for old VIA processors.
---
 gcc/doc/extend.texi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 5a026c4b48ce..66a9d8898815 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -22071,6 +22071,9 @@ else
      count = generic_countbits (n); //generic implementation.
   @}
 @end smallexample
+
+Caveat: This built-in function does not work correctly on old VIA
+processors (Centaur family).
 @end deftypefn
 
 The following built-in functions are made available by @option{-mmmx}.
-- 
GitLab