On Thu, 17 Mar 2022, James K. Lowden wrote: > That's good to know; at least you're not telling me it's horribly out > of date. I am puzzled, though, because AFAICT that document doen't > indicate why a leading "f" or trailing "=" controls whether or not an > option taking an argument is passed to the compiler.
The .opt files control how options are parsed, both in the driver and in the compiler programs such as cc1. Passing of options from the driver to those compiler programs is based on specs in the driver; -f options are passed down because of the use of %{f*} in cc1_options (and the use of %(cc1_options) in the specs for most languages). If you want to pass down options from the driver that don't follow any existing naming convention, your language specs will need to contain the corresponding rules for passing down those options. -- Joseph S. Myers jos...@codesourcery.com