[New-bugs-announce] [issue44060] Define TARGET macro the same even when computed goto support is not enabled

Skip Montanaro report at bugs.python.org
Thu May 6 11:09:57 EDT 2021


New submission from Skip Montanaro <skip.montanaro at gmail.com>:

When the interpreter is compiled with computed goto support, the TARGET macro is defined like this:

#define TARGET(op) op: TARGET_##op

If computed gotos are disabled, the implementation is simpler:

#define TARGET(op) op

I'm finding it useful to use those labels as gdb breakpoint targets. Is there some reason not to always define the TARGET_##op label?

----------
components: Interpreter Core
messages: 393099
nosy: skip.montanaro
priority: normal
severity: normal
status: open
title: Define TARGET macro the same even when computed goto support is not enabled
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44060>
_______________________________________


More information about the New-bugs-announce mailing list