Closed shahab-vahedi closed 1 year ago
$ ./configure --disable-werror ...
works around this.
Label arc64
?
For ARCv3, this file is copied from src/gcc/libstdc++-v3/config/locale/newlib/ctype_members.cc
into the build dir (build-gcc-newlib-stage2/arc64-elf/libstdc++-v3/src/c++11/ctype_members.cc
) and then is built. For ARCv2, although this file does exist in the source gcc, it never is copied into the build dir (and compiled?). @claziss a few questions:
1) Do we really need this for arc64?
2) Is the wchar_t
type target dependent? If yes, maybe we can fix it from our side.
3) If the answer to (2) is "no", then I will fix this upstream.
For ARCv3, this file is copied from
src/gcc/libstdc++-v3/config/locale/newlib/ctype_members.cc
into the build dir (build-gcc-newlib-stage2/arc64-elf/libstdc++-v3/src/c++11/ctype_members.cc
) and then is built. For ARCv2, although this file does exist in the source gcc, it never is copied into the build dir (and compiled?). @claziss a few questions:1. Do we really need this for arc64? 2. Is the `wchar_t` type target dependent? If yes, maybe we can fix it from our side. 3. If the answer to (2) is "no", then I will fix this upstream.
AFAIK this file is compiled for ARCv2 too.
Then it is not copied to build dir like the arc64 build that I had. Maybe it has something to do with "multilib" building. Nevertheless, you skipped answering the questions.
Through personal communication, @claziss 's response:
1. Do we really need this for arc64?
Yes. ctype_members.cc is part of wchar_t (wide chars) support.
2. Is the `wchar_t` type target dependent?
Yes. It is "int" for ARCv2 and "unsigned int" for ARCv3.
wchar_t
support, so we do need it if we support wide chars.I've changed the ABI to reflect what we were doing in ARCv2. Fix here: https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/9aa6ae66c99ea77a0d3bed00db498e38ddc594f4
@claziss do we want it in arc-2021.09
branch as well?
My x86_64 GCC version:
gcc (GCC) 10.2.1 20201203
ARC64 GCC commit: 80711e9378 arc64: Add Vectorizer cost hook.