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: where is the definition of struct gcc_options?


On Wed, Jun 15, 2016 at 7:00 AM, zet <feqin1023@gmail.com> wrote:
>
> I am reading the source of gcc(version 4.8.2), there is a important
> symbol 'global_options' whose type is struct gcc_options
> in cc1' entry function toplev_main().
>
> I have build the gcc with make -g -O0, in gdb use ptype i can get the
> content of struct gcc_options,
> but in vim I cannot find its definition.
>
> $ ctags -R/ cscope -R
>
> And other symbol jump is correct, just struct gcc_options.
> Did I missing something?

It's in a generated file.  Look at gcc/options.h in your build directory.

There are many generated files in the GCC build.

Ian


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