Porting GCC to 8051
Jeffrey A Law
law@cygnus.com
Tue Mar 14 15:12:00 GMT 2000
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
More information about the Gcc
mailing list