Hi!

Sorry, our CI bot just notified me I broke SPARC build.  There are two
 #ifdef STACK_ADDRESS_OFFSET
guarded snippets and the macro is only defined on SPARC target, so I didn't
notice there was a syntax error.

Fixed thusly, tested on a cross to sparc64-linux (just that cc1/cc1plus
builds), committed to trunk as obvious.

2025-02-05  Jakub Jelinek  <ja...@redhat.com>

        PR rtl-optimization/117239
        * cselib.cc (cselib_init): Remove spurious closing paren in
        the #ifdef STACK_ADDRESS_OFFSET specific code.

--- gcc/cselib.cc.jj    2025-02-05 13:16:10.453847307 +0100
+++ gcc/cselib.cc       2025-02-05 14:03:21.971819920 +0100
@@ -3394,7 +3394,7 @@ cselib_init (int record_what)
 #ifdef STACK_ADDRESS_OFFSET
          /* On SPARC take stack pointer bias into account as well.  */
          off += (STACK_ADDRESS_OFFSET
-                 - FIRST_PARM_OFFSET (current_function_decl)));
+                 - FIRST_PARM_OFFSET (current_function_decl));
 #endif
          callmem[1] = plus_constant (Pmode, stack_pointer_rtx, off);
        }

        Jakub

Reply via email to