From: Stefan Schulze Frielinghaus <[email protected]>
---
htdocs/gcc-17/changes.html | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/htdocs/gcc-17/changes.html b/htdocs/gcc-17/changes.html
index 68717be56..ccbfa4957 100644
--- a/htdocs/gcc-17/changes.html
+++ b/htdocs/gcc-17/changes.html
@@ -250,6 +250,18 @@ for general information.</p>
<li>Support for <code>-m31</code> was removed and as a consequence
<code>-mesa</code> support.
</li>
+
+ <li id="s390_return_nullptr_type">
+ Starting with GCC 4.6 (which introduced initial C++11 and
+ <code>std::nullptr_t</code> support), arguments of type
+ <code>nullptr_t</code> / <code>std::nullptr_t</code> /
+ <code>decltype(nullptr)</code> are passed in registers. However, return
+ values are erroneously returned in memory violating the psABI. This is
+ fixed in GCC 17 so that <code>nullptr_t</code> et al. are returned in a
+ register (<code>%r2</code>), matching argument passing and the psABI.
+ Functions returning <code>nullptr_t</code> compiled with GCC 17 are
+ ABI-incompatible with binaries compiled by older GCC versions.
+ </li>
</ul>
<!-- <h3 id="riscv">RISC-V</h3> -->
--
2.55.0