c.opt doesn't use Var() ?

Zack Weinberg zack@codesourcery.com
Thu Jun 24 20:27:00 GMT 2004


DJ Delorie <dj@redhat.com> writes:

> Why don't any of the *.opt files (other than common.opt) use Var()?
> It seems like something that would reduce code complexity in a lot of
> cases, would make adding a #pragma to tweak warnings easier, yet it is
> rarely used...

I can think of two possible explanations:

1) Zdenek didn't bother to update anything but common.opt.
2) Flags in other *.opt files are associated with variables whose
   definitions shouldn't be in the autogenerated options.c.

Either way, patches to (make it possible to) use Var() more are
welcome.

zw



More information about the Gcc mailing list