[Bug c++/98975] Infinite loop produces no assembly (including returning) with -O3

2021-02-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98975 --- Comment #5 from Andrew Pinski --- Note C and C++ are differ here. C says only if the return value is used it becomes undefined while in C++ it is undefined at the point of return.

[Bug target/98977] [x86] Failure to optimize consecutive sub flags usage

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

[Bug lto/96591] [8/9/10/11 Regression] ICE with -flto=auto and -O1: tree code ‘typename_type’ is not supported in LTO streams

2021-02-05 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96591 Jason Merrill changed: What|Removed |Added Component|c++ |lto Assignee|jason at gcc dot

[Bug target/98981] gcc-10.2 for RISC-V has extraneous register moves

2021-02-05 Thread wilson at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98981 --- Comment #3 from Jim Wilson --- I suppose cost model problems could explain why combine didn't do the optimization. I didn't have a chance to look at that. I still think there is a fundmental problem with how we represent SImode operations,

[Bug target/98981] gcc-10.2 for RISC-V has extraneous register moves

2021-02-05 Thread kito at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98981 Kito Cheng changed: What|Removed |Added CC||kito at gcc dot gnu.org --- Comment #2 from

[Bug target/98981] gcc-10.2 for RISC-V has extraneous register moves

2021-02-05 Thread wilson at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98981 Jim Wilson changed: What|Removed |Added CC||wilson at gcc dot gnu.org --- Comment #1 fr

[Bug target/98981] New: gcc-10.2 for RISC-V has extraneous register moves

2021-02-05 Thread brian.grayson at sifive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98981 Bug ID: 98981 Summary: gcc-10.2 for RISC-V has extraneous register moves Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c++/82952] Hang compiling with g++ -fsanitize=undefined -Wduplicated-branches

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82952 Marek Polacek changed: What|Removed |Added CC||sshannin at gmail dot com --- Comment #8

[Bug c++/98980] Very slow compilation with -Wduplicated-branches and ubsan

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98980 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/98980] New: Very slow compilation with -Wduplicated-branches and ubsan

2021-02-05 Thread sshannin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98980 Bug ID: 98980 Summary: Very slow compilation with -Wduplicated-branches and ubsan Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Pri

[Bug fortran/98979] New: [11 regression] ICE in several tests cases after r11-7112

2021-02-05 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98979 Bug ID: 98979 Summary: [11 regression] ICE in several tests cases after r11-7112 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Prior

[Bug c++/95888] [9/10/11 Regression] Regression in 9.3. GCC freezes when compiling code using boost::poly_collection::segment

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95888 --- Comment #5 from Marek Polacek --- Simplified test: template class A { A(int, int); template friend class A; friend T; }; template struct B { template struct C { A begin() { return {1, 0}; } }; template C fn(); }; int ma

[Bug libstdc++/98978] Consider packing _M_Engaged in the tail padding of T in optional<>

2021-02-05 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98978 --- Comment #3 from andysem at mail dot ru --- (In reply to Jonathan Wakely from comment #1) > This would be an ABI break, and so not going to happen. Is there no way to improve standard components implementation? I'd imagine you could provide th

[Bug fortran/95682] [9/10/11 Regression] Default assignment fails with allocatable array of deferred-length strings

2021-02-05 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95682 --- Comment #2 from anlauf at gcc dot gnu.org --- Adding some printout after initializing the t1%x(:), do i = 1, size(t1%x) print *, len_trim (t1%x(i)), t1%x(i) end do I get for gcc-8: 5 three 5 three

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 --- Comment #15 from Jakub Jelinek --- The needed permutations for this boil down to typedef int V __attribute__((vector_size (16))); typedef int W __attribute__((vector_size (32))); #ifdef __clang__ V f1 (V x) { return __builtin_shufflevector (

[Bug c++/82235] Copy ctor is not found for copying array of an object when it's marked explicit

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82235 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/98232] [9 Regression] ICE when compiling libreoffice

2021-02-05 Thread ht990332 at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98232 --- Comment #7 from Hussam Al-Tayeb --- The patch in bug 95719 fixes the ICE. Can you please backport it to the gcc-9 branch? Also we need some methodology for followup patches so they are marked as candidates for stable branches as well. In thi

[Bug lto/83997] ICE with alias template and attribute

2021-02-05 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83997 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug libstdc++/98978] Consider packing _M_Engaged in the tail padding of T in optional<>

2021-02-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98978 --- Comment #2 from Jonathan Wakely --- If we were going to do this, we could also make std::optional occupy a single byte, using one bit for the value and one for the engaged flag.

[Bug libstdc++/98978] Consider packing _M_Engaged in the tail padding of T in optional<>

2021-02-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98978 Jonathan Wakely changed: What|Removed |Added Keywords||ABI --- Comment #1 from Jonathan Wakel

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 --- Comment #14 from Jakub Jelinek --- WIP that implements that. Except that we need some permutation expansion improvements, both for the SSE2 V4SImode permutation cases and for AVX2 V8SImode permutation cases. --- gcc/config/i386/sse.md.jj

[Bug libstdc++/98978] New: Consider packing _M_Engaged in the tail padding of T in optional<>

2021-02-05 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98978 Bug ID: 98978 Summary: Consider packing _M_Engaged in the tail padding of T in optional<> Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/93788] Segfault caused by infinite loop in cc1plus

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93788 Marek Polacek changed: What|Removed |Added CC||zhan3299 at purdue dot edu --- Comment #

[Bug c++/98972] internal compiler error: Segmentation fault signal terminated program cc1plus

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98972 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/98972] internal compiler error: Segmentation fault signal terminated program cc1plus

2021-02-05 Thread zhan3299 at purdue dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98972 --- Comment #3 from Zhuo Zhang --- I reduced the test-case, and the simplest test-case should be: --- crash1.cc starts --- constexpr p([](register const signed struct s; --- crash1.cc ends --- The bug is also reproduced on the commit 8d0737d8f4

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 --- Comment #13 from Jakub Jelinek --- Looking at what other compilers emit for this, ICC seems to be completely broken, it emits logical right shifts instead of arithmetic right shift, and LLVM trunk emits for >> 63 what this patch emits, for >>

[Bug c++/98947] [10 Regression] Incorrect warning when using a ternary operator to select one of two volatile variables to write to

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98947 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] |[10 Regression] Incorrect

[Bug c++/98947] [10/11 Regression] Incorrect warning when using a ternary operator to select one of two volatile variables to write to

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98947 --- Comment #3 from CVS Commits --- The master branch has been updated by Marek Polacek : https://gcc.gnu.org/g:7a18bc4ae62081021f4fd90d591a588cac931f77 commit r11-7126-g7a18bc4ae62081021f4fd90d591a588cac931f77 Author: Marek Polacek Date: We

[Bug c++/96462] [10 Regression] ICE in tree check: expected identifier_node, have bit_not_expr in find_namespace_slot, at cp/name-lookup.c:97

2021-02-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96462 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/96462] [10/11 Regression] ICE in tree check: expected identifier_node, have bit_not_expr in find_namespace_slot, at cp/name-lookup.c:97

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96462 --- Comment #5 from CVS Commits --- The master branch has been updated by Marek Polacek : https://gcc.gnu.org/g:1cbc10d894494c34987d1f42f955e7843457ee38 commit r11-7125-g1cbc10d894494c34987d1f42f955e7843457ee38 Author: Marek Polacek Date: Th

[Bug target/98931] [11 Regression] arm: Assembly fails with "branch out of range or not a multiple of 2" since r11-2012

2021-02-05 Thread akrl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98931 --- Comment #12 from akrl at gcc dot gnu.org --- Right LE is 4 bytes, good catch thanks

[Bug target/98931] [11 Regression] arm: Assembly fails with "branch out of range or not a multiple of 2" since r11-2012

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98931 --- Comment #11 from Jakub Jelinek --- Isn't the normal length of short le lr, 1b 4 bytes rather than 2?

[Bug tree-optimization/97236] [8 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile

2021-02-05 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97236 ktkachov at gcc dot gnu.org changed: What|Removed |Added Known to work||9.3.1 CC|

[Bug tree-optimization/97236] [8/9 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile

2021-02-05 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97236 --- Comment #13 from ktkachov at gcc dot gnu.org --- *** Bug 98949 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/98949] gcc-9.3 aarch64 -ftree-vectorize generates wrong code

2021-02-05 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98949 ktkachov at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug tree-optimization/97236] [8/9 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97236 --- Comment #12 from CVS Commits --- The releases/gcc-9 branch has been updated by Kyrylo Tkachov : https://gcc.gnu.org/g:97b668f9a8c6ec565c278a60e7d1492a6932e409 commit r9-9224-g97b668f9a8c6ec565c278a60e7d1492a6932e409 Author: Matthias Klose

Re: [Bug target/98931] [11 Regression] arm: Assembly fails with "branch out of range or not a multiple of 2" since r11-2012

2021-02-05 Thread Andrea Corallo via Gcc-bugs
Following suggestions I'm testing the attached emitting the following for long branches where LE cannot cover: subslr, #1 bmi .L2 >From 0cd38cb29829b48f96e8e060e7a875f49236b67b Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Wed, 3 Feb 2021 15:21:54 +0100 Subject: [PA

[Bug target/98931] [11 Regression] arm: Assembly fails with "branch out of range or not a multiple of 2" since r11-2012

2021-02-05 Thread andrea.corallo at arm dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98931 --- Comment #10 from Andrea Corallo --- Following suggestions I'm testing the attached emitting the following for long branches where LE cannot cover: subslr, #1 bmi .L2

[Bug c++/95719] [10/11 Regression] ICE in lookup_vfn_in_binfo at gcc/cp/class.c:2459 since r11-954-g0ddb93ce77374004

2021-02-05 Thread ht990332 at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95719 Hussam Al-Tayeb changed: What|Removed |Added CC||ht990332 at gmx dot com --- Comment #6

[Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98920 --- Comment #10 from Jakub Jelinek --- Ugh, that is quite misdesigned then...

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 --- Comment #12 from Jakub Jelinek --- V4DImode arithmetic right shifts would be (untested): --- gcc/config/i386/sse.md.jj 2021-02-05 14:32:44.175463716 +0100 +++ gcc/config/i386/sse.md 2021-02-05 15:24:37.942026401 +0100 @@ -12458,7 +1245

[Bug c++/98232] [9 Regression] ICE when compiling libreoffice

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98232 --- Comment #6 from Martin Liška --- (In reply to Hussam Al-Tayeb from comment #4) > (In reply to Martin Liška from comment #3) > > Run build system with in a verbose mode (V=1 or VERBOSE=1), or so. > > And then for the problematic TU do -E, whic

[Bug c++/98232] [9 Regression] ICE when compiling libreoffice

2021-02-05 Thread ht990332 at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98232 --- Comment #5 from Hussam Al-Tayeb --- I also found this https://bugzilla.redhat.com/show_bug.cgi?id=1858036

[Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address

2021-02-05 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98920 --- Comment #9 from Florian Weimer --- (In reply to Jakub Jelinek from comment #8) > Even if it does, exporting regexec@@GLIBC_2.3.4 from libsanitizer when glibc > doesn't support that symbol looks wrong. I think all the interceptors use unversi

[Bug c++/98232] [9 Regression] ICE when compiling libreoffice

2021-02-05 Thread ht990332 at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98232 --- Comment #4 from Hussam Al-Tayeb --- (In reply to Martin Liška from comment #3) > Run build system with in a verbose mode (V=1 or VERBOSE=1), or so. > And then for the problematic TU do -E, which will save pre-processed source > file instead o

[Bug target/98977] New: [x86] Failure to optimize consecutive sub flags usage

2021-02-05 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98977 Bug ID: 98977 Summary: [x86] Failure to optimize consecutive sub flags usage Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug analyzer/98969] [11 Regression] ICE: Segmentation fault (in print_mem_ref)

2021-02-05 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98969 David Malcolm changed: What|Removed |Added Assignee|msebor at gcc dot gnu.org |dmalcolm at gcc dot gnu.org ---

[Bug driver/98943] [11 Regression] gcc driver does not fail on unknown files: tricks configure scripts to recognize /W4 and -diag-disable 1,2,3,4 options

2021-02-05 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98943 Nathan Sidwell changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug driver/98943] [11 Regression] gcc driver does not fail on unknown files: tricks configure scripts to recognize /W4 and -diag-disable 1,2,3,4 options

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98943 --- Comment #9 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:6606b852bfa866c19375a7c5e9cb94776a28bd94 commit r11-7124-g6606b852bfa866c19375a7c5e9cb94776a28bd94 Author: Nathan Sidwell Date:

[Bug analyzer/98969] [11 Regression] ICE: Segmentation fault (in print_mem_ref)

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98969 --- Comment #5 from Jakub Jelinek --- Yeah, seems the analyzer looked through the cast, so either it shouldn't, or it needs to readd the cast in there. As for print_mem_ref, if we wanted to protect it from bogus MEM_REF creation (not sure about

[Bug c++/98975] Infinite loop produces no assembly (including returning) with -O3

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98975 --- Comment #4 from Jakub Jelinek --- The only thing that should be fixed is whatever code invokes the UB. There is no bug on the compiler side, you essentially end up with __builtin_unreachable (); in place of the loop. You can use -fsanitize=un

[Bug c++/98972] internal compiler error: Segmentation fault signal terminated program cc1plus

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98972 Martin Liška changed: What|Removed |Added Status|WAITING |NEW

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 Jakub Jelinek changed: What|Removed |Added CC||uros at gcc dot gnu.org --- Comment #11

[Bug c++/98975] Infinite loop produces no assembly (including returning) with -O3

2021-02-05 Thread e.meissner at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98975 --- Comment #3 from Emil Meissner --- (In reply to Jakub Jelinek from comment #2) > And the bug is? The code always invokes undefined behavior, so anything can > happen. Whilst that is true, shouldn't it still be fixed, given (possible) securit

[Bug lto/98971] LTO removes __patchable_function_entries

2021-02-05 Thread gagomes at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98971 --- Comment #5 from Gabriel F. T. Gomes --- (In reply to Martin Liška from comment #4) > > Well, the intermediate object contains just LTO bytecode, that's why you > can't see the section. You can use -ffat-lto-objects in order to generate > both

[Bug c++/98976] New: [coroutines] co_return in a switch statement doesn't make a generic lambda non-constexpr

2021-02-05 Thread mail+gnu at tzik dot jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98976 Bug ID: 98976 Summary: [coroutines] co_return in a switch statement doesn't make a generic lambda non-constexpr Product: gcc Version: 11.0 Status: UNCONFIRMED S

[Bug c++/98975] Infinite loop produces no assembly (including returning) with -O3

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98975 Jakub Jelinek changed: What|Removed |Added Resolution|--- |INVALID CC|

[Bug c++/98975] Infinite loop produces no assembly (including returning) with -O3

2021-02-05 Thread e.meissner at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98975 --- Comment #1 from Emil Meissner --- The code in the attachment, compiled with `g++ file.cpp -o bug -O3 -std=c++20` produces no assembly for both the `main` and `bsort` function`. (I.e. not even a `ret` instruction), ultimating in a segmentation

[Bug c++/98972] internal compiler error: Segmentation fault signal terminated program cc1plus

2021-02-05 Thread zhan3299 at purdue dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98972 --- Comment #2 from Zhuo Zhang --- (In reply to Martin Liška from comment #1) > Thank you for the report. Actually, it's an invalid code and we do have a > lot of error recovery ICEs. > Or do you have an original test-case that is a valid C++ cod

[Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98920 --- Comment #8 from Jakub Jelinek --- Even if it does, exporting regexec@@GLIBC_2.3.4 from libsanitizer when glibc doesn't support that symbol looks wrong.

[Bug c++/98975] New: Infinite loop produces no assembly (including returning) with -O3

2021-02-05 Thread e.meissner at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98975 Bug ID: 98975 Summary: Infinite loop produces no assembly (including returning) with -O3 Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug lto/98971] LTO removes __patchable_function_entries

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98971 --- Comment #4 from Martin Liška --- > The only difference now is that the intermediate object doesn't have a > __patchable_function_entries section, but that's OK as far as I can tell. Well, the intermediate object contains just LTO bytecode, t

[Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address

2021-02-05 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98920 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #7 fr

[Bug lto/98971] LTO removes __patchable_function_entries

2021-02-05 Thread gagomes at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98971 --- Comment #3 from Gabriel F. T. Gomes --- (In reply to Martin Liška from comment #2) > > @Gabriel: Is it intended behavior? That's what I expected, yes! Thank you. The only difference now is that the intermediate object doesn't have a __patch

[Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98920 --- Comment #6 from Jakub Jelinek --- Well, it is not about what arches you care about, but what arches we support in libsanitizer/configure.tgt (from *-linux*). So, riscv64, aarch64, mips, arm, s390*, sparc*, powerpc*, x86. So it is desirable to

[Bug tree-optimization/98855] [11 Regression] botan XTEA is 100% slower on znver2 since r11-4428-g4a369d199bf2f34e

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

[Bug tree-optimization/98855] [11 Regression] botan XTEA is 100% slower on znver2 since r11-4428-g4a369d199bf2f34e

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98855 --- Comment #9 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:63538886d1f7fc7cbf066b4c2d6d7fd4da537259 commit r11-7123-g63538886d1f7fc7cbf066b4c2d6d7fd4da537259 Author: Richard Biener Date:

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 --- Comment #10 from Richard Biener --- (In reply to Jakub Jelinek from comment #9) > For arithmetic >> (element_precision - 1) one can just use > {,v}pxor + {,v}pcmpgtq, as in instead of return vec >> 63; do return vec < 0; > (in C++-ish way), a

[Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98920 --- Comment #5 from Martin Liška --- (In reply to Jakub Jelinek from comment #3) > I'm not sure if your patch is correct. > glibc has the system of earliest symbol versions, and so on certain > architectures > GLIBC_2.3.4 symver will not appear a

[Bug rtl-optimization/98973] [11 regression] Wrong code with gcse store motion pass

2021-02-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98973 --- Comment #8 from Richard Biener --- (In reply to Richard Biener from comment #6) > Btw, -fgcse-sm is nowhere enabled by default (same applies to -fgcse-las), > we should consider removing these optimizations (though -fgcse-las at least > sound

[Bug debug/98656] [9/10 Regression] switchlower_O0 drops line number of switch

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98656 Martin Liška changed: What|Removed |Added Known to work||11.0 Summary|[9/10/11 Regressi

[Bug debug/98656] [9/10/11 Regression] switchlower_O0 drops line number of switch

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98656 --- Comment #5 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:4ede02a5f2af1205434f0e05aaaeff762b24e329 commit r11-7122-g4ede02a5f2af1205434f0e05aaaeff762b24e329 Author: Tom de Vries Date: Fri

[Bug rtl-optimization/98973] [11 regression] Wrong code with gcse store motion pass

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

[Bug lto/98971] LTO removes __patchable_function_entries

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98971 --- Comment #2 from Martin Liška --- Created attachment 50133 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50133&action=edit Tentative patch As seen the flag -fpatchable-function-entry is properly marked as Optimization. However, it's th

[Bug middle-end/98974] [11 Regression] ICE in vectorizable_condition after STMT_VINFO_VEC_STMTS

2021-02-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98974 --- Comment #3 from Richard Biener --- (In reply to avieira from comment #1) > The testcase above issues a warning, around do j=jts,enddo > > To use it as a testcase in my patch I'd like to get rid of it so if someone > proficient in Fortran kno

[Bug rtl-optimization/98782] [11 Regression] Bad interaction between IPA frequences and IRA resulting in spills due to changes in BB frequencies

2021-02-05 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98782 Tamar Christina changed: What|Removed |Added CC||hubicka at gcc dot gnu.org

[Bug rtl-optimization/98973] [11 regression] Wrong code with gcse store motion pass

2021-02-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98973 --- Comment #6 from Richard Biener --- Btw, -fgcse-sm is nowhere enabled by default (same applies to -fgcse-las), we should consider removing these optimizations (though -fgcse-las at least sounds useful and I wonder why it is not enabled). GCSE

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #9

[Bug tree-optimization/98932] Wrong output with -O3 on aarch64

2021-02-05 Thread kristian.klausen at scoutdi dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98932 --- Comment #7 from Kristian --- Thanks! Yes, I agree. We are however bound to earlier versions due to CUDA-dependency on the NVIDIA Jetson-platforms: https://github.com/OE4T/meta-tegra/wiki/Compatibility-notes Hopefully NVIDIA will update thei

[Bug fortran/98890] ICE on reference to module function

2021-02-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98890 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org Keyw

[Bug tree-optimization/98932] Wrong output with -O3 on aarch64

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98932 --- Comment #6 from Martin Liška --- (In reply to Kristian from comment #5) > Thanks for such a swift reponse! Looking forward to testing the patches for > 8.x. You're welcome. Just a note, please try to use the latest GCC release (version 10).

[Bug tree-optimization/98932] Wrong output with -O3 on aarch64

2021-02-05 Thread kristian.klausen at scoutdi dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98932 --- Comment #5 from Kristian --- Thanks for such a swift reponse! Looking forward to testing the patches for 8.x.

[Bug testsuite/98325] [11 regression] gcc.dg/pr25376.c fails after r11-5027

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98325 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Sta

[Bug middle-end/98974] [11 Regression] ICE in vectorizable_condition after STMT_VINFO_VEC_STMTS

2021-02-05 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98974 ktkachov at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2021-02-05 Known to fa

[Bug tree-optimization/98949] gcc-9.3 aarch64 -ftree-vectorize generates wrong code

2021-02-05 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98949 ktkachov at gcc dot gnu.org changed: What|Removed |Added CC||ktkachov at gcc dot gnu.org

[Bug middle-end/98974] ICE in vectorizable_condition after STMT_VINFO_VEC_STMTS

2021-02-05 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98974 --- Comment #1 from avieira at gcc dot gnu.org --- The testcase above issues a warning, around do j=jts,enddo To use it as a testcase in my patch I'd like to get rid of it so if someone proficient in Fortran knows a way to get rid of it that'd be

[Bug middle-end/98974] New: ICE in vectorizable_condition after STMT_VINFO_VEC_STMTS

2021-02-05 Thread avieira at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98974 Bug ID: 98974 Summary: ICE in vectorizable_condition after STMT_VINFO_VEC_STMTS Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priori

[Bug tree-optimization/98856] [11 Regression] botan AES-128/XTS is slower by ~17% since r11-6649-g285fa338b06b804e72997c4d876ecf08a9c083af

2021-02-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98856 --- Comment #8 from Richard Biener --- exploring more options I noticed there's no arithmetic vector V2DI right shift, so vectorizing uint64_t carry = (uint64_t)(((int64_t)W[1]) >> 63) & (uint64_t)135; W[1] = (W[1] << 1) ^ ((uint64_t)(((int6

[Bug middle-end/98465] [11 Regression] Bogus -Wstringop-overread with -std=gnu++20 -O2 and std::string::insert

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 --- Comment #28 from Jakub Jelinek --- Actually tested version. The above testcase with [2, INF] range doesn't make really much sense, but adjusted testcase where n has [0, 2] range doesn't warn anymore like the one with constant 2. diff --git

[Bug rtl-optimization/98973] [11 regression] Wrong code with gcse store motion pass

2021-02-05 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98973 --- Comment #5 from Andreas Krebbel --- Created attachment 50132 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50132&action=edit RTL dump from store motion pass

[Bug rtl-optimization/98973] [11 regression] Wrong code with gcse store motion pass

2021-02-05 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98973 --- Comment #4 from Andreas Krebbel --- The update of global variable c is moved out of the loop. Due to that c stays at 8 although it should be counted down to 2.

[Bug rtl-optimization/98973] [11 regression] Wrong code with gcse store motion pass

2021-02-05 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98973 --- Comment #3 from Andreas Krebbel --- Created attachment 50131 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50131&action=edit RTL GCSE dump without -fgcse-sm

[Bug rtl-optimization/98973] [11 regression] Wrong code with gcse store motion pass

2021-02-05 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98973 --- Comment #2 from Andreas Krebbel --- Created attachment 50130 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50130&action=edit RTL GCSE dump with -fgcse-sm

[Bug debug/98656] [9/10/11 Regression] switchlower_O0 drops line number of switch

2021-02-05 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98656 Martin Liška changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org

[Bug target/98957] [11 Regression] [x86] Odd code generation for 8-bit right shift

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98957 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/98967] warning to spot recursive include graph

2021-02-05 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98967 Eric Gallager changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/98957] [11 Regression] [x86] Odd code generation for 8-bit right shift

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98957 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:37876976b0511ec96741f638f160874f2added0e commit r11-7121-g37876976b0511ec96741f638f160874f2added0e Author: Jakub Jelinek Date: Fr

[Bug c/60759] improve -Wlogical-op

2021-02-05 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60759 --- Comment #7 from Vincent Lefèvre --- (In reply to Manuel López-Ibáñez from comment #6) > I believe this is on purpose to avoid too much noise. The warning in GCC > needs to be smarter about types and macros and avoid early folding. Well, for

[Bug c++/97878] [8/9/10 Regression] ICE in cxx_eval_outermost_constant_expr, at cp/constexpr.c:6825

2021-02-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97878 Jakub Jelinek changed: What|Removed |Added Summary|[8/9/10/11 Regression] ICE |[8/9/10 Regression] ICE in

[Bug c++/97878] [8/9/10/11 Regression] ICE in cxx_eval_outermost_constant_expr, at cp/constexpr.c:6825

2021-02-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97878 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:b229baa75ce4627d1bd38f2d3dcd91af1a7071db commit r11-7120-gb229baa75ce4627d1bd38f2d3dcd91af1a7071db Author: Jakub Jelinek Date: Fr

  1   2   >