diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fe7bdf07bf..837382756c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-09 Joseph Myers + + * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE, + WCHAR_TYPE, WCHAR_TYPE_SIZE): Define. + * config.gcc (iq2000*-*-elf*): Don't use svr4.h. + 2010-12-09 Joseph Myers * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h. diff --git a/gcc/config.gcc b/gcc/config.gcc index 731e72e6580..bd4c2727c04 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1592,7 +1592,7 @@ ia64-hp-*vms*) extra_options="${extra_options} vms/vms.opt" ;; iq2000*-*-elf*) - tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h" + tm_file="elfos.h newlib-stdint.h iq2000/iq2000.h" tmake_file=iq2000/t-iq2000 out_file=iq2000/iq2000.c md_file=iq2000/iq2000.md diff --git a/gcc/config/iq2000/iq2000.h b/gcc/config/iq2000/iq2000.h index 68b700d2d5a..971a776e351 100644 --- a/gcc/config/iq2000/iq2000.h +++ b/gcc/config/iq2000/iq2000.h @@ -28,6 +28,10 @@ #undef STARTFILE_SPEC #undef ENDFILE_SPEC +#undef LINK_SPEC +#define LINK_SPEC "%{h*} %{v:-V} \ + %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic}" + /* Run-time target specifications. */ @@ -133,6 +137,18 @@ #define LONG_DOUBLE_TYPE_SIZE 64 #define DEFAULT_SIGNED_CHAR 1 +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "int" + +#undef WCHAR_TYPE +#define WCHAR_TYPE "long int" + +#undef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE BITS_PER_WORD + /* Register Basics. */