public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4348] Fix PR target/102588
@ 2021-10-12  9:21 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2021-10-12  9:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a1a7d094307080c3d994209457f732005f59fa6a

commit r12-4348-ga1a7d094307080c3d994209457f732005f59fa6a
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Tue Oct 12 11:20:42 2021 +0200

    Fix PR target/102588
    
    We need a 32-byte wide integer mode (OImode) in order to handle structure
    returns in the 64-bit ABI.
    
    gcc/
            PR target/102588
            * config/sparc/sparc-modes.def (OI): New integer mode.

Diff:
---
 gcc/config/sparc/sparc-modes.def | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/sparc/sparc-modes.def b/gcc/config/sparc/sparc-modes.def
index 5cc4743f199..057c09345a9 100644
--- a/gcc/config/sparc/sparc-modes.def
+++ b/gcc/config/sparc/sparc-modes.def
@@ -23,6 +23,9 @@ along with GCC; see the file COPYING3.  If not see
 /* 128-bit floating point */
 FLOAT_MODE (TF, 16, ieee_quad_format);
 
+/* We need a 32-byte mode to return structures in the 64-bit ABI.  */
+INT_MODE (OI, 32);
+
 /* Add any extra modes needed to represent the condition code.
 
    We have a CCNZ mode which is used for implicit comparisons with zero when


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-12  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12  9:21 [gcc r12-4348] Fix PR target/102588 Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).