https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118880
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-02-15
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Uwe Lohmann from comment #0)
> The gcc issue described in bug 81268 (__gcc_isr pseudo-instruction for more
> efficient ISR prologues), which according to bugzilla was supposedly fixed
> with gcc v8, is also present in gcc 14.2.0.
Please supply a test case that shows the issue. Please notice that there are
some prerequisites like https://sourceware.org/bugzilla/show_bug.cgi?id=21683
Without that, the optimization cannot be performed, e.g. Binutils ≤ v2.28.
> In addition, the GCC documentation was never adapted [...]. It still shows the
> original behavior; even in the manual for gcc v8.5.
>
> push __zero_reg__
> push __tmp_reg__
> in __tmp_reg__, __SREG__
> push __tmp_reg__
> clr __zero_reg__
>
> (GCC online documentation --> GCC 14.2 manuals --> 6.33.6 AVR Function
> Attributes)
The only place where this code snip occurs is for the no_gccisr function
attribute, which requests to DISABLE the optimization for the respective
function. Consequently, the code snippet shows the code generated *without*
__gcc_isr.