wwwdocs: Document several further C++23 changes

Message ID ZACMogsrU0vpmQ1S@tucnak
State Unresolved
Headers
Series wwwdocs: Document several further C++23 changes |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Jakub Jelinek March 2, 2023, 11:46 a.m. UTC
  Hi!

Tobias mentioned on IRC that assume attribute wasn't mentioned in
changes.html.  The P1774R8 entry was missing for C++, so I went through
projects/cxx-status.html#cxx23 and filled in all the missing papers
which have been implemented newly in GCC 13, plus a small note for C family
about assume attribute.

Ok for wwwdocs?


	Jakub
  

Comments

Marek Polacek March 2, 2023, 1:30 p.m. UTC | #1
On Thu, Mar 02, 2023 at 12:46:42PM +0100, Jakub Jelinek wrote:
> Hi!
> 
> Tobias mentioned on IRC that assume attribute wasn't mentioned in
> changes.html.  The P1774R8 entry was missing for C++, so I went through
> projects/cxx-status.html#cxx23 and filled in all the missing papers
> which have been implemented newly in GCC 13, plus a small note for C family
> about assume attribute.
> 
> Ok for wwwdocs?

Sure, thanks.
 
> diff --git a/htdocs/gcc-13/changes.html b/htdocs/gcc-13/changes.html
> index 410594ae..839b73d0 100644
> --- a/htdocs/gcc-13/changes.html
> +++ b/htdocs/gcc-13/changes.html
> @@ -182,6 +182,10 @@ a work-in-progress.</p>
>      <a href="https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html"><code>-fanalyzer</code></a>
>      to detect misuses of file descriptors.
>    </li>
> +  <li>A new statement attribute for C++23 <a href="https://wg21.link/p1774r8">P1774R8</a> Portable
> +      assumptions support also in C or older C++:
> +    <a href="https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html#index-assume-statement-attribute"><code>__attribute__((assume(EXPR)));</code>
> +  </li>
>  </ul>
>  
>  <h3 id="c">C</h3>
> @@ -290,6 +294,29 @@ a work-in-progress.</p>
>  	Operator You Are Looking For
>  	(<a href="https://gcc.gnu.org/PR106644">PR106644</a>)
>        </li>
> +      <li> <a href="https://wg21.link/p2362r3">P2362R3</a>, Remove non-encodable
> +          wide character literals and multicharacter wide character literals
> +	(<a href="https://gcc.gnu.org/PR106647">PR106647</a>)
> +      </li>
> +      <li> <a href="https://wg21.link/p2448r2">P2448R2</a>, Relaxing some
> +          constexpr restrictions
> +	(<a href="https://gcc.gnu.org/PR106649">PR106649</a>)
> +      </li>
> +      <li> <a href="https://wg21.link/p1467r9">P1467R9</a>, Extended
> +          floating-point types and standard names
> +	(<a href="https://gcc.gnu.org/PR106652">PR106652</a>)
> +      </li>
> +      <li> <a href="https://wg21.link/p1774r8">P1774R8</a>, Portable
> +          assumptions
> +	(<a href="https://gcc.gnu.org/PR106654">PR106654</a>)
> +      </li>
> +      <li> <a href="https://wg21.link/p2295r6">P2295R6</a>, Support for
> +          UTF-8 as a portable source file encoding
> +	(<a href="https://gcc.gnu.org/PR106655">PR106655</a>)
> +      </li>
> +      <li> <a href="https://wg21.link/p2589r1">P2589R1</a>, static operator[]
> +	(<a href="https://gcc.gnu.org/PR107684">PR107684</a>)
> +      </li>
>      </ul>
>    </li>
>    <li>New warnings:
> 
> 	Jakub
> 

Marek
  
Gerald Pfeifer March 3, 2023, 10:59 p.m. UTC | #2
On Thu, 2 Mar 2023, Jakub Jelinek wrote:
> Tobias mentioned on IRC that assume attribute wasn't mentioned in
> changes.html.  The P1774R8 entry was missing for C++, so I went through
> projects/cxx-status.html#cxx23 and filled in all the missing papers
> which have been implemented newly in GCC 13, plus a small note for C family
> about assume attribute.

Nice!

There was a small markup issue -- unclosed <a href=...> -- which I fixed 
thusly.

Gerald


commit ec6f12dc7c229ba1662706c14083e6f3a78e2760
Author: Gerald Pfeifer <gerald@pfeifer.com>
Date:   Fri Mar 3 23:53:21 2023 +0100

    gcc-13: Properly close an <a href...>

diff --git a/htdocs/gcc-13/changes.html b/htdocs/gcc-13/changes.html
index 839b73d0..cb6a9ec2 100644
--- a/htdocs/gcc-13/changes.html
+++ b/htdocs/gcc-13/changes.html
@@ -184,7 +184,7 @@ a work-in-progress.</p>
   </li>
   <li>A new statement attribute for C++23 <a href="https://wg21.link/p1774r8">P1774R8</a> Portable
       assumptions support also in C or older C++:
-    <a href="https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html#index-assume-statement-attribute"><code>__attribute__((assume(EXPR)));</code>
+      <a href="https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html#index-assume-statement-attribute"><code>__attribute__((assume(EXPR)));</code></a>
   </li>
 </ul>
  
Gerald Pfeifer March 3, 2023, 11:07 p.m. UTC | #3
On Thu, 2 Mar 2023, Jakub Jelinek wrote:
> +  <li>A new statement attribute for C++23 <a href="https://wg21.link/p1774r8">P1774R8</a> Portable
> +      assumptions support also in C or older C++:

This reads a bit odd to me: is there a comma missing after P1774R8?
And maybe a colon before? Or something like that?

Gerald
  

Patch

diff --git a/htdocs/gcc-13/changes.html b/htdocs/gcc-13/changes.html
index 410594ae..839b73d0 100644
--- a/htdocs/gcc-13/changes.html
+++ b/htdocs/gcc-13/changes.html
@@ -182,6 +182,10 @@  a work-in-progress.</p>
     <a href="https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html"><code>-fanalyzer</code></a>
     to detect misuses of file descriptors.
   </li>
+  <li>A new statement attribute for C++23 <a href="https://wg21.link/p1774r8">P1774R8</a> Portable
+      assumptions support also in C or older C++:
+    <a href="https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html#index-assume-statement-attribute"><code>__attribute__((assume(EXPR)));</code>
+  </li>
 </ul>
 
 <h3 id="c">C</h3>
@@ -290,6 +294,29 @@  a work-in-progress.</p>
 	Operator You Are Looking For
 	(<a href="https://gcc.gnu.org/PR106644">PR106644</a>)
       </li>
+      <li> <a href="https://wg21.link/p2362r3">P2362R3</a>, Remove non-encodable
+          wide character literals and multicharacter wide character literals
+	(<a href="https://gcc.gnu.org/PR106647">PR106647</a>)
+      </li>
+      <li> <a href="https://wg21.link/p2448r2">P2448R2</a>, Relaxing some
+          constexpr restrictions
+	(<a href="https://gcc.gnu.org/PR106649">PR106649</a>)
+      </li>
+      <li> <a href="https://wg21.link/p1467r9">P1467R9</a>, Extended
+          floating-point types and standard names
+	(<a href="https://gcc.gnu.org/PR106652">PR106652</a>)
+      </li>
+      <li> <a href="https://wg21.link/p1774r8">P1774R8</a>, Portable
+          assumptions
+	(<a href="https://gcc.gnu.org/PR106654">PR106654</a>)
+      </li>
+      <li> <a href="https://wg21.link/p2295r6">P2295R6</a>, Support for
+          UTF-8 as a portable source file encoding
+	(<a href="https://gcc.gnu.org/PR106655">PR106655</a>)
+      </li>
+      <li> <a href="https://wg21.link/p2589r1">P2589R1</a>, static operator[]
+	(<a href="https://gcc.gnu.org/PR107684">PR107684</a>)
+      </li>
     </ul>
   </li>
   <li>New warnings: