aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.host
diff options
context:
space:
mode:
authorCostas Argyris <costas.argyris@gmail.com>2023-03-26 11:32:13 +0100
committerJonathan Yong <10walls@gmail.com>2023-03-28 08:04:09 +0000
commit304c7d44a2212e6fd618587331cea2c266dc10bf (patch)
tree2bb9b28b5dd59a640314ad0403de6abec29ea056 /gcc/config.host
parentb462947dae9f8c0dd7c11165ccfdf6acd6f12a1c (diff)
downloadgcc-304c7d44a2212e6fd618587331cea2c266dc10bf.zip
gcc-304c7d44a2212e6fd618587331cea2c266dc10bf.tar.gz
gcc-304c7d44a2212e6fd618587331cea2c266dc10bf.tar.bz2
Extend UTF-8 support to the 32-bit mingw host.
Prevent any name mangling in HOST_EXTRA_OBJS_SYMBOL such that the linker always finds it by that name. Also add the .manifest file as an explicit dependency in the make rule such that the object gets re-built if it changes. gcc/ChangeLog: * config.host: Pull in i386/x-mingw32-utf8 Makefile fragment and reference utf8rc-mingw32.o explicitly for mingw hosts. * config/i386/sym-mingw32.cc: prevent name mangling of stub symbol. * config/i386/x-mingw32-utf8: Make utf8rc-mingw32.o depend on manifest file explicitly. Signed-off-by: Jonathan Yong <10walls@gmail.com>
Diffstat (limited to 'gcc/config.host')
-rw-r--r--gcc/config.host5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config.host b/gcc/config.host
index 4abb32a..5df8575 100644
--- a/gcc/config.host
+++ b/gcc/config.host
@@ -232,10 +232,11 @@ case ${host} in
;;
i[34567]86-*-mingw32*)
host_xm_file=i386/xm-mingw32.h
- host_xmake_file="${host_xmake_file} i386/x-mingw32"
+ host_xmake_file="${host_xmake_file} i386/x-mingw32 i386/x-mingw32-utf8"
host_exeext=.exe
out_host_hook_obj=host-mingw32.o
- host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
+ host_extra_objs="${host_extra_objs} utf8-mingw32.o"
+ host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o utf8rc-mingw32.o"
host_lto_plugin_soname=liblto_plugin.dll
;;
x86_64-*-mingw*)