flow.c bugfix

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Fri Dec 4 02:38:00 GMT 1998


At 02:37 04.12.98 , Richard Henderson wrote:
>On Thu, Dec 03, 1998 at 03:47:48PM +0100, Franz Sirl wrote:
>> static int foo;
>> void bar (void) { asm ("" : "r"(&foo)); }
>
>This is in error anyway.  You're missing a colon:
>
>  void bar (void) { asm ("" : : "r"(&foo)); }
>
>Otherwise you are treating that as an asm output, which is just
>bound to get you into trouble.  I'm actually surprised that it
>didn't get flagged as an error earlier.

Oops, sorry, I meant to correct this typo from the original posting, there
should be 2 colons.

Franz.




More information about the Gcc-patches mailing list