[Bug tree-optimization/104106] Fail to remove stores to VLA inside loops

2022-01-19 Thread denis.campredon at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104106 --- Comment #2 from denis.campredon at gmail dot com --- The missed optimisations are also present if the arrays are allocated with malloc or new.

[Bug c++/104111] New: Concept evaluation depends on context where it was first checked

2022-01-19 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104111 Bug ID: 104111 Summary: Concept evaluation depends on context where it was first checked Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/104112] New: ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512

2022-01-19 Thread gilles.gouaillardet at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 Bug ID: 104112 Summary: ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Pr

[Bug tree-optimization/102756] [12 Regression] Complete unrolling is too senative to PRE; c-c++-common/torture/vector-compare-2.c

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102756 Richard Biener changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org --- Commen

[Bug c++/104111] Concept evaluation depends on context where it was first checked

2022-01-19 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104111 --- Comment #1 from Fedor Chelnokov --- Sorry, related discussion: https://stackoverflow.com/q/53263299/7325599

[Bug target/104112] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512

2022-01-19 Thread gilles.gouaillardet at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #1 from Gilles Gouaillardet --- Created attachment 52227 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52227&action=edit a slightly rewritten reproducer that passes compilation

[Bug target/104005] [12 Regression] Regression on aarch64+sve with -O2 -fPIC since r12-5204

2022-01-19 Thread gilles.gouaillardet at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104005 --- Comment #7 from Gilles Gouaillardet --- Thanks Richard for the quick fix! Unfortunately, I just found an other (and much older) issue (ICE, only at -Ofast) I reported at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112

[Bug c++/89074] valid pointer equality constexpr comparison rejected

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89074 --- Comment #17 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:b834435c8fa4cb9424787fe3044a49fef7992de8 commit r12-6726-gb834435c8fa4cb9424787fe3044a49fef7992de8 Author: Jakub Jelinek Date: W

[Bug c++/104108] [10/11/12 Regression] [c++17+] template alias inside template with static field of template class rejected since r10-6329-g423284053ec51832

2022-01-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104108 Martin Liška changed: What|Removed |Added Last reconfirmed||2022-01-19 Status|UNCONFIRME

[Bug middle-end/104103] [12 regression] many excess errors from g++.dg/asan/asan_test.C after r12-6606

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104103 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:53836c887a05db23ff3b9fc06f64e0ba78810ece commit r12-6727-g53836c887a05db23ff3b9fc06f64e0ba78810ece Author: Jakub Jelinek Date: W

[Bug middle-end/104103] [12 regression] many excess errors from g++.dg/asan/asan_test.C after r12-6606

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104103 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/103771] [12 Regression] Missed vectorization under -mavx512f -mavx512vl after r12-5489

2022-01-19 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771 --- Comment #29 from Hongtao.liu --- (In reply to Richard Biener from comment #28) > (In reply to Hongtao.liu from comment #25) > > in fold_unary_loc > > ---cut from fold-const.cc- > > 9276 else if (TREE_CODE (arg0) == COND_EXPR) > >

[Bug c++/104111] Concept evaluation depends on context where it was first checked

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104111 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/102750] [12 Regression] 433.milc regressed by 10% on AMD zen2 at -Ofast -march=native -flto after r12-3893-g6390c5047adb75

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102750 Richard Biener changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org --- Commen

[Bug target/103771] [12 Regression] Missed vectorization under -mavx512f -mavx512vl after r12-5489

2022-01-19 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771 --- Comment #30 from rguenther at suse dot de --- On Wed, 19 Jan 2022, crazylht at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103771 > > --- Comment #29 from Hongtao.liu --- > (In reply to Richard Biener from comment

[Bug target/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org,

[Bug tree-optimization/102744] [12 regression] -O2 vectorization causes Wzero-length-array-bounds-2.c to fail on arc-elf

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102744 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/102706] [12 regression] -O2 vectorization causes regression in Warray-bounds-48.c on many targets

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102706 Bug 102706 depends on bug 102744, which changed state. Bug 102744 Summary: [12 regression] -O2 vectorization causes Wzero-length-array-bounds-2.c to fail on arc-elf https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102744 What|Removed

[Bug target/102737] [9/10/11/12 Regression] extra mov with int->double conversion and addition (incoming arguments and return)

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102737 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/102706] [12 regression] -O2 vectorization causes regression in Warray-bounds-48.c on many targets

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102706 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 102706, which changed state. Bug 102706 Summary: [12 regression] -O2 vectorization causes regression in Warray-bounds-48.c on many targets https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102706 What|Removed

[Bug sanitizer/101476] AddressSanitizer check failed, points out a (potentially) non-existing stack error

2022-01-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101476 Martin Liška changed: What|Removed |Added Status|WAITING |NEW --- Comment #8 from Martin Liška --

[Bug tree-optimization/102705] [12 Regression] Dead Code Elimination Regression at -O3 since r12-2637-g145bc41dae7c7bfa093d61e77346f98e6a595a0e

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102705 --- Comment #2 from Richard Biener --- so it's _10 == _10 ^ 1 vs. (short) _2 == (short)(((char) _2) ^ 1) likely simplified using logical_inverted_value which works fine for the first but not the second form. We're now doing more simplification

[Bug target/104110] AArch64 unnecessary use of call-preserved register

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104110 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/86892] RTL CSE commoning trivial constants across call and/or too early

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86892 Andrew Pinski changed: What|Removed |Added CC||nate at thatsmathematics dot com --- Co

[Bug tree-optimization/102087] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67

2022-01-19 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102087 --- Comment #22 from Jiu Fu Guo --- (In reply to Martin Liška from comment #21) > > _12 = Gif_ClipImage_gfi_1.0_1 + -1; > > during GIMPLE pass: aprefetch > > bug760.c:3:1: internal compiler error: verify_gimple failed > > 0xde2f5a verify_gimple_

[Bug tree-optimization/104002] ICE ‘verify_gimple’ failed since r12-1128-gef8176e0fac935c0

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104002 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug tree-optimization/103990] [12 Regression] 541.leela_r slower by 4.5-6% with PGO+LTO -Ofast -march=native in the first week of January 2022

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103990 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Summary|

[Bug middle-end/102860] [12 regression] libgomp.fortran/simd2.f90 ICEs after r12-4526

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102860 Jakub Jelinek changed: What|Removed |Added Attachment #52218|0 |1 is obsolete|

[Bug middle-end/102860] [12 regression] libgomp.fortran/simd2.f90 ICEs after r12-4526

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102860 --- Comment #11 from Jakub Jelinek --- Created attachment 52229 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52229&action=edit gcc12-pr102860-2.patch And here is IMHO a better one that for VECTOR_TYPE just returns unknown_optab so that

[Bug fortran/104096] ICE with parameterized derived type (PDT)

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104096 Richard Biener changed: What|Removed |Added Last reconfirmed||2022-01-19 Ever confirmed|0

[Bug analyzer/104029] [12 Regression] ICE with -fanalyzer-checker=taint since r12-5230-gb9365b93212041f1

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104029 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|--

[Bug libstdc++/104098] [11 Regression] bits/stl_iterator.h fails to compile for __cplusplus > 201703L and with __cpp_concepts undefined

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104098 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug fortran/104100] Passing an allocated array to a C bind function alters the bounds

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104100 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/104061] ICE: 'verify_gimple' failed (error: invalid operands in binary operation)

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104061 --- Comment #2 from Andrew Pinski --- I suspect what ever fix that comes up for PR 103836 will also fix this one. -g is needed in both cases and the "# DEBUG BEGIN_STMT" happens in both cases too.

[Bug middle-end/104061] ICE: 'verify_gimple' failed (error: invalid operands in binary operation)

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104061 --- Comment #3 from Andrew Pinski --- I was right and wrong, in the sense it might fix the testcase in comment #0 but it won't fix: int arr_0; void foo (void) { #pragma acc kernels { int k; #pragma acc loop for (k = 0; k < 2; k++)

[Bug c++/104105] Unused nothrow new not optimized

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104105 Richard Biener changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c++/104113] New: DR 625 forbids "auto" being used in template argument and parser fails to issue correct error message for it

2022-01-19 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Bug ID: 104113 Summary: DR 625 forbids "auto" being used in template argument and parser fails to issue correct error message for it Product: gcc Version: 12.0 Status: U

[Bug modula2/104065] [12 Regression] trunk 20220117 fails to build modula2

2022-01-19 Thread doko at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104065 Matthias Klose changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug tree-optimization/104106] Fail to remove stores to VLA inside loops

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104106 --- Comment #3 from Richard Biener --- I think DSE doesn't quite understand free() as must-def, likewise for __builtin_stack_restore though that is _much_ more difficult to tie to a specific alloca allocation. It would be nice if the gimplifier

[Bug rtl-optimization/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57

2022-01-19 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104054 --- Comment #7 from Uroš Bizjak --- For some reason the pass does not detect usage of Register si in (insn 55): (debug_insn 55 54 56 6 (var_location:TI b (reg/v:TI 4 si [orig:86 b ] [86])) -1 (nil)) Register ax (1): Register dx (1): Regis

[Bug c++/104107] [9/10/11/12 Regression] parsing crashes on class template instantiation

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104107 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug c++/104108] [10/11/12 Regression] [c++17+] template alias inside template with static field of template class rejected since r10-6329-g423284053ec51832

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104108 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 Richard Biener changed: What|Removed |Added Priority|P3 |P1 Assignee|unassigned at gc

[Bug c++/104113] DR 625 forbids "auto" being used in template argument and parser fails to issue correct error message for it

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 --- Comment #1 from Andrew Pinski --- Auto has nothing to do with the problematic error message, take: template struct A{}; A x = A(); GCC still produces: :4:13: error: cannot convert 'A' to 'int' in initialization 4 | A x = A(); |

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|DR 625 forbids "

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #4 from Richard Biener --- So the issue is we hit vect_create_partial_epilog (tree vec_def, tree vectype, code_helper code, gimple_seq *seq) { unsigned nunits = TYPE_VECTOR_SUBPARTS (TREE_TYPE (vec_def)

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #5 from Richard Biener --- Oh, the V8DFmode is actually VNx2DF but I guess the constant size will fool us to think it's not a variable size mode.

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added Keywords||FIXME --- Comment #3 from Andrew Pinski

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #6 from Richard Biener --- The following adds such verification diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 0fe3529b2d1..6ce33f3cef0 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -4979,9 +497

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #7 from Richard Biener --- Created attachment 52230 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52230&action=edit patch I am testing I'm testing this patch on x86_64-linux, aarch64 testing appreciated.

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #8 from Richard Biener --- Oh, and we're also not verifying /* The target has to make sure we support lowpart/highpart extraction, either via direct vector extract or through an integer mode punning. */ and

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #9 from rsandifo at gcc dot gnu.org --- Thanks for the patch. I'm currently testing it on SVE. (In reply to Richard Biener from comment #8) > Without -msve-vector-bits=512 we simply get variable length vector code. > There doesn

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #10 from Richard Biener --- On i?86 we could eventually hit the same issue with unsigned short foo (unsigned short *a, int n) { unsigned short sum = 0; for (int i = 0; i < n; ++i) sum += a[i]; return sum; } since V8HI is

[Bug ada/103538] [12 Regression] trunk 20211203 fails to build gnat on x86_64-linux-gnux32

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103538 --- Comment #5 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:9d6c63ba490ec92245f04b5cbafc56abd28e8d22 commit r12-6732-g9d6c63ba490ec92245f04b5cbafc56abd28e8d22 Author: H.J. Lu Date: Tue Jan 18 08

[Bug ada/103538] [12 Regression] trunk 20211203 fails to build gnat on x86_64-linux-gnux32

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103538 --- Comment #6 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:2cef99175af1ad95283d4b35bced73c3a510f6d6 commit r12-6733-g2cef99175af1ad95283d4b35bced73c3a510f6d6 Author: H.J. Lu Date: Tue Jan 18 15

[Bug debug/103874] [11/12 Regression] ICE in internal_error on riscv64 and -gsplit-dwarf

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103874 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 Richard Biener changed: What|Removed |Added Attachment #52230|0 |1 is obsolete|

[Bug tree-optimization/103721] [12 regression] wrong code generated for loop with conditional since r12-4790-g4b3a325f07acebf4

2022-01-19 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103721 --- Comment #6 from Aldy Hernandez --- Please bear with me, as I'm coming up to speed, and my head hurts from all these equivalences. The problem seems to be what Jeff mentioned in comment #4. We think _5 == _6, which makes the conditional in

[Bug tree-optimization/104114] New: vect.exp fails when run with -Wvector-operation-performance due to bogus diagnostics

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104114 Bug ID: 104114 Summary: vect.exp fails when run with -Wvector-operation-performance due to bogus diagnostics Product: gcc Version: 12.0 Status: UNCON

[Bug rtl-optimization/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57

2022-01-19 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104054 --- Comment #8 from Uroš Bizjak --- Without debug instructions, the compiler is able to rename insns to: 65: di:DI=si:DI 66: dx:DI=r11:DI 74: cx:QI=0x1 REG_EQUAL 0x1 41: L41: 42: NOTE_INSN_BASIC_BLOCK 6 43: NOTE_INSN_DEL

[Bug tree-optimization/104114] vect.exp fails when run with -Wvector-operation-performance due to bogus diagnostics

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104114 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc

[Bug c/104115] New: Does not understand that inequality is transitive

2022-01-19 Thread thvdveld at vub dot be via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104115 Bug ID: 104115 Summary: Does not understand that inequality is transitive Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug c++/99571] ICE for NTTP with pointer to a field inside anonymous union/struct

2022-01-19 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99571 --- Comment #3 from Johel Ernesto Guerrero Peña --- > Here is another testcase which shows a similar issue: Here's its link: https://godbolt.org/z/fMbYMMYKz. You posted the Comment 0's. > Note clang has a bogus warning for the above about the a

[Bug c/104115] Does not understand that inequality is transitive

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104115 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c/104115] Does not understand that inequality is transitive

2022-01-19 Thread thvdveld at vub dot be via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104115 --- Comment #2 from Thibaut Vandervelden --- Sorry, my bad.

[Bug c/104115] Does not understand that inequality is transitive

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104115 Jakub Jelinek changed: What|Removed |Added CC||aldyh at gcc dot gnu.org,

[Bug c/104115] Does not understand that inequality is transitive

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104115 --- Comment #4 from Jakub Jelinek --- Note, gcc.dg/tree-ssa/evrp-trans.c seems to cover it for int, but perhaps it would be useful to have a variant of the testcase with unsigned types instead of signed too.

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 --- Comment #12 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:5b6788ae5a365aecd6776f563e44022acb93a57a commit r12-6737-g5b6788ae5a365aecd6776f563e44022acb93a57a Author: Richard Biener Date:

[Bug tree-optimization/104112] [12 Regression] ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 since r12-2292-g1dd3f21095858fbfd3e28a149578d5fb67e75f95

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104112 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug sanitizer/101476] AddressSanitizer check failed, points out a (potentially) non-existing stack error

2022-01-19 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101476 --- Comment #9 from Stas Sergeev --- (In reply to Martin Liška from comment #8) > Please report the problem to upstream libsanitizer project: > https://github.com/llvm/llvm-project/issues I already did: https://github.com/google/sanitizers/issu

[Bug c/104115] Does not understand that inequality is transitive

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104115 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:f35bb467a01db988d5fe1637db5bff4b4f9e7086 commit r12-6738-gf35bb467a01db988d5fe1637db5bff4b4f9e7086 Author: Jakub Jelinek Date: W

[Bug middle-end/102860] [12 regression] libgomp.fortran/simd2.f90 ICEs after r12-4526

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102860 --- Comment #12 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ffc7f200adbdf47f14b3594d9b21855c19cf797a commit r12-6739-gffc7f200adbdf47f14b3594d9b21855c19cf797a Author: Jakub Jelinek Date:

[Bug middle-end/102860] [12 regression] libgomp.fortran/simd2.f90 ICEs after r12-4526

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102860 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug other/102938] [12 regression] ICE in fortran test cases after r12-4240

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102938 Bug 102938 depends on bug 102860, which changed state. Bug 102860 Summary: [12 regression] libgomp.fortran/simd2.f90 ICEs after r12-4526 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102860 What|Removed |Added

[Bug middle-end/102700] [12 Regression] wrong location in -Wuninitialized after -O2 vectorization

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102700 Richard Biener changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 102700, which changed state. Bug 102700 Summary: [12 Regression] wrong location in -Wuninitialized after -O2 vectorization https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102700 What|Removed

[Bug tree-optimization/104116] New: Optimize {FLOOR,CEIL,ROUND}_{DIV,MOD}_EXPR in tree-vect-patterns.cc

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104116 Bug ID: 104116 Summary: Optimize {FLOOR,CEIL,ROUND}_{DIV,MOD}_EXPR in tree-vect-patterns.cc Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-val

[Bug tree-optimization/102650] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102650 --- Comment #4 from Richard Biener --- If it is undefined it should be unreachable, not switch to a random static branch ;) (defeating uninit diagnostics, of course)

[Bug sanitizer/101476] AddressSanitizer check failed, points out a (potentially) non-existing stack error

2022-01-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101476 --- Comment #10 from Martin Liška --- (In reply to Stas Sergeev from comment #9) > (In reply to Martin Liška from comment #8) > > Please report the problem to upstream libsanitizer project: > > https://github.com/llvm/llvm-project/issues > > I

[Bug regression/103997] [12 Regression] gcc.target/i386/pr88531-??.c scan-assembler-times FAILs

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103997 --- Comment #8 from CVS Commits --- The master branch has been updated by Andre Simoes Dias Vieira : https://gcc.gnu.org/g:f4ca0a53be18dfc7162fd5dcc1e73c4203805e14 commit r12-6740-gf4ca0a53be18dfc7162fd5dcc1e73c4203805e14 Author: Andre Vieira

[Bug tree-optimization/102650] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2022-01-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102650 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment

[Bug c++/104111] Concept evaluation depends on context where it was first checked

2022-01-19 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104111 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED Target Milestone|---

[Bug target/104117] New: gcc10 fails to build icu for ppc64 on 10.5.8 (direct access to a floating-point constant)

2022-01-19 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104117 Bug ID: 104117 Summary: gcc10 fails to build icu for ppc64 on 10.5.8 (direct access to a floating-point constant) Product: gcc Version: 10.3.0 Status: UNCONFIRMED

[Bug ada/103538] [12 Regression] trunk 20211203 fails to build gnat on x86_64-linux-gnux32

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103538 --- Comment #7 from CVS Commits --- The releases/gcc-11 branch has been updated by H.J. Lu : https://gcc.gnu.org/g:892c58d93110e1b30d7ebe93e704f318d16c34a3 commit r11-9480-g892c58d93110e1b30d7ebe93e704f318d16c34a3 Author: H.J. Lu Date: Tue

[Bug ada/103538] [12 Regression] trunk 20211203 fails to build gnat on x86_64-linux-gnux32

2022-01-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103538 --- Comment #8 from CVS Commits --- The releases/gcc-11 branch has been updated by H.J. Lu : https://gcc.gnu.org/g:1d3f5f5e52a123d7da96b659064fc2a4b8de5e64 commit r11-9481-g1d3f5f5e52a123d7da96b659064fc2a4b8de5e64 Author: H.J. Lu Date: Tue

[Bug target/104118] New: gcc11 fails to build R for ppc64 on 10.5.8

2022-01-19 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104118 Bug ID: 104118 Summary: gcc11 fails to build R for ppc64 on 10.5.8 Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tar

[Bug middle-end/102700] [12 Regression] wrong location in -Wuninitialized after -O2 vectorization

2022-01-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102700 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #7

[Bug tree-optimization/104119] New: Wrong -Werror=format-overflow= since r12-5014-g6b8b959675a3e14c

2022-01-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104119 Bug ID: 104119 Summary: Wrong -Werror=format-overflow= since r12-5014-g6b8b959675a3e14c Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/104119] Wrong -Werror=format-overflow= since r12-5014-g6b8b959675a3e14c

2022-01-19 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104119 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/104108] [10/11/12 Regression] [c++17+] template alias inside template with static field of template class rejected since r10-6329-g423284053ec51832

2022-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104108 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/104117] gcc10 fails to build icu for ppc64 on 10.5.8 (direct access to a floating-point constant)

2022-01-19 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104117 Iain Sandoe changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/104118] gcc11 fails to build R for ppc64 on 10.5.8

2022-01-19 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104118 Iain Sandoe changed: What|Removed |Added Build|powerpc-apple-darwin9 | Ever confirmed|0

[Bug target/104117] gcc10 fails to build icu for ppc64 on 10.5.8 (direct access to a floating-point constant)

2022-01-19 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104117 --- Comment #2 from Iain Sandoe --- reduced testcase: typedef int int32_t; extern "C" { extern double floor( double ); extern double fabs( double ); int atoi(const char *); int sprintf(char * , const char * , ...) ; } namespace icu_67 { clas

[Bug tree-optimization/102650] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2022-01-19 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102650 --- Comment #6 from Andrew Macleod --- (In reply to Richard Biener from comment #4) > If it is undefined it should be unreachable, not switch to a random static > branch ;) (defeating uninit diagnostics, of course) Well, its not unreachable..

[Bug testsuite/104083] Ada testsuite does not respect RUNTESTFLAGS

2022-01-19 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104083 --- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Eric Botcazou --- > The ACATS testsuite is not based on DejaGNU so it cannot. IIRC Rainer had a > patch to do the conversion at some point but it was heavyweight.

[Bug testsuite/104083] Ada testsuite does not respect RUNTESTFLAGS

2022-01-19 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104083 --- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #2 from Richard Biener --- > Once could of course argue that eventually the acats/run_all.sh can somehow > pick up options from the RUNTESTFLAGS argument (it might need to

[Bug c/104120] New: slow compilation with only "-g3 -O1"; other opt levels are fine

2022-01-19 Thread cnsun at uwaterloo dot ca via Gcc-bugs
+,lto --enable-checking-yes --enable-multiarch --prefix=/scratch/software/gcc-trunk --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.1 20220119 (experimental) [master -g1ead972ce] (GCC)

[Bug target/104117] gcc10 fails to build icu for ppc64 on 10.5.8 (direct access to a floating-point constant)

2022-01-19 Thread vital.had at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104117 --- Comment #3 from Sergey Fedorov --- (In reply to Iain Sandoe from comment #1) > most likely present on earlier branches. Indeed, gcc7.5 likewise failed to build icu for ppc64.

  1   2   3   >