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]

how to make GCC option hook aware


Hi GCC folks,

I have implemented a function for LANG_HOOKS_HANDLE_OPTION for my toy
language front end to handle options.

The specific option is populated in lang.opt as fdemo-debug

My lang-specs file has the following: {"@demo",  "demo1 %i
%(cc1_options) %{!fsyntax-only:%(invoke_as)}", 0, 1, 0},

Everything compiles and the front end gets invoked. GCC even suggest
the correct the flag when mistyped, but my function
demo_langhook_handle_option doesn't get invoked.

What else do I need to implement to get this working.

Thanks


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