[Bug fortran/83078] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1110

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83078 --- Comment #3 from Andrew Pinski --- The trunk gives: /app/example.f90:7:20: 7 |type(t) :: x = t([1, 2]) |1 Error: Bad array spec of component 'a' referenced in structure constructor at (1)

[Bug fortran/83078] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1110

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83078 Andrew Pinski changed: What|Removed |Added Known to work||10.3.1, 11.2.1 Status|NEW

[Bug libstdc++/103831] New: views::lazy_split accepts Pattern as span when V is input_range

2021-12-26 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103831 Bug ID: 103831 Summary: views::lazy_split accepts Pattern as span when V is input_range Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c/100792] ICE: gimplify_expr, at gimplify.c:14879

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100792 Andrew Pinski changed: What|Removed |Added Keywords||ice-checking Known to fail|

[Bug c/100792] ICE: gimplify_expr, at gimplify.c:14879

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100792 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/70894] ICE when using neon intrinsic with mabi=apcs-gnu

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70894 --- Comment #2 from Andrew Pinski --- This specific builtin was removed in GCC 12 by r12-2848. But here is a testcase which still ICEs on the trunk: typedef __simd64_int8_t int8x8_t; int8x8_t g (signed char __a, int8x8_t __b, const int __c) {

[Bug rtl-optimization/103830] New: volatile optimized away

2021-12-26 Thread bernd.edlinger at hotmail dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103830 Bug ID: 103830 Summary: volatile optimized away Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization

[Bug rtl-optimization/103830] volatile optimized away

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103830 --- Comment #1 from Andrew Pinski --- > I think it is rather common to have something at address zero, > for instance interrupt tables or device registers, > and therefore it's not OK to optimize those volatile accesses away.

[Bug c++/39385] ICE in gen_type_die_with_usage

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39385 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c/100501] [9/10/11/12 Regression] ICE with inline-asm and void statement expression

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100501 Andrew Pinski changed: What|Removed |Added Known to work||4.1.2 Summary|ICE with

[Bug libfortran/98076] Increase speed of integer I/O

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98076 --- Comment #9 from Francois-Xavier Coudert --- After my patch, measurements seem to indicate the output of integers is mostly bound the library overhead. Inspection of the various itoa/btoa/otoa/xtoa functions seems to show they're reasonably

[Bug c++/103832] New: vectorized code segfaults due to misaligned access

2021-12-26 Thread joakim.rosqvist at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103832 Bug ID: 103832 Summary: vectorized code segfaults due to misaligned access Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/103832] vectorized code segfaults due to misaligned access

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103832 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/47990] Missed promotion of double precision constants to single precision for -funsafe-math-optimizations

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47990 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/103785] [12 Regression] Ada bootstrap ICEs on i?86

2021-12-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103785 --- Comment #12 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:d87483015d476a95f521f0c9dcf6988ca889063b commit r12-6118-gd87483015d476a95f521f0c9dcf6988ca889063b Author: H.J. Lu Date: Fri Dec 24

[Bug c++/103653] GCC rejected int x = 0; auto(x); in C++23

2021-12-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103653 --- Comment #4 from Jonathan Wakely --- Yes this changed in C++23 so auto(X) creates an rvalue of the decayed type of x.

[Bug ipa/103830] [12 Regression] null pointer access optimized away by removing function call at -Og

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103830 Andrew Pinski changed: What|Removed |Added Component|rtl-optimization|ipa Last reconfirmed|

[Bug c++/103833] New: Overloaded static member function cannot be resolved unlike overloaded global function

2021-12-26 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103833 Bug ID: 103833 Summary: Overloaded static member function cannot be resolved unlike overloaded global function Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/103833] Overloaded static member function cannot be resolved unlike overloaded global function

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103833 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-12-26

[Bug d/103728] Allow to run unittests before main()

2021-12-26 Thread pierrick.bouvier at posteo dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103728 Pierrick Bouvier changed: What|Removed |Added Resolution|--- |FIXED

[Bug d/103728] Allow to run unittests before main()

2021-12-26 Thread pierrick.bouvier at posteo dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103728 --- Comment #4 from Pierrick Bouvier --- Thanks for your suggestion. We will follow this to upgrade our compiler.

[Bug middle-end/47033] loop distribution has problems on sane testcases

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

[Bug rtl-optimization/49148] Certain expressions take an extremely long time for no apparent reason

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49148 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug target/103785] [12 Regression] Ada bootstrap ICEs on i?86

2021-12-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103785 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug debug/103837] New: [12 Regression] '-fcompare-debug' failure (length) w/ -Og -fmove-loop-invariants -fnon-call-exceptions -fno-tree-dce

2021-12-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103837 Bug ID: 103837 Summary: [12 Regression] '-fcompare-debug' failure (length) w/ -Og -fmove-loop-invariants -fnon-call-exceptions -fno-tree-dce Product: gcc

[Bug fortran/103828] Type generated for CHARACTER(C_CHAR), VALUE arguments is wrong

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103828 --- Comment #3 from Francois-Xavier Coudert --- Created attachment 52062 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52062=edit Patch, v1

[Bug fortran/103828] Type generated for CHARACTER(C_CHAR), VALUE arguments is wrong

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103828 Francois-Xavier Coudert changed: What|Removed |Added Keywords||patch URL|

[Bug tree-optimization/103835] Bogus sprintf warnings

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103835 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-12-26 Keywords|

[Bug libstdc++/103831] views::lazy_split accepts Pattern as span when V is input_range

2021-12-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103831 Patrick Palka changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc

[Bug c++/103831] non-dependent call to non-static member function not rejected ahead of time when there are dependent bases and no 'this'

2021-12-26 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103831 --- Comment #2 from 康桓瑋 --- Please let me add a digression, is the standard overconstrained the definition of tiny_range? In the current standard, it seems that only single_view and empty_view satisfy tiny_range. However, std::array and span

[Bug middle-end/103839] New: __builtin_clear_padding doesn't zero alignment holes of unions with fields that overlap padding

2021-12-26 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103839 Bug ID: 103839 Summary: __builtin_clear_padding doesn't zero alignment holes of unions with fields that overlap padding Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug tree-optimization/23970] loop-invariant-motion is not doing it's work

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23970 --- Comment #2 from Andrew Pinski --- We are able to do the LIM at -O3 which enables loop unswitching. I wonder if there is a way to enable a limited form of loop unswitching for -O2 where one branch of the loop to unswitch is empty.

[Bug debug/103836] New: '-fcompare-debug' failure (length) w/ -fopenacc --param openacc-kernels=decompose

2021-12-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103836 Bug ID: 103836 Summary: '-fcompare-debug' failure (length) w/ -fopenacc --param openacc-kernels=decompose Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug fortran/103828] Type generated for CHARACTER(C_CHAR), VALUE arguments is wrong

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103828 --- Comment #2 from Francois-Xavier Coudert --- So, even modifying gfc_sym_type() in trans-types.c to emit the proper type does not fix the issue. Why? Because the rug is pulled under our feet later. Turns out there is a function that deals

[Bug debug/103838] New: [11/12 Regression] '-fcompare-debug' failure (length) w/ -O2 --param max-early-inliner-iterations=0 --param max-inline-insns-auto=2

2021-12-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103838 Bug ID: 103838 Summary: [11/12 Regression] '-fcompare-debug' failure (length) w/ -O2 --param max-early-inliner-iterations=0 --param max-inline-insns-auto=2 Product: gcc

[Bug middle-end/103839] __builtin_clear_padding doesn't zero alignment holes of unions with fields that overlap padding

2021-12-26 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103839 --- Comment #1 from Iain Buclaw --- (In reply to Iain Buclaw from comment #0) > I can work around this by setting DECL_PADDING_P on all fields in unions > except the first. However I suspect this is a mistake, and the proper thing > to do

[Bug testsuite/103823] g++.dg/torture/pr31863.C fails on darwin with "using serial compilation of 2 LTRANS jobs"

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103823 --- Comment #7 from Francois-Xavier Coudert --- Did not work: I think it's because it's lto-wrapper not lto1. Executing on host: /private/tmp/ibin/gcc/testsuite/g++/../../xg++ -B/private/tmp/ibin/gcc/testsuite/g++/../../ /tmp/gcc-darwin-arm6

[Bug testsuite/103823] g++.dg/torture/pr31863.C fails on darwin with "using serial compilation of 2 LTRANS jobs"

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103823 --- Comment #8 from Francois-Xavier Coudert --- Created attachment 52064 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52064=edit Revised patch

[Bug debug/103837] [12 Regression] '-fcompare-debug' failure (length) w/ -Og -fmove-loop-invariants -fnon-call-exceptions -fno-tree-dce

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103837 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Target

[Bug debug/103838] [11/12 Regression] '-fcompare-debug' failure (length) w/ -O2 --param max-early-inliner-iterations=0 --param max-inline-insns-auto=2

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103838 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug target/33717] slow code generated for 64-bit arithmetic

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33717 --- Comment #5 from Andrew Pinski --- #include #include #define rdtscl(low) \ __asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") int main() { unsigned int x[100]; unsigned int y[100]; unsigned int z[100]; long a,b,c;

[Bug rtl-optimization/103834] New: ICE: qsort comparator non-negative on sorted output: 1 with custom flags

2021-12-26 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103834 Bug ID: 103834 Summary: ICE: qsort comparator non-negative on sorted output: 1 with custom flags Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords:

[Bug c/103835] New: Bogus sprintf warnings

2021-12-26 Thread lavr at ncbi dot nlm.nih.gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103835 Bug ID: 103835 Summary: Bogus sprintf warnings Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee:

[Bug fortran/103828] Type generated for CHARACTER(C_CHAR), VALUE arguments is wrong

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103828 --- Comment #4 from Francois-Xavier Coudert --- Wait, there is more, lower in gfc_conv_scalar_char_value(): /* If we have a constant character expression, make it into an integer. */ if ((*expr)->expr_type ==

[Bug fortran/32732] [Bind C] Character scalars are passed as arrays

2021-12-26 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32732 Francois-Xavier Coudert changed: What|Removed |Added CC||fxcoudert at gcc dot gnu.org

[Bug middle-end/103839] __builtin_clear_padding doesn't zero alignment holes of unions with fields that overlap padding

2021-12-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103839 --- Comment #2 from Jakub Jelinek --- For __builtin_clear_padding builtin, that behavior is completely intentional, for unions the compiler most of the time doesn't know which union member is currently active, so it acts conservatively, only

[Bug middle-end/103839] __builtin_clear_padding doesn't zero alignment holes of unions with fields that overlap padding

2021-12-26 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103839 --- Comment #3 from Iain Buclaw --- (In reply to Jakub Jelinek from comment #2) > For __builtin_clear_padding builtin, that behavior is completely > intentional, for unions the compiler most of the time doesn't know which > union member is

[Bug testsuite/103823] g++.dg/torture/pr31863.C fails on darwin with "using serial compilation of 2 LTRANS jobs"

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103823 --- Comment #9 from Andrew Pinski --- (In reply to Francois-Xavier Coudert from comment #8) > Created attachment 52064 [details] > Revised patch Can you submit this? But it looks correct. And thanks for correcting my patch.

[Bug tree-optimization/61818] unused code fails to be removed after dom1, thread updated

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61818 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug target/33717] slow code generated for 64-bit arithmetic

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33717 --- Comment #6 from Andrew Pinski --- GCC does better now since GCC 10: .L2: movl(%ebx,%ecx,4), %eax xorl%edx, %edx addl$-1, %eax adcl$0, %edx addl%eax, %esi adcl%edx, %edi

[Bug d/103840] New: d: Errors message: Please submit a full bug report in testsuite

2021-12-26 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103840 Bug ID: 103840 Summary: d: Errors message: Please submit a full bug report in testsuite Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/51954] __int128_t (and long long on x86) negation can be optimized

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51954 --- Comment #2 from Andrew Pinski --- We get this now: movq%rdi, %rax movq%rsi, %rdx negq%rax adcq$0, %rdx negq%rdx ICC produces: xorl %edx, %edx

[Bug tree-optimization/83389] std::tie generates sub-optimal code when used to compare POD fields

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83389 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last

[Bug tree-optimization/103802] [12 regression] recip-3.c fails after r12-6087 on Power m32

2021-12-26 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103802 --- Comment #1 from luoxhu at gcc dot gnu.org --- MOVE_MAX_PIECES is 4 on m32 but it is 8 on m64, then estimate_move_cost is different between them 2 vs 1 for “((size + MOVE_MAX_PIECES - 1) / MOVE_MAX_PIECES)". recip-3.m32.c.172t.cunroll: BB:

[Bug c++/85747] suboptimal code without constexpr

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85747 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-12-27 Severity|normal

[Bug tree-optimization/92867] Use ERF_RETURNS_ARG in more places

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92867 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/67797] builtin functions should be able to know when their first argument is returned

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67797 Andrew Pinski changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug target/56876] Combine does not invent new moves

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56876 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug tree-optimization/57962] Missed SLP opportunity

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57962 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/86693] inefficient atomic_fetch_xor

2021-12-26 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86693 --- Comment #4 from Hongtao.liu --- Change testcase a little bit, gcc now can generate lock btc void func1(); void func(unsigned long *counter) { if (__atomic_fetch_xor(counter, 1, __ATOMIC_ACQ_REL) & 1) { func1();

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #15 from Kewen Lin --- > > I tried it on a x86_64 cfarm machine: > > /home/linkw/gcc/gcc-test/configure --host=x86_64-pc-linux-gnu > --target=powerpc-e300c3-linux-gnu --build=x86_64-pc-linux-gnu >

[Bug target/86693] inefficient atomic_fetch_xor

2021-12-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86693 --- Comment #5 from H.J. Lu --- (In reply to Hongtao.liu from comment #4) > Change testcase a little bit, gcc now can generate lock btc > > > void func1(); > > void func(unsigned long *counter) > { > if (__atomic_fetch_xor(counter, 1,

[Bug tree-optimization/103802] [12 regression] recip-3.c fails after r12-6087 on Power m32

2021-12-26 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103802 --- Comment #2 from luoxhu at gcc dot gnu.org --- -funroll-loops could work around this, is this reasonable?

[Bug tree-optimization/87543] Inconsistency in noticing a constant result rather than emitting code for a loop

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

[Bug tree-optimization/97077] Missed loop unrolling with range for over initializer list

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

[Bug c++/85747] suboptimal code without constexpr

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85747 Andrew Pinski changed: What|Removed |Added CC||bmburstein at gmail dot com --- Comment

[Bug c++/85747] suboptimal code without constexpr

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85747 Andrew Pinski changed: What|Removed |Added CC||eyalroz1 at gmx dot com --- Comment #11

[Bug tree-optimization/83142] Missed tail-call opportunity with memmove and other mem*/str* functions which return the first argument back

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

[Bug tree-optimization/88361] gcc does not unroll loop

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88361 --- Comment #3 from Andrew Pinski --- is executed at most 19 (bounded by 19) + 1 times in loop 1. Analyzing # of iterations of loop 1 exit condition [19, + , 4294967295] != 0 bounds on difference of bases: -19 ... -19 result: # of

[Bug rtl-optimization/50107] [IRA, i386] allocates registers in very non-optimal way

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50107 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.8.0 Status|NEW

[Bug d/103840] d: Errors message: Please submit a full bug report in testsuite

2021-12-26 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103840 --- Comment #1 from Iain Buclaw --- In both cases, the dmd front-end has an error with %zu as a format specifier in the message.

[Bug tree-optimization/64745] Generic vectorization missed opportunities

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64745 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/64745] Generic vectorization missed opportunities

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64745 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Known to work|

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 64745, which changed state. Bug 64745 Summary: Generic vectorization missed opportunities https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64745 What|Removed |Added

[Bug tree-optimization/79349] unused std::string is not optimized away in presense of a call

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79349 Andrew Pinski changed: What|Removed |Added Component|libstdc++ |tree-optimization --- Comment #5 from

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #14 from Kewen Lin --- > % powerpc-e300c3-linux-gnu-gcc-12.0.0 -v > Using built-in specs. > COLLECT_GCC=powerpc-e300c3-linux-gnu-gcc-12.0.0 > COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-e300c3-linux-gnu/12.0.0/lto- > wrapper >

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #16 from Arseny Solokha --- Could there be any ld, or as, or glibc features involved that gcc's configure detects at build time?

[Bug tree-optimization/89922] Loop on fixed size array is not unrolled and poorly optimized at -O2

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

[Bug c++/85747] suboptimal code without constexpr

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85747 --- Comment #12 from Andrew Pinski --- *** Bug 89922 has been marked as a duplicate of this bug. ***

[Bug ipa/81000] std::any improvement

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81000 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2017-06-07 00:00:00 |2021-12-26 Severity|normal

[Bug tree-optimization/82991] memcpy and strcpy return value can be assumed to be equal to first argument

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82991 Bug 82991 depends on bug 83142, which changed state. Bug 83142 Summary: Missed tail-call opportunity with memmove and other mem*/str* functions which return the first argument back https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83142

[Bug tree-optimization/67797] builtin functions should be able to know when their first argument is returned for tail calls

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67797 Andrew Pinski changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment

[Bug rtl-optimization/88428] Fails to consider lea -1(%rax), %rax compared to sub 1, %rax failing to CSE test

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88428 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Severity|normal

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #17 from Kewen Lin --- (In reply to Arseny Solokha from comment #16) > Could there be any ld, or as, or glibc features involved that gcc's > configure detects at build time? Good point, what's the version of binutils you used? Does

[Bug middle-end/88670] [meta-bug] generic vector extension issues

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88670 Bug 88670 depends on bug 77438, which changed state. Bug 77438 Summary: Vector lowering should also consider larger vector sizes (MMX -> SSE) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77438 What|Removed

[Bug target/77438] Vector lowering should also consider larger vector sizes (MMX -> SSE)

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77438 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug rtl-optimization/53652] *andn* isn't used for vectorization

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53652 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-12-27 Severity|normal

[Bug target/56876] Combine does not invent new moves

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

[Bug rtl-optimization/53652] *andn* isn't used for vectorization

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53652 Andrew Pinski changed: What|Removed |Added CC||glisse at gcc dot gnu.org --- Comment

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #20 from Kewen Lin --- (In reply to Arseny Solokha from comment #19) > (In reply to Kewen Lin from comment #17) > > (In reply to Arseny Solokha from comment #16) > > > Could there be any ld, or as, or glibc features involved that

[Bug rtl-optimization/94790] Failure to use andn in specific pattern in which it is available

2021-12-26 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94790 luoxhu at gcc dot gnu.org changed: What|Removed |Added CC||luoxhu at gcc dot gnu.org

[Bug tree-optimization/83543] strlen of a local array member not optimized on some targets

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83543 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #18 from Arseny Solokha --- (In reply to Kewen Lin from comment #17) > (In reply to Arseny Solokha from comment #16) > > Could there be any ld, or as, or glibc features involved that gcc's > > configure detects at build time? > >

[Bug target/88705] [ARM][Generic Vector Extensions] float32x4/float64x2 vector operator overloads scalarize on NEON

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88705 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #19 from Arseny Solokha --- (In reply to Kewen Lin from comment #17) > (In reply to Arseny Solokha from comment #16) > > Could there be any ld, or as, or glibc features involved that gcc's > > configure detects at build time? > >

[Bug middle-end/95922] Failure to optimize `((b ^ a) & c) ^ a` to `(a & ~c) | (b & c)` the right way on architectures with andnot

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95922 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/94790] Failure to use andn in specific pattern in which it is available

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94790 --- Comment #2 from Andrew Pinski --- *** Bug 95922 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/91459] Tail-Call Optimization is not performed when return value is assumed.

2021-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91459 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2019-08-16 00:00:00 |2021-12-26 --- Comment #4 from Andrew

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 Kewen Lin changed: What|Removed |Added Last reconfirmed|2021-12-10 00:00:00 |2021-12-27 --- Comment #21 from Kewen Lin

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #22 from Arseny Solokha --- (In reply to Kewen Lin from comment #21) > After typing these checks, I just tried and realized that my local > cross-build on ppc64le can reproduce this if I specify -mlong-double-128. So > Arseny's

  1   2   >