Electronic structure, thermodynamic, and magnetic properties of 3d-transition metal (TM) impurities in GaAs have been studied from first principles using Green's function approach. The studied TM impurities (V, Cr, Mn, and Fe) are found to form substitutional alloys on the Ga sublattice. The possibility of raising the Curie temperature T C in (GaMn)As by co-doping it with Cr impurities was examined on the basis of total energy difference between the disordered local moment (DLM) and the ferromagnetically ordered (FM) spin configurations. The calculated Curie temperature and magnetic moment have maxima for GaAs doped with Cr and Mn. The magnetic properties of Mn-doped GaAs are shown to be more sensitive to antisite As defects than those of Cr-doped GaAs. However, the Cr impurities are sensitive to the presence of acceptor defects, such as vacancies on the Ga sublattice. The investigation of the electronic structure of pseudo-ternary alloys (Ga (1− x − y )Mn x Cr y )As has shown a mutual compensation of Mn and Cr impurities. Therefore, in order to reach the highest critical temperature, GaAs has to be separately doped with Cr or Mn impurities. The GaAs doped with Fe is found to be non-ferromagnetic.