GCC, the core compiler behind Linux, draws a hard line against AI code

GCC, the core compiler behind Linux, draws a hard line against AI code

Published Jul 30, 2026, 8:25 PM EDT Simon is a Computer Science BSc graduate who has been writing about technology since 2014, and using Windows machines since 3.1. After working for an indie game studio and acting as the family's go-to technician for all computer issues, he found his passion for writing and decided to use his skill set to write about all things tech. Since beginning his writing career, he has written for many different publications such as WorldStart, Listverse, and MakeTechEasier. However, after finding his home at MakeUseOf in February 2019, he would eventually move on to its sister site, XDA, to bring the latest and greatest in Windows, Linux, and DIY electronics. Sign in to your XDA account Summary GCC bans AI-generated code in submissions that are "legally significant" "Legally significant" means 15 lines of code; submissions at or above that may not include LLM outputs. AI is fine for research, analysis, bug discovery and review, but AI-generated outputs can't go into patches. As AI coding tools become a key part of people's workflows, the open-source scene is beginning to ask itself if AI-generated code belongs in its projects. Linus Torvalds has made his stand, claiming that AI-generated code is fine (as long as you're held accountable for its inputs), while Debian is currently debating whether to ban LLM outputs outright. Now, the compiler that Linux depends on, the GCC, has come to a conclusion. It has outright banned AI-generated code in all submissions that are 15 lines or longer, starting right now. GCC bans AI code in "legally significant contributions" to the codebase Using AI for other means is fine Over on LWN.net, user jzb posted an article titled "GCC steering committee announces AI policy." In it, the committee explains what is and isn't allowed in the new era of AI coding, and it's bad news for people who use LLMs to program: "The GCC steering committee has announced that it has accepted an AI contributions policy recommended by the GCC AI policy working group. The policy, in part, states that the project will decline any "legally significant contributions which include LLM-generated content or are derived from LLM-generated content". " Okay, but what does "legally significant" mean? To answer that, the committee uses the same definition as listed by the GNU Project maintainer guidelines. Basically, if something is below "around 15 lines of code and/or text," it's treated as not legally significant enough to count for additional restrictions. From how the rule reads, it doesn't seem that people get a 15-line "AI budget" with their code. It seems more like if you submit code that consists of 15 lines or more, you can't use any AI code. That's not to say that the committee has banned all of AI outright. It says that if you use agents to perform "research, analysis, bug discovery and reporting, patch review," and so on, that's totally fine. But submissions shouldn't contain any AI-generated output.

Original Source

Read the full article at Xda-developers →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.