On 27/05/17 14:39, John Pullen wrote: > Hi all, > > I'm using the latest GCC 7.1 source which I've built locally for > aarch64. Everything works fine, but I'm running into issuses using LTO. > > Normally I compile our dynamic library with -ffixed-x18 and it works > fine, but with LTO enabled, register x18 is used in the output assembler. > > Is there anyway to stop LTO from using certain registers? > Are you passing -ffixed-x18 to the link/lto step? R. > Cheers, > John. >