FIX #2234: don't generate <prog>.prof unless we're going to put something in it