[committed] hppa: Define MAX_FIXED_MODE_SIZE

Message ID ZV5j6Akii0sC2caT@mx3210.localdomain
State Accepted
Headers
Series [committed] hppa: Define MAX_FIXED_MODE_SIZE |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

John David Anglin Nov. 22, 2023, 8:26 p.m. UTC
  Tested on hppa-unknown-linux-gnu and hppa64-hp-hpux11.11.  Committed to
trunk.

Fixes FAIL: c-c++-common/pr111309-1.c ICE.

Dave
---

hppa: Define MAX_FIXED_MODE_SIZE

Replace default define.  We support TImode when TARGET_64BIT is true.

2023-11-22  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

	PR target/112592
	* config/pa/pa.h (MAX_FIXED_MODE_SIZE): Define.
  

Patch

diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index aba2cec7357..d73428682e7 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -1310,3 +1310,7 @@  do {									     \
 
 /* Output default function prologue for hpux.  */
 #define TARGET_ASM_FUNCTION_PROLOGUE pa_output_function_prologue
+
+/* An integer expression for the size in bits of the largest integer machine
+   mode that should actually be used.  We allow pairs of registers.  */
+#define MAX_FIXED_MODE_SIZE GET_MODE_BITSIZE (TARGET_64BIT ? TImode : DImode)