android / android/ndk

teach clang to automatically realign x86 stacks when appropriate

Open
#741 0 comments 0 reactions 0 assignees View on GitHub
clang enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

https://github.com/android-ndk/ndk/issues/693#issuecomment-390815633

> The longer term fix is to teach Clang to automatically realign the stack for Android < 24, x86, and when the function is a constructor. With that change the only way this will create a problem for people is if they're trying to use some inline assembly that can't satisfy these constraints specifically in a constructor.

Contributor guide

Open the contributing guide

Research direction

Start with the linked issue comment and investigate how Clang handles stack alignment for Android versions before 24 on x86, especially for constructors. Done means Clang automatically realigns the stack when those conditions apply without breaking the stated inline-assembly constraints.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.