[Bug libstdc++/58628] Incorrect std::isalpha results with UTF-8 locale on illumos
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58628 --- Comment #4 from Alexander Pyhalov --- If it helps, the last comment from illumos-gate bug report says "From what I can tell ctype::_M_initialize_ctype() in gcc-5.1.0/ibstdc++-v3/config/locale/generic/ctype_members.cc:248 is basically just calling btowc(i) for all i <= 0 <= 255 and storing the result. If std::locale::classic() is called before the setlocale() call in the test program, things happen to work, but apparently the initialization uses whatever the current locale is."
[Bug libstdc++/58628] Incorrect std::isalpha results with UTF-8 locale on illumos
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58628 --- Comment #3 from Alexander Pyhalov --- I still see this behavior with gcc version 10.4.0.
[Bug other/64362] rtl.h:2168:13: error: use of enum 'reg_class' without previous declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64362 --- Comment #1 from Alexander Pyhalov --- Sorry, it seems to be illumos issue.
[Bug other/64362] New: rtl.h:2168:13: error: use of enum 'reg_class' without previous declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64362 Bug ID: 64362 Summary: rtl.h:2168:13: error: use of enum 'reg_class' without previous declaration Product: gcc Version: 4.8.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: alp at rsu dot ru Can't compile gcc 4.8.4 with gcc 4.8.3 on illumos (OpenIndiana Hipster). During compilation the following error occurs: /usr/gcc/4.8/bin/g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc -I/export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/build -I/export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/../include -I/export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/../libcpp/include \ -o build/genflags.o /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/genflags.c In file included from /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/genflags.c:27:0: /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2168:13: error: use of enum �reg_class� without previous declaration extern enum reg_class reg_preferred_class (int); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2168:48: error: invalid type in declaration before �;� token extern enum reg_class reg_preferred_class (int); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2169:13: error: use of enum �reg_class� without previous declaration extern enum reg_class reg_alternate_class (int); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2169:48: error: invalid type in declaration before �;� token extern enum reg_class reg_alternate_class (int); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2170:13: error: use of enum �reg_class� without previous declaration extern enum reg_class reg_allocno_class (int); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2170:46: error: invalid type in declaration before �;� token extern enum reg_class reg_allocno_class (int); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2171:42: error: use of enum �reg_class� without previous declaration extern void setup_reg_classes (int, enum reg_class, enum reg_class, ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2171:58: error: use of enum �reg_class� without previous declaration extern void setup_reg_classes (int, enum reg_class, enum reg_class, ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2172:16: error: use of enum �reg_class� without previous declaration enum reg_class); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2288:31: error: �FIRST_PSEUDO_REGISTER� was not declared in this scope rtx x_initial_regno_reg_rtx[FIRST_PSEUDO_REGISTER]; ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2295:31: error: �FIRST_PSEUDO_REGISTER� was not declared in this scope rtx x_static_reg_base_value[FIRST_PSEUDO_REGISTER]; ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2668:55: error: use of enum �reg_class� without previous declaration extern bool invalid_mode_change_p (unsigned int, enum reg_class); ^ /export/home/alp/srcs/oi-userland/components/gcc48/gcc-4.8.4/gcc/rtl.h:2795:38: error: �FIRST_PSEUDO_REGISTER� was not declared in this scope extern tree GTY(()) global_regs_decl[FIRST_PSEUDO_REGISTER]; ^ make[4]: *** [build/genflags.o] Error 1 make[4]: Leaving directory `/export/home/alp/srcs/oi-userland/components/gcc48/build/i86/gcc' make[3]: *** [all-stage1-gcc] Error 2 make[3]: Leaving directory `/export/home/alp/srcs/oi-userland/components/gcc48/build/i86' make[2]: *** [stage1-bubble] Error 2 make[2]: Leaving directory `/export/home/alp/srcs/oi-userland/components/gcc48/build/i86' make[1]: *** [all] Error 2 make[1]: Leaving directory `/export/home/alp/srcs/oi-userland/components/gcc48/build/i86'
[Bug c++/61639] GCC 4.7.4 can't longer compile clang
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61639 --- Comment #1 from Alexander Pyhalov --- LLVM developers confirmed the issue exists on OSX whith gcc 4.7.4 (but not 4.8/4.9).
[Bug c++/61639] New: GCC 4.7.4 can't longer compile clang
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61639 Bug ID: 61639 Summary: GCC 4.7.4 can't longer compile clang Product: gcc Version: 4.7.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alp at rsu dot ru After updating GCC from 4.7.3 to 4.7.4 I can't longer compile Clang 3.3 (or 3.4.1) on OpenIndiana (illumos distribution). While linking clang-check I receive the following error: llvm[5]: Compiling CIndexCodeCompletion.cpp for Release+Asserts build (PIC) llvm[5]: Linking Release+Asserts executable clang-check (without symbols) Undefined first referenced symbol in file vtable for clang::tooling::FrontendActionFactory* clang::tooling::newFrontendActionFactory(clang_check::ClangCheckActionFactory*, clang::tooling::SourceFileCallbacks*)::FrontendActionFactoryAdapter::ConsumerFactoryAdaptor /export/home/alp/srcs/oi-userland/components/clang/build/i86/tools/clang/tools/clang-check/Release+Asserts/ClangCheck.o ld: fatal: symbol referencing errors. No output written to /export/home/alp/srcs/oi-userland/components/clang/build/i86/Release+Asserts/bin/clang-check collect2: error: ld returned 1 exit status make[5]: *** [/export/home/alp/srcs/oi-userland/components/clang/build/i86/Release+Asserts/bin/clang-check] Error 1 make[5]: Leaving directory `/export/home/alp/srcs/oi-userland/components/clang/build/i86/tools/clang/tools/clang-check' make[4]: *** [clang-check/.makeall] Error 2 Everything works with GCC 4.7.3 $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.4/lto-wrapper Target: i386-pc-solaris2.11 Configured with: /export/home/alp/srcs/oi-userland/components/gcc47/gcc-4.7.4/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ F77=/usr/gcc/4.7/bin/gfortran FC=/usr/gcc/4.7/bin/gfortran CFLAGS='-g -O2' CXXFLAGS=' ' FFLAGS=' ' FCFLAGS= LDFLAGS=-m32 PKG_CONFIG_PATH=/usr/lib/pkgconfig --prefix=/usr/gcc/4.7 --mandir=/usr/gcc/4.7/share/man --bindir=/usr/gcc/4.7/bin --libdir=/usr/gcc/4.7/lib --sbindir=/usr/gcc/4.7/sbin --sbindir=/usr/gcc/4.7/bin --libdir=/usr/gcc/4.7/lib --libexecdir=/usr/gcc/4.7/lib --host i386-pc-solaris2.11 --build i386-pc-solaris2.11 --target i386-pc-solaris2.11 --with-boot-ldflags=-R/usr/gcc/4.7/lib --enable-plugins --enable-objc-gc --enable-languages=c,c++,fortran,lto,objc --enable-ld=no --with-build-time-tools=/usr/gnu/i386-pc-solaris2.11/bin --disable-libitm --with-gnu-as --with-as=/usr/bin/gas LDFLAGS=-R/usr/gcc/4.7/lib Thread model: posix gcc version 4.7.4 (GCC)
[Bug libstdc++/58628] Incorrect std::isalpha results with UTF-8 locale on illumos
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58628 --- Comment #1 from Alexander Pyhalov --- Created attachment 30958 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30958&action=edit ctype test
[Bug libstdc++/58628] New: Incorrect std::isalpha results with UTF-8 locale on illumos
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58628 Bug ID: 58628 Summary: Incorrect std::isalpha results with UTF-8 locale on illumos Product: gcc Version: 4.4.7 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: alp at rsu dot ru The following example when compiled with gcc 3.4,4.7 or 4.4 and launched with en_US.UTF-8 locale on illumos says that char with 196 code is alphabetic, however it's not a correct UTF-8 symbol. $ env LANG=en_US.UTF-8 ./test_ctype "�" letter is � (int)letter is 196 std::use_facet:true If this program is compiled with Sun Studio Compiler (CC) results are: $ env LANG=en_US.UTF-8 ./test_ctype_CC "�" letter is � (int)letter is 196 std::use_facet:false if I compile this program on Linux / FreeBSD , results are correct. Related OpenIndiana bug report: https://www.illumos.org/issues/4173 Discussion on illumos-dev: http://comments.gmane.org/gmane.os.illumos.devel/14193
[Bug objc/57428] Objective C exceptions completely broken in gcc 4.7
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57428 Alexander Pyhalov changed: What|Removed |Added CC||alp at rsu dot ru --- Comment #1 from Alexander Pyhalov --- I see the similar crash on OpenIndiana (Solaris) with self-compiled gcc 4.7.3. $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/lto-wrapper Target: i386-pc-solaris2.11 Configured with: /export/home/alp/srcs/oi-userland/components/gcc47/gcc-4.7.3/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ --prefix=/usr/gcc/4.7 --mandir=/usr/gcc/4.7/share/man --bindir=/usr/gcc/4.7/bin --libdir=/usr/gcc/4.7/lib --sbindir=/usr/gcc/4.7/sbin --sbindir=/usr/gcc/4.7/bin --libdir=/usr/gcc/4.7/lib --libexecdir=/usr/gcc/4.7/lib --host i386-pc-solaris2.11 --build i386-pc-solaris2.11 --target i386-pc-solaris2.11 --with-boot-ldflags=-R/usr/gcc/4.7/lib --enable-plugins --enable-objc-gc --enable-languages=c,c++,fortran,lto,objc --enable-ld=no --with-as=/usr/bin/gas --with-gnu-as --with-build-time-tools=/usr/gnu/i386-pc-solaris2.11/bin --disable-libitm LDFLAGS=-R/usr/gcc/4.7/lib Thread model: posix gcc version 4.7.3 (GCC) $ ./test Segmentation Fault (core dumped) $ gdb test core GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-pc-solaris2.11"... (no debugging symbols found) Reading symbols from /usr/lib/libobjc.so.4...done. Loaded symbols for /usr/lib/libobjc.so.4 Reading symbols from /usr/lib/libgcc_s.so.1...done. Loaded symbols for /usr/lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.1...done. Loaded symbols for /lib/libc.so.1 Reading symbols from /lib/ld.so.1...done. Loaded symbols for /lib/ld.so.1 Core was generated by `./test'. Program terminated with signal 11, Segmentation fault. [New process 90521] #0 0xfef5e6ae in __objc_forward (object=0x8061620, sel=0x80617d4, args=0x8047d20) at /export/home/alp/srcs/oi-userland/components/gcc47/gcc-4.7.3/libobjc/sendmsg.c:1127 1127} (gdb) bt #0 0xfef5e6ae in __objc_forward (object=0x8061620, sel=0x80617d4, args=0x8047d20) at /export/home/alp/srcs/oi-userland/components/gcc47/gcc-4.7.3/libobjc/sendmsg.c:1127 #1 0xfef5f2a1 in __objc_word_forward (rcv=0x8061620, op=0x80617d4) at /export/home/alp/srcs/oi-userland/components/gcc47/gcc-4.7.3/libobjc/sendmsg.c:1127 #2 0x08051128 in proc () #3 0x0805115a in foo () #4 0x080511c2 in main ()