gcc: Fix intrinsic patch

Based on patch by Ilya Goncharov <zenbooster@gmail.com>

Signed-off-by: Timothy Gu <timothygu99@gmail.com>