]> 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>
Mon, 26 May 2025 15:45:28 +0000 (17:45 +0200)
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.

(cherry picked from commit 6094801d6fd7849d2d95ce78f7c6ef01686b9f63)

gcc/cselib.cc

index fba96d5a8e30402c5285b63bb960e8882dc39cfe..476a94b08f2a5fef46b53d1fc44ba835c4b26864 100644 (file)
@@ -3359,7 +3359,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);
        }