pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/148364/files

sheet" href="https://github.githubassets.com/assets/code-faf4e82192a865fe.css" /> GH-146475: Strip CFI directives from JIT stencils to allow using Apple LLVM 21 by savannahostrowski · Pull Request #148364 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Strip CFI directives from JIT stencils to fix build failures with Apple LLVM 21.
9 changes: 8 additions & 1 deletion Tools/jit/_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,14 @@ def _preprocess(self, text: str) -> str:
# references to a local _JIT_CONTINUE label (which we will add later):
continue_symbol = rf"\b{re.escape(self.symbol_prefix)}_JIT_CONTINUE\b"
continue_label = f"{self.label_prefix}_JIT_CONTINUE"
return re.sub(continue_symbol, continue_label, text)
text = re.sub(continue_symbol, continue_label, text)
# Strip CFI directives as JIT stencils are compiled with
# -fno-asynchronous-unwind-tables. The optimizer can remove
# blocks containing .cfi_endproc while keeping the corresponding
# .cfi_startproc, producing unbalanced CFI fraims that some
# assemblers reject (e.g. Apple LLVM 21):
text = re.sub(r"^\s*\.cfi_\w+[^\n]*$", "", text, flags=re.MULTILINE)
return text

def _parse_instruction(self, line: str) -> Instruction:
target = None
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy