This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: f_options x common.opt
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 11 Jun 2004 08:23:44 +0000 (UTC)
- Subject: Re: f_options x common.opt
- References: <20040611005822.GA28834@atrey.karlin.mff.cuni.cz>
On Fri, 11 Jun 2004, Zdenek Dvorak wrote:
> I am somewhat confused about how to add new options. There is
> common.opt and relater machinery, but still there also is f_options
> array in toplev.c.
>
> So where should the options be added? Just to common.opt, or to
> both? If to both, why would we have such stupidity? If just to
> common.opt, why does f_options still exist?
f_options is used only for -fverbose-asm. The common.opt format could be
extended to list variables for which declarations are to be generated (and
indeed thus get rid of much of the switch code just assigning to such
variables) so as to obsolete f_options.
--
Joseph S. Myers
jsm@polyomino.org.uk