GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — GH-137959: fix warning 'visibility' attribute ignored in jit/trampoline.c by chris-eibl · Pull Request #140286 · python/cpython Conversation
|
| elif re.fullmatch(r"i686-pc-windows-msvc", host): | |
| host = "i686-pc-windows-msvc" | |
| condition = "defined(_M_IX86)" | |
| # -Wno-ignored-attributes: __attribute__((preserve_none)) is not supported here. | |
| args = ["-DPy_NO_ENABLE_SHARED", "-Wno-ignored-attributes"] |
preserve_none is not supported there.
I suggest to use
Lines 1 to 4 in f937468
| // To use preserve_none in JIT builds, we need to declare a separate function | |
| // pointer with __attribute__((preserve_none)), since this attribute may not be | |
| // supported by the compiler used to build the rest of the interpreter. | |
| typedef jit_func __attribute__((preserve_none)) jit_func_preserve_none; |
I've verified with a small Godbolt demo and by comparing the emit_trampoline in the generated jit_stencils.h that the generated code remains the same.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think Savannah already opened a PR for this here #139981. Perhaps you could review it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks Ken. Well spotted, I haven't seen Savannah's PR so closing mine. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.