As far as I can tell this does nothing. The line should read:
GPIO_DATA(gpioport)[gpios] ^= gpios;