This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
X18 on AArch64
- From: Andrà Hentschel <nerv at dawncrow dot de>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 07 Jul 2015 22:30:05 +0200
- Subject: X18 on AArch64
- Authentication-results: sourceware.org; auth=none
Hi all,
Note: I'm new to that mailinglist...
On AArch64 X18 is used as a platform register for some platforms, so to generate portable executables it should not be used by the compiler.
The use case i have for this is Wine. Windows arm64 programs use X18 as TLS register, thus it shouldn't be changed, otherwise it leads to a crash.
I worked on a patch [1], but realized that X17 is a bad choice (IP registers should be avoided on arm64 for the chain register it seems...),
so I wonder which register would be better. Something from X9-X15?
See also the bug report containing the patch:
[1] https://bugs.winehq.org/show_bug.cgi?id=38780