Skip to content

[ARM] Allow -fzero-call-used-regs on 32-bit Arm - #22

Open
kumarak wants to merge 1 commit into
zeroize-arm-clearingfrom
zeroize-arm-driver
Open

[ARM] Allow -fzero-call-used-regs on 32-bit Arm#22
kumarak wants to merge 1 commit into
zeroize-arm-clearingfrom
zeroize-arm-driver

Conversation

@kumarak

@kumarak kumarak commented Aug 18, 2026

Copy link
Copy Markdown
Member

The driver rejected the flag on Arm through a hard-coded list of targets, carrying a FIXME that the restriction had no good reason beyond the backend work not being done. The backend now clears the call-used registers on Arm, Thumb-1 and Thumb-2, so the reason is gone and the two request paths agree: the flag and the function attribute reach the same place.

A target whose backend still does not implement the clear is refused as before, which the test pins with PowerPC.

This is trailofbits/vspells-ct-internal-notes#52, under the umbrella trailofbits/vspells-ct-internal-notes#30.

The driver rejected the flag on Arm through a hard-coded list of targets,
carrying a FIXME that the restriction had no good reason beyond the
backend work not being done. The backend now clears the call-used
registers on Arm, Thumb-1 and Thumb-2, so the reason is gone and the two
request paths agree: the flag and the function attribute reach the same
place.

A target whose backend still does not implement the clear is refused as
before, which the test pins with PowerPC.

This is trailofbits/vspells-ct-internal-notes#52, under the umbrella
trailofbits/vspells-ct-internal-notes#30.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant