"ORC_developer" <heguojin@xxxxxxxxx> writes: > I followed the manual > Define a common option like that: > > common-instr > Common Var(common_instr_flag) Init(0) > Outputing common instrumentation code > > Then I use the flag if(common_instr_flag) in sparc.c to enable my code. > > When I use gcc -common-instr=1, I just got > unrecognized option '-common-instr=1' > > Then I tried to modify c-opts.c , function c_common_handle_option > To handle the case OPT_common-instr. > And I tried > gcc -common-instr, > > same error " unrecognized option '-common-instr " > > What else should I do to use the option? The gcc driver has default rules about which options it passes to the backends. Best method: give your option a name starting with 'f', like most of the backend options which are not machine-specific. Ian