From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D35143858C00; Wed, 24 May 2023 06:56:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D35143858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684911401; bh=AUgnVn7exHqbL9GfG/vvDN4oFHCovdS3EM7i8Y8Lw/s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Rd+UXA7X6y9DC0uqeXGz8oytTdZVKCVdzp0k8A6Nbc6Gw+/6FdlL1yP4ShQSmNhVG Y7HQsG0Q4l5I+H4zfs9M7OufM/FXbs89QRfcB5rqgOGLKvrhwevQCboqfhdCT6zLcp 8vayjTcCmt518aQGlgY04RFFZGAGUP4F/EX3u2ZU= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101188] [AVR] Miscompilation and function pointers Date: Wed, 24 May 2023 06:56:40 +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: 11.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc attachments.created 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=3D101188 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gjl at gcc dot gnu.org --- Comment #2 from Georg-Johann Lay --- Created attachment 55147 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55147&action=3Dedit C test case (compile only) Same test case like from comment #1, but only with the affected function. $ avr-gcc fail1.c -save-temps -dp -dumpbase "" -mmcu=3Datmega128 -c -Os -da For all version that I tested (v5.4, v8.5, v11.3, v12.3, v13.1, master 14.0= .0 20230523) I am getting wrong code.=