Bugs in profiling and C compile on PDP-11
utzoo!decvax!harpo!floyd!cmcl2!philabs!mcvax!ukc!root44!pdl
utzoo!decvax!harpo!floyd!cmcl2!philabs!mcvax!ukc!root44!pdl
Sun Apr 17 16:12:14 AEST 1983
This is NOT a bug in cc, it's a bug in the profiling stuff,
the compiler is correct in doing a signed shift, if the shift is to be unsigned,
the code should be:
(unsigned)(( ... ) >> 1)
and NOT (unsigned)( ... ) >> 1,
(casts having higher precedence than shifts).
Per ardua ad perfectum (!?!)
Dave Lukes
...!decvax!ukc!root44!pdl
More information about the Net.bugs.usg
mailing list