This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Porting GCC to 8051
- To: Thomas dot Schuetzkowski at web dot de
- Subject: Re: Porting GCC to 8051
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 14 Mar 2000 16:05:41 -0700
- cc: gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
http://www.cygnus.com http://www.cygnus.com/egcs
In message <38CEBA06.380F26F6@web.de>you write:
>
> #define TARGET_INT16 (target_flags & 1)
>
> #define INT_TYPE_SIZE (TARGET_INT16 ? 16 : 8)
>
> but I got a error when linking cccp, because target_flags are there not
> available.
>
> cc -DCROSS_COMPILE -DIN_GCC -g -o cccp cccp.o cexp.o \
> version.o obstack.o ` case "cc" in "cc") echo "" ;; esac `
> cccp.o: In function `special_symbol':
> /gnu/gcc-2.7.2.3/cccp.c:4145: undefined reference to
> `target_flags'
> cccp.o: In function `initialize_builtins':
> /gnu/gcc-2.7.2.3/cccp.c:9655: undefined reference to
> `target_flags'
> cexp.o: In function `yylex':
> /gnu/gcc-2.7.2.3/cexp.y:596: undefined reference to
> `target_flags'
>
> In the Target Description of pdp11 (pdp11.h) I´ve seen such a definition
> and it works fine.
See the MAX_*_TYPE_SIZE macros.
jeff