This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c.opt doesn't use Var() ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]