Patchwork Fix PR45945

login
register
mail settings
Submitter Uros Bizjak
Date Oct. 10, 2010, 6:04 p.m.
Message ID <AANLkTikmG=SbW+dtSnudRZpTjQJx5_L8ViS=LKB4sZBr@mail.gmail.com>
Download mbox | patch
Permalink /patch/67359/
State New
Headers show

Comments

Uros Bizjak - Oct. 10, 2010, 6:04 p.m.
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.

Uros.
Richard Guenther - Oct. 11, 2010, 9:19 a.m.
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.

Patch

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