Message ID | AANLkTikmG=SbW+dtSnudRZpTjQJx5_L8ViS=LKB4sZBr@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Sun, 10 Oct 2010, Uros Bizjak wrote: > On Sun, Oct 10, 2010 at 4:48 PM, Uros Bizjak <ubizjak@gmail.com> wrote: > > >> + static inline void > >> + bar (unsigned *u) > >> + { > >> + __asm__ ("":"=d" (*u)); > >> + } > > > > "=d" is not universally accepted ASM constraint. > > 2010-10-10 Uros Bizjak <ubizjak@gmail.com> > > * gcc.dg/lto/20101009-1_0.c (bar): Fix asm constraints. > > Tested on x86_64-pc-linux-gnu and alphaev68-pc-linux-gnu. Committed to > SVN mainline. Thanks for fixing it. Richard.
Index: gcc.dg/lto/20101009-1_0.c =================================================================== --- gcc.dg/lto/20101009-1_0.c (revision 165252) +++ gcc.dg/lto/20101009-1_0.c (working copy) @@ -3,7 +3,7 @@ static inline void bar (unsigned *u) { - __asm__ ("":"=d" (*u)); + __asm__ ("":"=r" (*u)); } void