diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee384793dd4..79d1d8840a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-09 Joseph Myers + + * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define. + * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use + svr4.h. + 2010-12-09 Joseph Myers * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE, diff --git a/gcc/config.gcc b/gcc/config.gcc index 1371c43b10f..50713a96bf5 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1006,7 +1006,7 @@ h8300-*-elf*) ;; hppa*64*-*-linux*) target_cpu_default="MASK_PA_11|MASK_PA_20" - tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \ + tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h linux.h \ glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \ pa/pa64-linux.h" tmake_file="${tmake_file} pa/t-linux64" @@ -1015,7 +1015,7 @@ hppa*64*-*-linux*) ;; hppa*-*-linux*) target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" - tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h pa/pa-linux.h \ + tm_file="${tm_file} dbxelf.h elfos.h linux.h glibc-stdint.h pa/pa-linux.h \ pa/pa32-regs.h pa/pa32-linux.h" tmake_file="${tmake_file} pa/t-linux t-slibgcc-libgcc" # Set the libgcc version number diff --git a/gcc/config/pa/pa32-linux.h b/gcc/config/pa/pa32-linux.h index 1ccb66c8ca1..8d80a210003 100644 --- a/gcc/config/pa/pa32-linux.h +++ b/gcc/config/pa/pa32-linux.h @@ -1,5 +1,6 @@ /* Definitions for PA_RISC with ELF-32 format - Copyright (C) 2000, 2002, 2004, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2004, 2006, 2007, 2010 + Free Software Foundation, Inc. This file is part of GCC. @@ -57,4 +58,10 @@ call_ ## FUNC (void) \ } #endif +#undef WCHAR_TYPE +#define WCHAR_TYPE "long int" + +#undef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE BITS_PER_WORD + #define MD_UNWIND_SUPPORT "config/pa/linux-unwind.h"