We should update from gcc-11.2.1-3.fc36 (or newer), which brings various changes (updated to latest snapshot, added the libgcc LDFLAGS_FOR_TARGET patch, __VA_OPT__ support, constint thread_local opt, bundled(lib{backtrace,ffi}), ldconfig* fix etc.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: gcc), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:3966