gcc: combine conditionals