From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BE633858D35; Wed, 26 Jul 2023 23:50:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BE633858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690415419; bh=pvQ6L+LIocgzSH/e152bJL/CkJ2mS7N03ZTEg/Vd+tM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SgS9n8mYWcQySJeNKtRc24m5oRC+AtzKSQlUbKEkGkHs2w80VDpTkElWWtYGluZN8 L3F6oP7JgXAfSI71+CSLpmDfWGCvHE5FEhh+leWvDTUTL33s3ewlpicvTsrKNWxrC+ AyY9ZRbiGsv0LCqeZtqAiY2+wXXDTUflH5wAA3qM= From: "vincent.riviere at freesbee dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/88160] Error: register save offset not a multiple of 4 only with optimize Date: Wed, 26 Jul 2023 23:50:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent.riviere at freesbee dot fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D88160 --- Comment #3 from Vincent Riviere --- There are 2 lightweight workarounds for the OP testcase: -fno-combine-stack-adjustments -fno-omit-frame-pointer $ m68k-elf-gcc -mshort -mcpu=3D5475 -g -O2 -c test.c /tmp/ccW6hc6h.s: Assembler messages: /tmp/ccW6hc6h.s:20: Error: register save offset not a multiple of 4 /tmp/ccW6hc6h.s:21: Error: register save offset not a multiple of 4 /tmp/ccW6hc6h.s:22: Error: register save offset not a multiple of 4 $ m68k-elf-gcc -mshort -mcpu=3D5475 -g -O2 -c test.c -fno-combine-stack-adjustments # OK $ m68k-elf-gcc -mshort -mcpu=3D5475 -g -O2 -c test.c -fno-omit-frame-pointer # OK=