diff mbox

Fix PR45945

Message ID AANLkTikmG=SbW+dtSnudRZpTjQJx5_L8ViS=LKB4sZBr@mail.gmail.com
State New
Headers show

Commit Message

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

Comments

Richard Biener Oct. 11, 2010, 9:19 a.m. UTC | #1
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.
diff mbox

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