This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Make error when use SUBTARGET_OVERRIDE_OPTIONS macro
- From: Dong Phuong <dongphuong2410 at yahoo dot com>
- To: gcc at gnu dot org
- Date: Wed, 12 Nov 2008 01:43:50 -0800 (PST)
- Subject: 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 !