https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67532
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> --- I implemented it on hjl/got/master branch https://gcc.gnu.org/git/?p=gcc.git;a=shortlog;h=refs/heads/hjl/got/master The patch is at https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=fad07e655ff6be4b5b56cae14c4646761fb73c5a with testcases.