From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC5243858413; Fri, 12 Jan 2024 01:00:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC5243858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705021257; bh=02UCjP/Fdc38YlkhBbJb/acHg8eRmFp4ShC+F0IjV4M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jDXfLq2uJzDNehXHUuD3CBz3vuuXqVdx/JBPYbD9BV06+wP/pMTGLqtHbXaX9wxSE /GsQcsopvCei1g4EKTyVv3eTotaxO30WQ7YQ8pBiiA/zhtvcI6I7ZbrHUeCQm0sDAT UnpyXIFBvKwSuVemJYy4Iq/49/5Kf16AMeW5rBd4= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113312] Update __attribute__((interrupt)) for Intel FRED Date: Fri, 12 Jan 2024 01:00:56 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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: 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=3D113312 --- Comment #14 from H.J. Lu --- Here is a branch for __attribute__((no_callee_saved_registers)): https://gitlab.com/x86-gcc/gcc/-/commits/users/hjl/pr113312/master Calling a function with __attribute__((no_callee_saved_registers)) doesn't work since GCC won't restore clobbered caller-saved registers. Also calling a function with __attribute__((no_callee_saved_registers)) via a function pointer won't work correctly.=