sdcc: Update to 3.1.0, add huge-stack-auto for mcs51

Closes #18105.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>