)]}' { "commit": "33d0f96ffd7394ffb208bb366be312d12dfd24a4", "tree": "786d9469c3f97b255001d323964ad23b83118728", "parents": [ "394b19d6cb58ae292c0e1ad6b893fed8ece477ce" ], "author": { "name": "Arvind Sankar", "email": "nivedita@alum.mit.edu", "time": "Wed Aug 19 10:08:16 2020 -0400" }, "committer": { "name": "Linus Torvalds", "email": "torvalds@linux-foundation.org", "time": "Wed Aug 19 11:23:45 2020 -0700" }, "message": "lib/string.c: Use freestanding environment\n\ngcc can transform the loop in a naive implementation of memset/memcpy\netc into a call to the function itself. This optimization is enabled by\n-ftree-loop-distribute-patterns.\n\nThis has been the case for a while, but gcc-10.x enables this option at\n-O2 rather than -O3 as in previous versions.\n\nAdd -ffreestanding, which implicitly disables this optimization with\ngcc. It is unclear whether clang performs such optimizations, but\nhopefully it will also not do so in a freestanding environment.\n\nSigned-off-by: Arvind Sankar \u003cnivedita@alum.mit.edu\u003e\nLink: https://gcc.gnu.org/bugzilla/show_bug.cgi?id\u003d56888\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "e290fc5707ea656c97da456b91c58913477a7d3c", "old_mode": 33188, "old_path": "lib/Makefile", "new_id": "a4a4c6864f51814f6fbc3b90b3c59b04d71471b1", "new_mode": 33188, "new_path": "lib/Makefile" } ] }