On 18/06/14 06:19, Richard Henderson wrote: > Trivial fix for missing clobber of the flags over the tlsdesc call. > > Ok for all branches? > >
OK. R. > r~ > > * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM. > > > z > > > diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md > index a4d8887..1ee2cae 100644 > --- a/gcc/config/aarch64/aarch64.md > +++ b/gcc/config/aarch64/aarch64.md > @@ -3855,6 +3855,7 @@ > (unspec:PTR [(match_operand 0 "aarch64_valid_symref" "S")] > UNSPEC_TLSDESC)) > (clobber (reg:DI LR_REGNUM)) > + (clobber (reg:CC CC_REGNUM)) > (clobber (match_scratch:DI 1 "=r"))] > "TARGET_TLS_DESC" > "adrp\\tx0, %A0\;ldr\\t%<w>1, [x0, #%L0]\;add\\t<w>0, <w>0, > %L0\;.tlsdesccall\\t%0\;blr\\t%1" >