Uh oh!
There was an error while loading. Please reload this page.
gh-88226: Emit TARGET labels in Python/ceval.c when debugging, even if computed gotos aren't enabled - #98265
Conversation
smontanaro
commented
Oct 14, 2022
I messed up the reference to the issue number when creating the NEWS blurb. I entered "25949" instead of "88226" (I think that's the right number). I don't know if the generated blurb can simply be |
smontanaro
commented
Oct 16, 2022
I think I fixed this problem. I |
smontanaro
commented
Oct 16, 2022
One other thing. I'm confident this does the right thing. I ran these steps to verify that no warnings were issued for unused labels when compiling |
smontanaro
commented
Oct 19, 2022
Clang seems happy with the change as well. |
smontanaro
commented
Nov 2, 2022
This still spits out warnings when compiling Python/ceval.c on Windows. I haven't the slightest idea how to control for that, but I assume it must be possible. If you know how this is done, can you make a suggestion? |
serhiy-storchaka
commented
Nov 3, 2022
Disabling the warnings globally looks not good to me. It can lead to preserving unused labels in other parts of the code. Why not disable them locally, using compiler-specific pragmas? This is how we handle other types of warnings. |
Disabling the warnings globally looks not good to me. It can lead to
preserving unused labels in other parts of the code. Why not disable them
locally, using compiler-specific pragmas? This is how we handle other types
of warnings.
I wasn't aware this was possible. I'll take a look. Thanks. |
smontanaro
commented
Nov 3, 2022
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
smontanaro
commented
Nov 22, 2022
@serhiy-storchaka Can you merge this when you have a moment? Thx... |
serhiy-storchaka
commented
Nov 22, 2022
@smontanaro Aren't you a coredev? Don't you have the ability to do that yourself? I just don't promise that I will do it quickly, because we have regular blackouts here (5 minutes until the next blackout). But I will do it in 2 hours or tomorrow. |
smontanaro
commented
Nov 22, 2022
@serhiy-storchaka No worries and no rush, just as long as it's on your radar screen. Whenever you have a chance. I gave up my commit privilege a few years ago (don't really want it back). I wasn't aware you are in Ukraine. Stay well. |
serhiy-storchaka
commented
Nov 22, 2022
Done. Don't forget to remove the branch in your GitHub repository and in your local copy if you no longer need it. |
This is an updated PR from the original one I submitted (in the before GitHub issues days).
Note: I am still acquainting myself with my new MacBook, so don't have quite the full suite of autoconf tools available. I was thus unable to generate configure from configure.ac. I manually editing configure instead.