new method to detect gcc