[Bug tree-optimization/102714] [11 Regression] A volatile-related problem cased by ipa inline pass

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102714 --- Comment #7 from Richard Biener --- (In reply to Bo Duan from comment #6) > Hello, should we backport this patch to gcc-10? It's scheduled for a backport to GCC 11, I'm not aware that GCC 10 is affected?

[Bug target/102993] -fcf-protection=full produces segfaulting code when targeting 32-bit x86 (i686)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102993 Richard Biener changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org

[Bug target/102991] [12 regression] gcc.dg/vect/vect-simd-17.c fails after r12-4757

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102991 Richard Biener changed: What|Removed |Added Summary|[12 regress]|[12 regression] |gcc

[Bug libfortran/102992] Piping in a file does no longer work on macOS Monterey

2021-10-28 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #4 from Jürgen Reuter --- The problem is not related to XCode 13.1 which appeared at roughly the same time. On Big Sur with XCode 13.1 still all works as expected.

[Bug c++/102987] [9/10/11/12 Regression] Segfault when error or warning should trigger with combination.

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987 Richard Biener changed: What|Removed |Added Summary|[9,10,11,trunk] Segfault|[9/10/11/12 Regression]

[Bug libstdc++/102994] New: std::atomic::wait is not marked const

2021-10-28 Thread gcc_bugzilla at axeitado dot com via Gcc-bugs
In file included from :1: /opt/compiler-explorer/gcc-trunk-20211028/include/c++/12.0.0/atomic:651:5: note: in call to 'void std::atomic<_Tp*>::wait(std::atomic<_Tp*>::__pointer_type, std::memory_order) [with _Tp = char; std::atomic<_Tp*>::__pointer_type = char*]'

[Bug target/102868] Missed optimization with __builtin_shuffle and zero vector on ppc

2021-10-28 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102868 luoxhu at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|UNC

[Bug target/102868] Missed optimization with __builtin_shuffle and zero vector on ppc

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102868 --- Comment #2 from CVS Commits --- The master branch has been updated by Xiong Hu Luo : https://gcc.gnu.org/g:146b83e14a0a76a9ce8a4cb79997a078f437f779 commit r12-4781-g146b83e14a0a76a9ce8a4cb79997a078f437f779 Author: Xionghu Luo Date: Thu

[Bug tree-optimization/102714] [11 Regression] A volatile-related problem cased by ipa inline pass

2021-10-28 Thread duan.db at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102714 --- Comment #6 from Bo Duan --- Hello, should we backport this patch to gcc-10?

[Bug tree-optimization/102046] [10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 with -O3 -march=btver2 since r1

2021-10-28 Thread duan.db at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102046 --- Comment #13 from Bo Duan --- (In reply to Bo Duan from comment #11)

[Bug tree-optimization/102046] [10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 with -O3 -march=btver2 since r1

2021-10-28 Thread duan.db at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102046 --- Comment #12 from Bo Duan --- (In reply to Bo Duan from comment #10) > Created attachment 51697 [details] > 0001-Subject-PATCH-ipa-102714-IPA-SRA-eliding-volatile.patch I'm so sorry, I seem to have sent it in the wrong place.

[Bug tree-optimization/102046] [10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 with -O3 -march=btver2 since r1

2021-10-28 Thread duan.db at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102046 --- Comment #11 from Bo Duan --- Hi, should we backport this patch to gcc-10? If needed, an adapted patch is attached.

[Bug tree-optimization/102046] [10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 with -O3 -march=btver2 since r1

2021-10-28 Thread duan.db at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102046 Bo Duan changed: What|Removed |Added CC||duan.db at linux dot alibaba.com --- Comment

[Bug middle-end/102464] Miss optimization for (_Float16) sqrtf ((float) f16)

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102464 --- Comment #10 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:84bcefdaf6d95e08cd980965098961289215 commit r12-4780-g84bcefdaf6d95e08cd980965098961289215 Author: liuhongt Date: Mon Oct

[Bug c++/15795] No way to teach operator new anything about alignment requirements

2021-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795 Andrew Pinski changed: What|Removed |Added Resolution|WONTFIX |MOVED --- Comment #44 from Andrew Pinski

[Bug target/102993] -fcf-protection=full produces segfaulting code when targeting 32-bit x86 (i686)

2021-10-28 Thread luke-jr+gccbugs at utopios dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102993 Luke Dashjr changed: What|Removed |Added Version|7.0 |9.3.0 --- Comment #2 from Luke Dashjr --

[Bug target/102993] -fcf-protection=full produces segfaulting code when targeting 32-bit x86 (i686)

2021-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102993 --- Comment #1 from Andrew Pinski --- Can you provide the full output of gcc -v? Also can you test out GCC 9.4.x or above since GCC 7 is no longer supported?

[Bug other/102993] New: -mcf-protection=full produces segfaulting code when targeting 32-bit x86 (i686)

2021-10-28 Thread luke-jr+gccbugs at utopios dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102993 Bug ID: 102993 Summary: -mcf-protection=full produces segfaulting code when targeting 32-bit x86 (i686) Product: gcc Version: 7.0 Status: UNCONFIRMED Severity:

[Bug libfortran/102992] Piping in a file does no longer work on macOS Monterey

2021-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #3 from Andrew Pinski --- (In reply to Iain Sandoe from comment #2) > confirmed - I have no idea how to categorise this issue at present. > > Does gfortran do something special opening/cloning stdin/out/err? Libfortran does a few t

[Bug libfortran/102992] Piping in a file does no longer work on macOS Monterey

2021-10-28 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 Iain Sandoe changed: What|Removed |Added Last reconfirmed||2021-10-28 Target Milestone|---

[Bug fortran/102992] Piping in a file does no longer work on macOS Monterey

2021-10-28 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #1 from Jürgen Reuter --- Using a C program compiled with the same version (recent trunk with the fix by Iain Sandoe for Monterey) leads to a program that can pipe to a file.

[Bug debug/102955] [12 Regression] ICE with #pragma optimize "0" or attribute optimize and -g -gtoggle

2021-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102955 Andrew Pinski changed: What|Removed |Added Severity|normal |blocker --- Comment #10 from Andrew Pin

[Bug fortran/102992] New: Piping in a file does no longer work on macOS Monterey

2021-10-28 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 Bug ID: 102992 Summary: Piping in a file does no longer work on macOS Monterey Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW --- Comment #23 from H.J. Lu --- (In rep

[Bug target/102952] New code-gen options for retpolines and straight line speculation

2021-10-28 Thread andrew.cooper3 at citrix dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952 --- Comment #22 from Andrew Cooper --- One curious thing I have discovered. While auditing the -mharden-sls=all code generation in Xen, I found examples where I got "ret int3 ret int3" with no intervening instructions. It turns out this is not

[Bug c/102989] Implement C2x's n2763 (_BitInt)

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

[Bug c/102989] Implement C2x's n2763 (_BitInt)

2021-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 Andrew Pinski changed: What|Removed |Added Summary|Add Clang's _ExtInt(N) |Implement C2x's n2763

[Bug c/102989] Add Clang's _ExtInt(N)

2021-10-28 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 --- Comment #6 from joseph at codesourcery dot com --- It's _BitInt in C2X, see N2763 for the final wording. The operator for computing the width of a type, present in earlier drafts, was removed to get a minimal version into C2X; I don't kno

[Bug fortran/99853] ICE: Cannot convert 'LOGICAL(4)' to 'INTEGER(8)' (etc.)

2021-10-28 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99853 --- Comment #4 from Steve Kargl --- On Thu, Oct 28, 2021 at 09:04:01PM +, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99853 > > anlauf at gcc dot gnu.org changed: > >What|Removed

[Bug fortran/99853] ICE: Cannot convert 'LOGICAL(4)' to 'INTEGER(8)' (etc.)

2021-10-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99853 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2021-10-28 Status|UNCONFI

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 --- Comment #6 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #5) > This is probably the _Temporary_value helper used by std::vector. Nope, that uses a correctly-aligned buffer. The misaligned object is the default-initiali

[Bug fortran/102973] possible inconsistency in procptr_assignment handling when matching ASSOCIATE

2021-10-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102973 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #16 from H.J. Lu --- (In reply to Andrew Cooper from comment #14) > (In reply to H.J. Lu from comment #13) > > (In reply to Andrew Cooper from comment #11) > > > > > > There should be a diagnostic, but it ought to include cf_check i

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51693|0 |1 is obsolete|

[Bug fortran/102966] size() returns 0 for an unallocated array, no error message or error exit

2021-10-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102966 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|

[Bug fortran/102966] size() returns 0 for an unallocated array, no error message or error exit

2021-10-28 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102966 --- Comment #5 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #4) > (In reply to Jakub Jelinek from comment #3) > > This was added in r11-5064-g0c81ccc3d87098b93b0e6a2dd76815e4d6e78ff0 > > Right, thanks. There were a couple

[Bug target/102991] New: [12 regress] gcc.dg/vect/vect-simd-17.c fails after r12-4757

2021-10-28 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102991 Bug ID: 102991 Summary: [12 regress] gcc.dg/vect/vect-simd-17.c fails after r12-4757 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/102966] size() returns 0 for an unallocated array, no error message or error exit

2021-10-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102966 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #3) > This was added in r11-5064-g0c81ccc3d87098b93b0e6a2dd76815e4d6e78ff0 Right, thanks. There were a couple of regressions introduced by this patch, and

[Bug rtl-optimization/102986] [12 Regression] ICE: in expand_shift_1, at expmed.c:2671 with a negative shift of a vector

2021-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102986 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/102990] New: ICE in tsubst_copy_and_build, à cp/pt.c:19856

2021-10-28 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102990 Bug ID: 102990 Summary: ICE in tsubst_copy_and_build, à cp/pt.c:19856 Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/102951] failure to optimize MIN_EXPR of subobject addresses of the same object

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102951 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:6123b998b185572abac7d7224b34f03955bb91a2 commit r12-4776-g6123b998b185572abac7d7224b34f03955bb91a2 Author: Jakub Jelinek Date: T

[Bug c/102989] Add Clang's _ExtInt(N)

2021-10-28 Thread colomar.6.4.3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 --- Comment #5 from Alejandro Colomar --- Thanks for that info. It's nice to see the standard is considering that. Yes, we should add what the standard is going to add, so I'd wait to see what the standard decides in the end. Cheers, Alex

[Bug c/102989] Add Clang's _ExtInt(N)

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

[Bug c/102989] Add Clang's _ExtInt(N)

2021-10-28 Thread colomar.6.4.3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 --- Comment #3 from Alejandro Colomar --- D'oh. s/comma/parenthesis/

[Bug c/102989] Add Clang's _ExtInt(N)

2021-10-28 Thread colomar.6.4.3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 --- Comment #2 from Alejandro Colomar --- There was a missing comma. Fix: #define __STYPE_MAX(t) (t) 1 << (widthof(t) - 2)) - 1) << 1) + 1)

[Bug c/102989] Add Clang's _ExtInt(N)

2021-10-28 Thread colomar.6.4.3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 --- Comment #1 from Alejandro Colomar --- This also triggers the following wish: 'widthof(t)', which would be equivalent to 'sizeof(t) * CHAR_BIT' for normal types, but would be equal to N in the case of _ExtInt(N). It could also be used to me

[Bug c/102989] New: Add Clang's _ExtInt(N)

2021-10-28 Thread colomar.6.4.3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102989 Bug ID: 102989 Summary: Add Clang's _ExtInt(N) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee:

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread andrew.cooper3 at citrix dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #14 from Andrew Cooper --- (In reply to H.J. Lu from comment #13) > (In reply to Andrew Cooper from comment #11) > > > > There should be a diagnostic, but it ought to include cf_check in the type > > it prints. > > Try the v3 patch

[Bug target/100119] [x86] Conversion unsigned int -> double produces -0 (-m32 -msse2 -mfpmath=sse)

2021-10-28 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100119 Uroš Bizjak changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c++/102988] ice during GIMPLE pass: hardcbr

2021-10-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102988 --- Comment #1 from David Binderman --- Reduced C++ code is: inline namespace __cxx11 {} template _Tp *__addressof(_Tp); namespace __cxx11 { class basic_string { void _M_set_length(); public: ~basic_string(); void operator=(basic_string

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

2021-10-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102983 --- Comment #2 from Andrew Macleod --- This is a bit more interesting. The IL starts the pass as : if (c_3 < b_4) goto ; [INV] else goto ; [INV] : if (c_3 != 0) goto ; [INV] else goto ; [INV] <...> : # c_3 =

[Bug c++/102988] New: ice during GIMPLE pass: hardcbr

2021-10-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102988 Bug ID: 102988 Summary: ice during GIMPLE pass: hardcbr Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ As

[Bug tree-optimization/102960] [10/11/12 Regression] ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0

2021-10-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102960 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug translation/90041] Command line option without proper quoting in translation message

2021-10-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90041 --- Comment #7 from Martin Sebor --- As Jakub says in comment #2, this problem is not in a diagnostic format string that the -Wformat checker sees.

[Bug translation/93836] teach xgettext what HOST_WIDE_INT_PRINT means

2021-10-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93836 Martin Sebor changed: What|Removed |Added CC||mliska at suse dot cz --- Comment #5 from

[Bug translation/93836] teach xgettext what HOST_WIDE_INT_PRINT means

2021-10-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93836 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/102940] [12 Regression] ICE: Segmentation fault (in gimple_bb)

2021-10-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102940 Andrew Macleod changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/102940] [12 Regression] ICE: Segmentation fault (in gimple_bb)

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102940 --- Comment #3 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:d46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c commit r12-4773-gd46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c Author: Andrew MacLeod Date:

[Bug c++/102780] Checking constraints using large fold expression is slow

2021-10-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102780 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/102933] Can't use CTAD in template argument

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102933 --- Comment #1 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:f70f17d03630fd948bc15a646ebe7e784125c4d4 commit r12-4772-gf70f17d03630fd948bc15a646ebe7e784125c4d4 Author: Patrick Palka Date: T

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 --- Comment #5 from Jonathan Wakely --- This is probably the _Temporary_value helper used by std::vector. I already have a patch to overhaul that so it works in constant expressions, so I'll fix this too

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 --- Comment #4 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #1) > I think this is a user error, I don't think the standard allocator > guarantees such alignment, you'd need to use your own allocator for the > container. It h

[Bug c++/89695] unexpected copying of trivially copyable prvalue arguments

2021-10-28 Thread matthijsvanduin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89695 --- Comment #5 from Matthijs van Duin --- So for reference, the Itanium C++ ABI says: "A type which is trivial for the purposes of the ABI will be passed and returned according to the rules of the base C ABI, e.g. in registers; often this has th

[Bug target/102783] [powerpc] FPSCR manipulations cannot be relied upon

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102783 --- Comment #10 from Richard Biener --- (In reply to jos...@codesourcery.com from comment #9) > On Tue, 19 Oct 2021, segher at gcc dot gnu.org via Gcc-bugs wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102783 > > > > --- Comment #8

[Bug c++/102780] Checking constraints using large fold expression is slow

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102780 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:9927ecbb42d5be48fa933adc26f8601fab5007ca commit r12-4769-g9927ecbb42d5be48fa933adc26f8601fab5007ca Author: Patrick Palka Date: T

[Bug c++/102942] Implicit copy constructor not elided

2021-10-28 Thread matthijsvanduin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102942 Matthijs van Duin changed: What|Removed |Added CC||matthijsvanduin at gmail dot com -

[Bug c/92164] Wrong result using builtin rint/rintf optimization in x86_64

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92164 Richard Biener changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEW

[Bug target/100119] [x86] Conversion unsigned int -> double produces -0 (-m32 -msse2 -mfpmath=sse)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100119 Richard Biener changed: What|Removed |Added Known to work||12.0 --- Comment #4 from Richard Biene

[Bug c/57029] GCC doesn't set the inexact flag on inexact compile-time int-to-float conversion

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57029 --- Comment #4 from Richard Biener --- PR84407 was related which was about rounding modes and int-to-float conversion which means the testcase in this bug should now also be fixed if you supply -frounding-math which is documented as to determine

[Bug tree-optimization/84407] incorrect constant propagation with -frounding-math

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

[Bug tree-optimization/84407] incorrect constant propagation with -frounding-math

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84407 --- Comment #6 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:81342e95827f77c0917dd7a9fd54ac9729439c8e commit r12-4767-g81342e95827f77c0917dd7a9fd54ac9729439c8e Author: Richard Biener Date:

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #15 from Richard Biener --- And even when making ray_sphere static we're not considering to use alternate argument passing conventions (use 6 SSE regs for the 'double's or 3 for how the vectors are used to setup the stack right now).

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #13 from H.J. Lu --- (In reply to Andrew Cooper from comment #11) > > There should be a diagnostic, but it ought to include cf_check in the type > it prints. Try the v3 patch.

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51687|0 |1 is obsolete|

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #14 from Richard Biener --- (In reply to hubicka from comment #12) > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 > > > > --- Comment #11 from Richard Biener --- > > -mtune-ctrl=^sse_unaligned_load_optimal fixes the observ

[Bug target/102961] Build fails for AIX 6.1

2021-10-28 Thread John.Parke at alebra dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102961 --- Comment #2 from John Parke --- I tried your suggestion and removed >> --enable-version-specific-runtime-libs flag: ../gcc-11.2.0/configure --prefix=/opt/freeware/gcc-11.2.0 --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #13 from Richard Biener --- And before HJs patches to use by_pieces to setup arguments we had code like pushq 136(%rsp) .cfi_def_cfa_offset 224 pushq 136(%rsp) .cfi_def_cfa_offset 232 push

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #12 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 > > --- Comment #11 from Richard Biener --- > -mtune-ctrl=^sse_unaligned_load_optimal fixes the observed regression. Interesting. I s

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #11 from Richard Biener --- -mtune-ctrl=^sse_unaligned_load_optimal fixes the observed regression.

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #10 from hubicka at kam dot mff.cuni.cz --- >| b = 2.0 * ray.dir.x * (ray.orig.x - sph->pos.x) + > # >| movupd (%rdi),%xmm5 > # >| 2.0 *

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #9 from hubicka at kam dot mff.cuni.cz --- > Not inlining ray_sphere at -O2 is of course what makes it overall slow. ray_spehere is not at all that small function. We already play tricks at -O3 to inline it by detecting that some of

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #8 from Richard Biener --- It _is_ likely STLF. struct vec3 { double x, y, z; }; struct ray { struct vec3 orig, dir; }; the vectorized ray_sphere wants { ray.orig.x, ray.orig.y } and { ray.dir.x, ray.dir.y } where

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 Ever confirmed|0

[Bug c++/102987] [9,10,11,trunk] Segfault when error or warning should trigger with combination.

2021-10-28 Thread peeceseven at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987 --- Comment #2 from Robert Russell --- Created attachment 51692 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51692&action=edit this is the build script i was using with creduce. probably not needed

[Bug c++/102987] [9,10,11,trunk] Segfault when error or warning should trigger with combination.

2021-10-28 Thread peeceseven at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987 --- Comment #1 from Robert Russell --- Created attachment 51691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51691&action=edit adjusted previous sample closer to my use case.

[Bug c++/102987] New: [9, 10, 11, trunk] Segfault when error or warning should trigger with combination.

2021-10-28 Thread peeceseven at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987 Bug ID: 102987 Summary: [9,10,11,trunk] Segfault when error or warning should trigger with combination. Product: gcc Version: 9.0 Status: UNCONFIRMED Severity:

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #6 from Jan Hubicka --- zen https://lnt.opensuse.org/db_default/v4/CPP/graph?plot.0=198.639.0&plot.1=180.639.0&plot.2=201.639.0&plot.3=150.639.0&plot.4=246.639.0&plot.5=256.639.0&plot.6=176.639.0&; kabylake https://lnt.opensuse.org/d

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #6 from hubicka at kam dot mff.cuni.cz --- > > fixup_cfg already removes write-only stores so that seems fit for that > purpose. > > Btw, > > static int x = 1; > > int main() > { > x = 1; > } > > should ideally be handled as we

Re: [Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread Jan Hubicka via Gcc-bugs
> > fixup_cfg already removes write-only stores so that seems fit for that > purpose. > > Btw, > > static int x = 1; > > int main() > { > x = 1; > } > > should ideally be handled as well as maybe the more common(?) > > static int x[128]; > > int main() > { > memset (x, 0, 128*4); > } >

[Bug rtl-optimization/102986] New: [12 Regression] ICE: in expand_shift_1, at expmed.c:2671 with a negative shift of a vector

2021-10-28 Thread zsojka at seznam dot cz via Gcc-bugs
xtra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211028 (experimental) (GCC)

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #5 from Richard Biener --- (In reply to hubicka from comment #4) > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 > > > > Richard Biener changed: > > > >What|Removed |Added > > --

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 Jan Hubicka changed: What|Removed |Added Summary|cray regression with -O2|[12 regression] cray |-

[Bug c/102985] [openmp] Bogus "error: lastprivate variable ‘n’ is private in outer context"

2021-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102985 --- Comment #1 from Jakub Jelinek --- That testcase doesn't seem to be valid to me. While we have only explicit "A list item that is private within a parallel region, or that appears in the reduction clause of a parallel construct, must not app

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #4 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 > > Richard Biener changed: > >What|Removed |Added > -

[Bug c/102985] New: [openmp] Bogus "error: lastprivate variable ‘n’ is private in outer context"

2021-10-28 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102985 Bug ID: 102985 Summary: [openmp] Bogus "error: lastprivate variable ‘n’ is private in outer context" Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: o

[Bug middle-end/102972] [OpenMP] Strictly-nested diagnostic missing

2021-10-28 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102972 --- Comment #1 from Tobias Burnus --- Created attachment 51688 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51688&action=edit Draft patch Patch works – but causes quite some fails in testsuites (at least in https://github.com/clang-ykt/

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

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102981 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 Keywords|

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug tree-optimization/102960] [10/11/12 Regression] ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0

2021-10-28 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102960 Alex Coplan changed: What|Removed |Added Keywords|needs-bisection | --- Comment #3 from Alex Coplan --- Loo

  1   2   >