]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Apply fix for asm constraint error in www/php80-opcache
authorDimitry Andric <dim@FreeBSD.org>
Thu, 17 Feb 2022 21:49:39 +0000 (22:49 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 4 Jun 2022 11:59:37 +0000 (13:59 +0200)
commit8d4cb93316be6e6ce5f8dedb1555c3857b80cdbe
tree89b2675a676899f13d2f79fe8d965ebdfd8aa2c2
parent74ff3f63950ff646fdfd0ac5ae9893cd453cba36
Apply fix for asm constraint error in www/php80-opcache

Merge commit 027c16bef4b7 from llvm git (by Nick Desaulniers):

  [X86ISelLowering] permit BlockAddressSDNode "i" constraints for PIC

  When building 32b x86 code as PIC, the existing handling of "i"
  constraints is conservative since generally we have to go through the
  GOT to find references to functions.

  But generally, BlockAddresses from C code refer to the Function in the
  current TU.  Permit BlockAddresses to be used with the "i" constraint
  for those cases.

  I regressed this in
  commit 4edb9983cb8c ("[SelectionDAG] treat X constrained labels as i for asm")

Fixes: https://github.com/llvm/llvm-project/issues/53868
  Reviewed By: efriedma, MaskRay

  Differential Revision: https://reviews.llvm.org/D119905

(cherry picked from commit 8885dff6cec52378084211fdd9366a73833eceee)
contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp