gcc: sandbox within series release number only

Fixes #33948.