Don't drop optimization flag with USE_BARRIER