wchar-patch

Richard Henderson rth@cygnus.com
Mon Aug 2 16:05:00 GMT 1999


Applied.


r~


> 1999-08-02  Jakub Jelinek  <jj@ultra.linux.cz>
> 
> 	* config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
> 	MAX_WCHAR_TYPE defined in sparc.h.
> 	* config/sparc/linuxaout.h: Likewise.
> 	* config/sparc/linux64.h: Likewise.
> 	Also default to -mvis if CPU is UltraSPARC.
> 	
> --- gcc/config/sparc/linux64.h.jj3	Sat Jul 31 20:26:41 1999
> +++ gcc/config/sparc/linux64.h	Mon Aug  2 10:37:36 1999
> @@ -135,10 +135,12 @@ Boston, MA 02111-1307, USA.  */
>  #define SPARC_DEFAULT_CMODEL CM_MEDLOW
>  
>  #undef WCHAR_TYPE
> -#define WCHAR_TYPE "long int"
> -   
> +#define WCHAR_TYPE "int"
> +
>  #undef WCHAR_TYPE_SIZE
> -#define WCHAR_TYPE_SIZE BITS_PER_WORD
> +#define WCHAR_TYPE_SIZE 32
> +
> +#undef MAX_WCHAR_TYPE_SIZE
>  
>  #undef LONG_DOUBLE_TYPE_SIZE
>  #define LONG_DOUBLE_TYPE_SIZE 128
> @@ -226,7 +228,8 @@ Boston, MA 02111-1307, USA.  */
>  %{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
>  %{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
>  %{m64:-mptr64 -mstack-bias \
> -  %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=ultrasparc}}}}}}}} \
> +  %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=ultrasparc}}}}}}} \
> +  %{!mno-vis:%{!mcpu=v9:-mvis}}} \
>  "
>  #else
>  #define CC1_SPEC "\
> @@ -236,6 +239,7 @@ Boston, MA 02111-1307, USA.  */
>  %{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
>  %{m32:-mptr32 -mno-stack-bias \
>    %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=cypress}}}}}}}} \
> +%{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}} \
>  "
>  #endif
>  
> --- gcc/config/sparc/linux.h.jj3	Wed Dec 16 22:13:11 1998
> +++ gcc/config/sparc/linux.h	Mon Aug  2 10:25:08 1999
> @@ -97,10 +97,12 @@ Boston, MA 02111-1307, USA.  */
>  #define PTRDIFF_TYPE "int"
>    
>  #undef WCHAR_TYPE
> -#define WCHAR_TYPE "long int"
> +#define WCHAR_TYPE "int"
>     
>  #undef WCHAR_TYPE_SIZE
> -#define WCHAR_TYPE_SIZE BITS_PER_WORD
> +#define WCHAR_TYPE_SIZE 32
> +
> +#undef MAX_WCHAR_TYPE_SIZE
>      
>  #undef CPP_PREDEFINES
>  #define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sparc__ -Dlinux -Asystem(unix) -Asystem(posix)"
> --- gcc/config/sparc/linux-aout.h.jj3	Wed Dec 16 22:13:10 1998
> +++ gcc/config/sparc/linux-aout.h	Mon Aug  2 10:25:08 1999
> @@ -64,10 +64,12 @@ Boston, MA 02111-1307, USA.  */
>  #define PTRDIFF_TYPE "int"
>  
>  #undef WCHAR_TYPE
> -#define WCHAR_TYPE "long int"
> +#define WCHAR_TYPE "int"
>  
>  #undef WCHAR_TYPE_SIZE
> -#define WCHAR_TYPE_SIZE BITS_PER_WORD
> +#define WCHAR_TYPE_SIZE 32
> +
> +#undef MAX_WCHAR_TYPE_SIZE
>  
>  #undef CPP_PREDEFINES
>  #define CPP_PREDEFINES "-Dunix -Dsparc -Dlinux -Asystem(unix) -Asystem(posix)"


More information about the Gcc-patches mailing list