From: Eric Botcazou Date: Tue, 12 Oct 2021 09:20:42 +0000 (+0200) Subject: Fix PR target/102588 X-Git-Tag: releases/gcc-11.3.0~795 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cedb519613006014eeb1a7464a5fbc3509a3a63;p=thirdparty%2Fgcc.git 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 --git a/gcc/config/sparc/sparc-modes.def b/gcc/config/sparc/sparc-modes.def index 5cc4743f199e..057c09345a99 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