https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71850
Bug ID: 71850 Summary: CreateProcess argumend lpCommandLine exceeds limit 32k limit Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: christian.wilmes at elektrobit dot com Target Milestone: --- Under windows the command line is limited to 32k. When passing an compiler option file (via @optionfile) it is parsed by gcc and then a call to cc1 is generated via CreateProcess API. In this case gcc passes the parameters from the option file and does not check wether it exceeds the 32k limit. For example if someone defines too many include directories gcc will crash with a "CreateProcess: No such file or directory" error.