]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cselib: Fix up previous patch for SPARC [PR117239]
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Feb 2025 13:06:42 +0000 (14:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Feb 2025 13:06:42 +0000 (14:06 +0100)
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.

2025-02-05  Jakub Jelinek  <jakub@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

index d18208e51440b183e315fa84578aec11ad3d30a5..7f1991b09c3c8fd107b1a483d9dc47b9e1b1cdd7 100644 (file)
@@ -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);
        }