Fix GH-21029: Add missing cc clobber #21051
Closed
+4
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Let the compiler know that the inline assembly in
zend_safe_address()clobbers the flags register.We need to add
ccin the clobber list for aarch64 (ADDSaffect the condition flags), andxerfor powerpc64 (ADDC,ADDZEaffect the Fixed point exception register AKAxer).i386, x86_64, and arm were already correct. Other inline assembly blocks seem correct.
I didn't reproduce the issue on powerpc64, but the change was tested at https://github.com/php/php-src/actions/runs/21404066744/job/61623034776.