GDCC icon indicating copy to clipboard operation
GDCC copied to clipboard

nolongjmp attribute

Open DavidPH opened this issue 6 years ago • 2 comments

Similar to C++'s noexcept, it would be useful to be able to mark functions are not generating/propagating long jumps so that callers can omit the post-call check. There should also be a way to set this in bulk. Possibly a pragma and/or option.

DavidPH avatar Jan 10 '19 15:01 DavidPH

Just curious, is there any such attribute offered by other C compilers?

AlexAltea avatar Feb 19 '19 13:02 AlexAltea

Not as far as I am aware, but there is not the same kind of passive overhead for long jump propagation when targeting normal hardware.

DavidPH avatar Feb 19 '19 14:02 DavidPH