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]

Make error when use SUBTARGET_OVERRIDE_OPTIONS macro


In the file target.c, I declare
SUBTARGET_OVERRIDE_OPTIONS to add more command options
for my target : 

------------------------------------------------------
#ifndef SUBTARGET_OVERRIDE_OPTIONS
#define SUBTARGET_OVERRIDE_OPTIONS 	
#endif

#define OVERRIDE_OPTIONS					\
	{								\
	   {"model=", &c166_model_string,			\
		N_("Code size : small, medium or large")}	\
	   SUBTARGET_OVERRIDE_OPTIONS					\
	}	
------------------------------------------------------

But when I use "make" to build, it generates error
when parse file "toplev.c"

 ../../GCC-C166/gcc/toplev.c : 5064: error: parse
error before } token.

When I ran to line 5064 of file toplev.c , I saw this
:

-------------------------------------------------------
#ifdef OVERRIDE_OPTIONS
  /* Some machines may reject certain combinations of
options.  */
  OVERRIDE_OPTIONS; <----------------- error line here
#endif 
-------------------------------------------------------

So can you tell me why does it generate this error ? 
Thank you very much ! 


      


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