[Bug other/81712] New: gcc does not compile when using glib 2.26 (everything works fine with 2.25)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712 Bug ID: 81712 Summary: gcc does not compile when using glib 2.26 (everything works fine with 2.25) Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: igor at chub dot in Target Milestone: --- The compilation process stops with the following error message: ./md-unwind-support.h: In function 'x86_64_fallback_frame_state': ./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type 'struct ucontext' sc = (struct sigcontext *) (void *) &uc_->uc_mcontext; ^~ make[3]: Leaving directory `/disk2/build/gcc-7.1.0-build/x86_64-pc-linux-gnu/libgcc' make[3]: *** [unwind-dw2.o] Error 1 make[2]: Leaving directory `/disk2/build/gcc-7.1.0-build' make[2]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/disk2/build/gcc-7.1.0-build' make[1]: *** [all] Error 2
[Bug other/81712] gcc does not compile when using glib 2.26 (everything works fine with 2.25)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712 --- Comment #2 from Igor Chubin --- Perfect. I'll try to build gcc-7.2-RC-20170802
[Bug other/81712] gcc does not compile when using glib 2.26 (everything works fine with 2.25)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712 --- Comment #3 from Igor Chubin --- Perfect. I'll try to build gcc-7.2-RC-20170802
[Bug c++/77952] New: c++11 and gcc: internal compiler error: in convert_move
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77952 Bug ID: 77952 Summary: c++11 and gcc: internal compiler error: in convert_move Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: igor at chub dot in Target Milestone: --- I have the following code: typedef int __v8si __attribute__ ((__vector_size__ (32))); class T { public: __v8si v; __attribute__((target("avx2"))) T(int p ):v(__extension__ __v8si{p,p,p,p,p,p,p,p}){} __attribute__((target("avx2"))) T(__v8si p):v(p){} __attribute__((target("avx2"))) T operator * ( T b ) const { return __builtin_ia32_pmulld256( v , b.v ) ; } }; void h(int *); __attribute__((target("default"))) void h(int *) { } __attribute__((target("avx2"))) void h(int *) { const T a(1); const T b(2); const T c (a * b); } int main() { return 0; } If I try to compile it, I have the following error: $ gcc test.cpp -std=c++11 test.cpp: In member function 'T T::operator*(T) const': test.cpp:17:48: internal compiler error: in convert_move, at expr.c:315 return __builtin_ia32_pmulld256( v , b.v ) ; ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. I have tried to compile it with various gcc versions: 4.9.2, 5.3 and several other versions. Have you any ideas why it happens, and how could I solve the problem? gcc test.cpp -std=c++11 -mavx2 works. gcc test.cpp -std=c++11 -O1 works. but I want to compile the code with -O0