gcc: Update to 12.2 and merge improvements from upstream
Patches are in sync with openembedded-core commit a2f52f6f698a1073f264dfb8afcdb4dcbcec6be8
12.2 update is submitted upstream at https://lists.openembedded.org/g/openembedded-core/message/169719
Signed-off-by: Bernhard Rosenkränzer bernhard.rosenkraenzer.ext@huawei.com