Skip to content

aarch64: avoid -Wunused_parameter in older CPUs #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025

Conversation

carenas
Copy link
Contributor

@carenas carenas commented Aug 10, 2025

Noticed while building recent PCRE2 in a 64-bit arm Linux, but likely to also affect others

In systems with no LSE support, the parameter goes unused.

Add the missing marker and while at it, make sure that the
difference of behaviour is externally visible by updating the
platform identifier.
@@ -24,9 +24,15 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef __ARM_FEATURE_ATOMICS
#define ARM_ATOMIC_INFO " (LSE)"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is LSE the official name? Not CAS (compare and swap)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LSE (for Large Systems Extension) is the name of the extension (AKA feature), which was include in Armv8.1-A.

CAS is the name of the implementation, and while I have no preference either way, but this was less generic and therefore less likely to cause confusion IMHO.

Copy link
Owner

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zherczeg zherczeg merged commit 1fade85 into zherczeg:master Aug 11, 2025
11 checks passed
@carenas carenas deleted the lseinfo branch August 11, 2025 15:00
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.

2 participants