Bug in 4.[12] BSD C compiler with "asm" statement
chris at umcp-cs.UUCP
chris at umcp-cs.UUCP
Thu Jul 5 08:01:06 AEST 1984
This is what's called a ``known bug'' (or sometimes a ``feature'').
Everyone who uses asm() is supposed to know that extra null statements
are needed after if's. asm()s sneak through the back door of the
compiler and don't count as a statement. I suspect it's not worth
fixing. By the way, if you write
if (foo())
asm("hi there");
bar();
else
baz();
the call to ``bar'' is inside the ``if'', not outside. The compiler
won't complain about the ``else'' either.
I say, leave the ``feature'' in there as a warning to anyone who
wants to use asm()!
Not entirely serious,
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690
UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at maryland
More information about the Comp.lang.c
mailing list