This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [wwwdocs] Document Runtime CPU detection builtins
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Sriraman Tallam <tmsriram at google dot com>
- Cc: Diego Novillo <dnovillo at google dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Mon, 2 Dec 2013 21:19:16 +0100 (CET)
- Subject: Re: [wwwdocs] Document Runtime CPU detection builtins
- Authentication-results: sourceware.org; auth=none
- References: <CAAs8HmwO=jycJSgMS2LOfBNJrdUxyDDNDxWDX=kcABCZQEEMnw at mail dot gmail dot com> <alpine dot LNX dot 2 dot 00 dot 1208202221240 dot 2774 at ghan dot fvgr> <CAAs8Hmzqhd0NjDocYQJBG4oVYfSv9NFtYeGShmkovEf+8tk4Hg at mail dot gmail dot com> <503381DE dot 3030207 at google dot com> <CAAs8Hmwr+fnix-vLE6jw21esJ=Ur5ec-FYzQ0rtQj-KFrTDndQ at mail dot gmail dot com>
On Tue, 21 Aug 2012, Sriraman Tallam wrote:
> Committed after making the changes.
>
> One small problem, I am not sure how to fix this:
>
> The hyper link I referenced is :
> http://gcc.gnu.org/onlinedocs/gcc/X86-Built_002din-Functions.html#X86-Built_002din-Functions
>
> whereas the committed changes.html is pointing to:
> http://gcc.gnu.org/onlinedocs/gcc/X86-Built-in-Functions.html#X86-Built-in-Functions
>
> Please note that the "_002din" is missing. This makes the link broken,
> did I miss anything? I verified that I submitted the right link.
Based on changes I just committed and applied on gcc.gnu.org, finally
there won't be new files or anchors with "_002d" in their names, just
"-" instead.
The patch below, which I just committed, adjust the links. All simpler
and nicer now. :-)
Gerald
Index: gcc-4.8/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v
retrieving revision 1.124
diff -u -3 -p -r1.124 changes.html
--- gcc-4.8/changes.html 26 Nov 2013 03:21:07 -0000 1.124
+++ gcc-4.8/changes.html 2 Dec 2013 20:17:11 -0000
@@ -512,7 +512,7 @@ int i = A().f(); // error, f() requires
added. For details, see the
<a href="http://gcc.gnu.org/wiki/avr-gcc#Fixed-Point_Support">
GCC wiki</a> and the
- <a href="http://gcc.gnu.org/onlinedocs/gcc/Fixed_002dPoint.html">
+ <a href="http://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html">
user manual</a>. The support is not complete.
</li>
<li>A new print modifier <code>%r</code> for register operands in inline
@@ -584,7 +584,7 @@ int i = A().f(); // error, f() requires
<code>__builtin_cpu_is("westmere")</code> returns a positive integer if
the run-time CPU is an Intel Core i7 Westmere processor. Please refer
to the <a
- href="http://gcc.gnu.org/onlinedocs/gcc/X86-Built_002din-Functions.html#X86-Built_002din-Functions">
+ href="http://gcc.gnu.org/onlinedocs/gcc/X86-Built-in-Functions.html#X86-Built-in-Functions">
user manual</a> for the list of valid CPU names recognized.</li>
<li>A built-in function <code>__builtin_cpu_supports</code> has been
added to detect if the run-time CPU supports a particular ISA feature.
@@ -592,7 +592,7 @@ int i = A().f(); // error, f() requires
one string literal argument, the ISA feature. For example,
<code>__builtin_cpu_supports("ssse3")</code> returns a positive integer
if the run-time CPU supports SSSE3 instructions. Please refer to the <a
- href="http://gcc.gnu.org/onlinedocs/gcc/X86-Built_002din-Functions.html#X86-Built_002din-Functions">
+ href="http://gcc.gnu.org/onlinedocs/gcc/X86-Built-in-Functions.html#X86-Built-in-Functions">
user manual</a> for the list of valid ISA names recognized.</li>
</ul>
<p>Caveat: If these built-in functions are called before any static