Gevrey reguarity for a class of dissipative equations with analytic nonlinearity