https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60947
--- Comment #15 from amker at gcc dot gnu.org --- Well, only thing suspicious that I can see, the memset function is a special implementation and not from C standard library. Basically it doesn't need to follow the standard, which means the return value could be something else other than the passed in pointer. Though I doubt it would actually break the standard. So YuFan, could you help look into implementation of memset to see if it acts as expected? Thanks.