Optimize gcc-post script