[net.unix-wizar] Subtle but dangerous Sun cc bug

mkg (03/24/83)

#N:whuxlb:900011:000:482
whuxlb!mkg    Mar 24 12:38:00 1983

The two C compilers on the Sun workstation (cc and new_cc) suffer
from a bug that causes some "external" variables to be treated as
automatic storage rather than static.  If you declare variables
in between subroutines, these contents of these variables are NOT
preserved between subroutine calls.  Moving the declares before the
first executable statement in the source file seems to cure the
problem (make them "static").
  Marsh Gosnell BTL Whippany  (201) 386-7095   whuxlb!mkg