Update checkGCC function