[Bug tree-optimization/78394] False positives of maybe-uninitialized with -Og
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78394 --- Comment #17 from Allan Jensen --- Yes, if you can figure out exactly what optimization passes it needs, then we could disable the warning when those passes are disabled.
[Bug c++/104078] New: Some type determination weirdness
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104078 Bug ID: 104078 Summary: Some type determination weirdness Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: linux at carewolf dot com Target Milestone: --- In an attempt to compile Qt and specifically Qt WebEngine with latest gcc 12 from git today, I git the follow weird error, from Skia inside Chromium inside QtWebengine: ./../../../../../qtwebengine/src/3rdparty/chromium/third_party/skia/src/gpu/GrRefCnt.h:173:73: error: ‘‘dependent_operator_type’ not supported by dump_type’ is not a valid type for a template non-type parameter 173 | gr_sp; | ^ ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/skia/src/gpu/GrRefCnt.h:173:73: error: ‘‘dependent_operator_type’ not supported by dump_type’ is not a valid type for a template non-type parameter The error triggers in C++17 mode only, and the file compiles fine in C++20 mode (and in c++17 mode on older gccs, and clang and msvc, etc).
[Bug c++/104084] New: [12 regression] Internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104084 Bug ID: 104084 Summary: [12 regression] Internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: linux at carewolf dot com Target Milestone: --- Another error encounted while compiling Qt with gcc 12. This time in libgav1 (used by Chromium). ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/utils/dynamic_buffer.h:40:19: internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1, at cp/init.c:3792 40 | buffer_.reset(new (std::nothrow) T[size]); | ^~ 0x8a12eb tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.c:8702 0x6f06b9 tree_operand_check_code(tree_node*, tree_code, int, char const*, int, char const*) ../../gcc/tree.h:3950 0x6f06b9 build_new_1 ../../gcc/cp/init.c:3792 0xa5c8f1 build_new(unsigned int, vec**, tree_node*, tree_node*, vec**, int, int) ../../gcc/cp/init.c:4002 0xb4a6ad tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:20387 0xb750ca tsubst_copy_and_build_call_args ../../gcc/cp/pt.c:19761 0xb48c88 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:20508 0xb5d33f tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:19316 0xb5ed6b tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18329 0xb5e484 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18301 0xb5e4ec tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18658 0xb5c048 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/cp/pt.c:18287 0xb5c048 instantiate_body ../../gcc/cp/pt.c:26239 0xb5d080 instantiate_decl(tree_node*, bool, bool) ../../gcc/cp/pt.c:26532 0xb813d3 instantiate_pending_templates(int) ../../gcc/cp/pt.c:26611 0xa3ba28 c_parse_final_cleanups() ../../gcc/cp/decl2.c:5097 Disabling optimizations or using different C++ standards, or fuzzing other compiler flags didn't seem to help. Let me know if you need the intermediate code.
[Bug c++/104084] [12 regression] Internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104084 --- Comment #2 from Allan Jensen --- Removing the (std::nothrow), and declaring the untagged new operator (instead of declaring them deleted), seems to work around the issue.
[Bug c++/104084] [12 regression] Internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104084 --- Comment #3 from Allan Jensen --- -v output: Using built-in specs. COLLECT_GCC=/opt/gcc/bin/g++-12 Target: x86_64-pc-linux-gnu Configured with: ../configure --enable-languages=c,c++ --prefix=/opt/gcc --program-suffix=-12 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220117 (experimental) (GCC) COLLECT_GCC_OPTIONS='-MMD' '-MF' 'obj/third_party/libgav1/libgav1/loop_restoration_info.o.d' '-D' 'USE_UDEV' '-D' 'USE_AURA=1' '-D' 'USE_NSS_CERTS=1' '-D' 'USE_OZONE=1' '-D' 'OFFICIAL_BUILD' '-D' 'TOOLKIT_QT' '-D' '_FILE_OFFSET_BITS=64' '-D' '_LARGEFILE_SOURCE' '-D' '_LARGEFILE64_SOURCE' '-D' 'NO_UNWIND_TABLES' '-D' 'NDEBUG' '-D' 'NVALGRIND' '-D' 'DYNAMIC_ANNOTATIONS_ENABLED=0' '-D' 'LIBGAV1_MAX_BITDEPTH=10' '-D' 'LIBGAV1_THREADPOOL_USE_STD_MUTEX' '-D' 'LIBGAV1_ENABLE_LOGGING=0' '-D' 'LIBGAV1_PUBLIC=' '-I' 'gen' '-I' '../../../../../../qtwebengine/src/3rdparty/chromium' '-I' '../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src' '-I' '../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src' '-fno-ident' '-fno-strict-aliasing' '--param=ssp-buffer-size=4' '-fstack-protector' '-Wno-unknown-pragmas' '-Wno-parentheses' '-Wno-sign-compare' '-Wstringop-overflow=0' '-Wno-stringop-overread' '-Wno-psabi' '-Wno-multichar' '-Wno-format-zero-length' '-fno-unwind-tables' '-fno-asynchronous-unwind-tables' '-fPIC' '-pipe' '-pthread' '-m64' '-O2' '-fno-omit-frame-pointer' '-g1' '-fvisibility=hidden' '-Wno-unused-local-typedefs' '-Wno-maybe-uninitialized' '-Wno-deprecated-declarations' '-fno-delete-null-pointer-checks' '-Wno-comment' '-Wno-packed-not-aligned' '-Wno-dangling-else' '-Wno-missing-field-initializers' '-Wno-unused-parameter' '-O2' '-fdata-sections' '-ffunction-sections' '-std=gnu++14' '-fvisibility-inlines-hidden' '-Wno-narrowing' '-Wno-attributes' '-Wno-class-memaccess' '-Wno-subobject-linkage' '-Wno-invalid-offsetof' '-Wno-return-type' '-Wno-deprecated-copy' '-c' '-o' 'obj/third_party/libgav1/libgav1/loop_restoration_info.o' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'obj/third_party/libgav1/libgav1/' /opt/gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.1/cc1plus -quiet -v -I gen -I ../../../../../../qtwebengine/src/3rdparty/chromium -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src -imultiarch x86_64-linux-gnu -MMD obj/third_party/libgav1/libgav1/loop_restoration_info.d -MF obj/third_party/libgav1/libgav1/loop_restoration_info.o.d -MQ obj/third_party/libgav1/libgav1/loop_restoration_info.o -D_GNU_SOURCE -D_REENTRANT -D USE_UDEV -D USE_AURA=1 -D USE_NSS_CERTS=1 -D USE_OZONE=1 -D OFFICIAL_BUILD -D TOOLKIT_QT -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D _LARGEFILE64_SOURCE -D NO_UNWIND_TABLES -D NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -D LIBGAV1_MAX_BITDEPTH=10 -D LIBGAV1_THREADPOOL_USE_STD_MUTEX -D LIBGAV1_ENABLE_LOGGING=0 -D LIBGAV1_PUBLIC= ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src/loop_restoration_info.cc -quiet -dumpdir obj/third_party/libgav1/libgav1/ -dumpbase loop_restoration_info.cc -dumpbase-ext .cc -m64 -mtune=generic -march=x86-64 -g1 -O2 -O2 -Wno-unknown-pragmas -Wno-parentheses -Wno-sign-compare -Wstringop-overflow=0 -Wno-stringop-overread -Wno-psabi -Wno-multichar -Wno-format-zero-length -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comment -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -Wno-narrowing -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -std=gnu++14 -version -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -fno-omit-frame-pointer -fvisibility=hidden -fno-delete-null-pointer-checks -fdata-sections -ffunction-sections -fvisibility-inlines-hidden --param=ssp-buffer-size=4 -o - | as -v -I gen -I ../../../../../../qtwebengine/src/3rdparty/chromium -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src -I ../../../../../../qtwebengine/src/3rdparty/chromium/third_party/libgav1/src/src --gdwarf-5 --64 -o obj/third_party/libgav1/libgav1/loop_restoration_info.o GNU assembler version 2.36.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.36.1 GNU C++14 (GCC) version 12.0.1 20220117 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 12.0.1 20220117 (experimental), GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/opt/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../x86_64-pc-linux-gnu/include" #includ
[Bug c++/104084] [12 regression] Internal compiler error: tree check: expected target_expr, have compound_expr in build_new_1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104084 --- Comment #4 from Allan Jensen --- Created attachment 52217 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52217&action=edit -E output
[Bug target/31667] Integer extensions vectorization could be improved
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31667 --- Comment #6 from Allan Jensen --- (In reply to Andrew Pinski from comment #5) > We produce this now: > > movdqa x(%rip), %xmm1 > pxor%xmm0, %xmm0 > movdqa %xmm1, %xmm2 > punpckhbw %xmm0, %xmm1 > movaps %xmm1, y+16(%rip) > movdqa x+16(%rip), %xmm1 > punpcklbw %xmm0, %xmm2 > movaps %xmm2, y(%rip) > movdqa %xmm1, %xmm2 > punpckhbw %xmm0, %xmm1 > movaps %xmm1, y+48(%rip) > movdqa x+32(%rip), %xmm1 > punpcklbw %xmm0, %xmm2 > movaps %xmm2, y+32(%rip) > movdqa %xmm1, %xmm2 > punpckhbw %xmm0, %xmm1 > movaps %xmm1, y+80(%rip) > movdqa x+48(%rip), %xmm1 > punpcklbw %xmm0, %xmm2 > movaps %xmm2, y+64(%rip) > movdqa %xmm1, %xmm2 > punpckhbw %xmm0, %xmm1 > punpcklbw %xmm0, %xmm2 > movaps %xmm1, y+112(%rip) > movaps %xmm2, y+96(%rip) > > And even ICC produce a similar thing except scheduled differently. I hope that is because you forgot -msse4.1?