https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114077

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This fixes patch causes the code to be rejected:
```
diff --git a/gcc/function.cc b/gcc/function.cc
index 5ffd438475e..7a0f7faa2d7 100644
--- a/gcc/function.cc
+++ b/gcc/function.cc
@@ -242,7 +242,7 @@ frame_offset_overflow (poly_int64 offset, tree func)
 {
   poly_uint64 size = FRAME_GROWS_DOWNWARD ? -offset : offset;
   unsigned HOST_WIDE_INT limit
-    = ((HOST_WIDE_INT_1U << (GET_MODE_BITSIZE (Pmode) - 1))
+    = ((HOST_WIDE_INT_1U << (GET_MODE_BITSIZE (ptr_mode) - 1))
        /* Leave room for the fixed part of the frame.  */
        - 64 * UNITS_PER_WORD);


```
Though I am not 100% sure if it is correct.

Reply via email to