On Wed, 2025-01-15 at 18:22 +0000, Joseph Myers wrote:
> On Wed, 15 Jan 2025, David Malcolm wrote:
>
> > Here's an updated version of the patch
> >
> > OK to push? (we could tweak it in followups)
>
> This will need updating to work together with Jakub's patch that also
> adds
> the C section to changes.html.
For now I've pushed this part of the patch:
diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html
index d5037efb..c87c8a0d 100644
--- a/htdocs/gcc-15/changes.html
+++ b/htdocs/gcc-15/changes.html
@@ -99,6 +99,18 @@ a work-in-progress.</p>
<code>musttail</code> statement attribute</a> was added to enforce
tail calls.</li>
</ul>
+<h3 id="c">C</h3>
+<ul>
+ <li>GCC 15 changes the default language version for C compilation from
+ <a
href="https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#index-std-1">-std=gnu17</a>
+ to
+ <a
href="https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#index-std-1">-std=gnu23</a>.
+ If your code relies on older versions of the C standard, you will need to
+ either add
+ <a
href="https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#index-std-1">-std=</a>
+ to your build flags, or port your code; see <a
href="porting_to.html#c23">the porting notes</a>.
+</ul>
+
<h3 id="cxx">C++</h3>
<ul>