VOOZH about

URL: https://www.phoronix.com/news/GCC-To-Consider-LLM-Patches

⇱ GCC Developers Considering Whether To Accept AI/LLM-Generated Patches - Phoronix


👁 Phoronix

GCC Developers Considering Whether To Accept AI/LLM-Generated Patches

Written by Michael Larabel in GNU on 15 December 2025 at 05:53 AM EST. 21 Comments
The GNU Compiler Collection (GCC) developers now have a need to set a policy whether AI / Large Language Model (LLM) generated patches will be accepted for this open-source compiler stack.

The GCC compiler doesn't currently have a policy in place whether to permit AI/LLM-generated patches. But within a bug report today there is a patch posted by a user in trying to fix a GCC 16 compiler regression. The proposed patch notes:
"Fixed provided by GPT-5-CodeX fix the ICE for me."

This patch generated by GPT-5-CodeX is a 123 line patch. The user having reported this GCC compiler bug and used SPT-5-CodeX to generate it is an Intel engineer.

👁 GCC GPT-5-CodeX patch


Thus now a need for GCC developers to decide whether to permit or deny LLM-generated patches to upstream GCC.

A mailing list discussion thread was started to weigh whether to accept said patches. It was also suggested that the GNU Binutils policy, which is also used in large part by the Glibc project, could be a reasonable start. Their policy is to not accept LLM-generated patches out of copyright concern but that using an LLM to inspire/help may be okay as long as it's not legally significant in the contributed changes and the usage of any LLM is clearly acknowledged.

So far in the mailing list thread no one has come out in favor of outright allowing complete LLM patches to be accepted, especially large patches such as what's now on that GCC BugZilla ticket. It may ultimately come down to the GCC Steering Committee to formally decide a position on AI/LLM-generated patches but if the immediate comments are any indicator, it looks like GCC would probably not be allowing LLM-generated patches at least in the near-term.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.