[Bug fortran/82943] [F03] Error with type-bound procedure of parametrized derived type

2021-07-16 Thread info at gha3mi dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82943 alig changed: What|Removed |Added CC||info at gha3mi dot com --- Comment #8 from alig

[Bug middle-end/96348] The same "C" program runtime is 50 times longer on Win10 than on Linux.

2021-07-16 Thread brianoh9999 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96348 --- Comment #4 from Brian Oh --- On Sat, Jul 17, 2021 at 6:03 AM pinskia at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96348 > > --- Comment #3 from Andrew Pinski --- > So one thing is

[Bug tree-optimization/101481] [11/12 Regression] -ftree-loop-distribute-patterns can slow down and increases size of code

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101481 --- Comment #2 from Andrew Pinski --- Note this is an older regression but I only marked it as 11/12 as -ftree-loop-distribute-patterns is now enabled at -O2 rather than just -O3.

[Bug tree-optimization/101481] [11/12 Regression] -ftree-loop-distribute-patterns can slow down and increases size of code

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101481 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug libstdc++/101482] New: The resolution of #32907 is too restricted

2021-07-16 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101482 Bug ID: 101482 Summary: The resolution of #32907 is too restricted Product: gcc Version: 11.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/101481] New: -ftree-loop-distribute-patterns can slow down and increases size of code

2021-07-16 Thread andres at anarazel dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101481 Bug ID: 101481 Summary: -ftree-loop-distribute-patterns can slow down and increases size of code Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug tree-optimization/96237] Failure to recognize and pattern composed of and+or after shift

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96237 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug middle-end/19987] [meta-bug] fold missing optimizations in general

2021-07-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 96542, which changed state. Bug 96542 Summary: Failure to optimize simple code to a constant when storing part of the operation in a variable https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96542 What

[Bug tree-optimization/96542] Failure to optimize simple code to a constant when storing part of the operation in a variable

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

[COMMITTED] tree-optimization/96542 - Add wi_fold_in_parts.

2021-07-16 Thread Andrew MacLeod via Gcc-patches
Range-ops uses wi_fold (implemented by each opcode)  to individually fold subranges one at a time and then combines them. This patch first calls wi_fold_in_parts which checks if one of the subranges is small, and if so, further splits that subrange into constants. Currently, if a subrange is

[Bug tree-optimization/96542] Failure to optimize simple code to a constant when storing part of the operation in a variable

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96542 --- Comment #7 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:704e8a825c78b9a8424c291509413bbb48e602c7 commit r12-2381-g704e8a825c78b9a8424c291509413bbb48e602c7 Author: Andrew MacLeod Date:

[Bug libfortran/101317] Bind(C): improve error checking in CFI_* functions declared in ISO_Fortran_binding.h

2021-07-16 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101317 --- Comment #1 from sandra at gcc dot gnu.org --- Patch posted: https://gcc.gnu.org/pipermail/fortran/2021-July/056249.html

[PATCH, Fortran] [PR libfortran/101317] Bind(c): Improve error checking in CFI_* functions

2021-07-16 Thread Sandra Loosemore
This patch is for PR101317, one of the bugs uncovered by the TS29113 testsuite. Here I'd observed that CFI_establish, etc was not diagnosing some invalid-argument situations documented in the standard, although it was properly catching others. After fixing those I discovered a couple small

[Bug tree-optimization/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

2021-07-16 Thread Simon.Thornington at tssecurities dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479 --- Comment #4 from Simon Thornington --- I'll add that changing close_to_zero from fabs(x) < 0.5 to x == 0.0 || fabs(x) < 0.5 everything starts to work as I'd expect again...

[PATCH] Add QI vector mode support to by-pieces for memset

2021-07-16 Thread H.J. Lu via Gcc-patches
On Fri, Jul 16, 2021 at 7:15 AM H.J. Lu wrote: > > On Fri, Jul 16, 2021 at 6:24 AM Richard Sandiford > wrote: > > > > "H.J. Lu via Gcc-patches" writes: > > > On Fri, Jul 16, 2021 at 4:38 AM Richard Sandiford > > > wrote: > > >> > > >> "H.J. Lu via Gcc-patches" writes: > > >> > 1. Rewrite

Re: [PATCH] [wwwdocs] Update description of GM2 and document branch

2021-07-16 Thread Gaius Mulley via Gcc-patches
Gerald Pfeifer writes: >> +is fully operational with the GCC 10 and GCC 11 (on > > Here I'd omit "the", though I cannot (linguistically) explain why > and have to refer to established practice. thanks for catching the unnecessary "the" - all committed and pushed now, regards, Gaius

[Bug c++/96227] Comma operation sequencing issue

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96227 Andrew Pinski changed: What|Removed |Added Status|NEW |WAITING --- Comment #2 from Andrew

[Bug c++/96227] Comma operation sequencing issue

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

[Bug target/101205] csinv does not have an zero_extend version

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

[Bug tree-optimization/98956] Failure to optimize out boolean left shift

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98956 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 from Andrew

[Bug c++/101480] New: Miscompiled code involving operator new

2021-07-16 Thread jens.maurer at gmx dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480 Bug ID: 101480 Summary: Miscompiled code involving operator new Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/101233] ICE when using ::ranges::v3::to

2021-07-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101233 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug c++/100138] ICE with constructor constrained (C++20 Concepts) by parameter pack length

2021-07-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100138 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/101226] Suboptimal codegen for >>/>>>

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

[Bug c++/101233] ICE when using ::ranges::v3::to

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101233 --- Comment #8 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:9107b139f4492d504df37e943882405e6aefdb7e commit r11-8762-g9107b139f4492d504df37e943882405e6aefdb7e Author: Patrick Palka

[Bug c++/100138] ICE with constructor constrained (C++20 Concepts) by parameter pack length

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100138 --- Comment #3 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:2e63d08cb9bc001232734eed32e4bc3814a279a9 commit r11-8761-g2e63d08cb9bc001232734eed32e4bc3814a279a9 Author: Patrick Palka

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-16 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #6 from Segher Boessenkool --- (In reply to Franz Sirl from comment #4) > How about something along this patch? It's not fully done (no good idea > about SPEC stuff like "mcpu=7400: -mppc %{!mvsx:%{!maltivec:-maltivec}};" > yet),

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-16 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #5 from Segher Boessenkool --- (In reply to Franz Sirl from comment #3) > (In reply to Segher Boessenkool from comment #1) > > The -many is problematic, that is the whole point of this. As in this > > example: on different

gcc-10-20210716 is now available

2021-07-16 Thread GCC Administrator via Gcc
Snapshot gcc-10-20210716 is now available on https://gcc.gnu.org/pub/gcc/snapshots/10-20210716/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 10 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: [PATCH] c++: Reject ordered comparison of null pointers [PR99701]

2021-07-16 Thread Jakub Jelinek via Gcc-patches
On Fri, Jul 16, 2021 at 05:36:13PM -0400, Marek Polacek via Gcc-patches wrote: > When implementing DR 1512 in r11-467 I neglected to reject ordered > comparison of two null pointers, like nullptr < nullptr. This patch > fixes that omission. > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok

[Bug c++/66968] Incorrect template argument shown in diagnostic

2021-07-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66968 --- Comment #7 from Jonathan Wakely --- To reproduce the std::tuple error above, use this code at r12-2379 #include std::tuple t; auto a = std::get<1>(t);

[committed] libstdc++: Improve diagnostics for std::get with invalid tuple index

2021-07-16 Thread Jonathan Wakely via Gcc-patches
The recent fix for std::get uses a deleted overload to give better diagnostics for out-of-range indices. This does something similar for std::get. Tested powerpc64le-linux. Committed to trunk. This adds a deleted overload of std::get(const tuple&). Invalid calls with an out of range index will

[Bug c++/66968] Incorrect template argument shown in diagnostic

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66968 --- Comment #6 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:3dbc7b809a62167b36f217ab5f43207be19e5908 commit r12-2379-g3dbc7b809a62167b36f217ab5f43207be19e5908 Author: Jonathan Wakely Date:

[Bug middle-end/96348] The same "C" program runtime is 50 times longer on Win10 than on Linux.

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96348 --- Comment #3 from Andrew Pinski --- So one thing is Windows is LLP64IL32 target while x86_64 Linux is LP64 target. So if you are comparing windows to Linux and use long type, you might be getting the major difference there. There might be

PING Re: [PATCH] gcc-changelog: show correct line when complaining about unclosed paren

2021-07-16 Thread David Malcolm via Gcc-patches
Ping re: https://gcc.gnu.org/pipermail/gcc-patches/2021-June/574057.html On Wed, 2021-06-30 at 11:03 -0400, David Malcolm wrote: Successfully tested via:   pytest contrib/gcc-changelog/ contrib/ChangeLog: * gcc-changelog/git_commit.py (ChangeLogEntry.__init__): Convert

[PATCH] c++: Reject ordered comparison of null pointers [PR99701]

2021-07-16 Thread Marek Polacek via Gcc-patches
When implementing DR 1512 in r11-467 I neglected to reject ordered comparison of two null pointers, like nullptr < nullptr. This patch fixes that omission. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? DR 1512 PR c++/99701 gcc/cp/ChangeLog: *

[Bug ipa/101362] can_change_signature does not consider 'used' attribute

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

Re: daily report on extending static analyzer project [GSoC]

2021-07-16 Thread David Malcolm via Gcc
On Fri, 2021-07-16 at 21:04 +0530, Ankur Saini wrote: > > > > On 15-Jul-2021, at 4:53 AM, David Malcolm > > wrote: > > > > On Wed, 2021-07-14 at 22:41 +0530, Ankur Saini wrote: > > > > [...snip...] > > > > > > > >   2. ( pr100546.c <   > > >

Re: [PATCH] c++: implement C++17 hardware interference size

2021-07-16 Thread Noah Goldstein via Gcc-patches
On Fri, Jul 16, 2021 at 3:37 PM Matthias Kretz wrote: > On Friday, 16 July 2021 19:20:29 CEST Noah Goldstein wrote: > > On Fri, Jul 16, 2021 at 11:12 AM Matthias Kretz wrote: > > > I don't understand how this feature would lead to false sharing. But > maybe > > > I > > > misunderstand the

[Bug debug/101470] Support -gline-tables-only

2021-07-16 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101470 Eric Botcazou changed: What|Removed |Added Ever confirmed|0 |1 CC|

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-16 Thread Martin Sebor via Gcc-patches
On 7/16/21 11:42 AM, Thomas Schwinge wrote: Hi Martin! On 2021-07-09T17:11:25-0600, Martin Sebor via Gcc-patches wrote: The attached tweak avoids the new -Warray-bounds instances when building libatomic for arm. Christophe confirms it resolves the problem (thank you!) As Abid has just

[Bug tree-optimization/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479 --- Comment #3 from Andrew Pinski --- If you want -ffast-math and fetestexcept still, add -ftrapping-math to the end of the command line.

[Bug tree-optimization/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

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

[Bug c/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

2021-07-16 Thread Simon.Thornington at tssecurities dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479 --- Comment #1 from Simon Thornington --- x_not_zero -> could_be_zero sorry

[Bug c/101479] New: vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

2021-07-16 Thread Simon.Thornington at tssecurities dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479 Bug ID: 101479 Summary: vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3) Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c/101478] New: ICE on invalid code: recompute_tree_invariant_for_addr_expr

2021-07-16 Thread cnsun at uwaterloo dot ca via Gcc-bugs
--disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210716 (experimental) [master revision :2c298de71:d97d71a1989e9ee8e1b8563b351c42b7732da108] (GCC) $ cat mutant.c struct obj { int n; list l; } main() { obj o = (struct obj *)((char *)({ 1

[Bug c++/101477] Wrong location for unexpanded parameter pack in function template

2021-07-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101477 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2021-07-16 See Also|

[Bug c++/101477] New: Wrong location for unexpanded parameter pack in function template

2021-07-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101477 Bug ID: 101477 Summary: Wrong location for unexpanded parameter pack in function template Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic

[Bug c++/66968] Incorrect template argument shown in diagnostic

2021-07-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66968 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2017-08-21 00:00:00 |2021-7-16 --- Comment #5 from

[Bug c++/99664] Overriding virtual function with different return type (and not covariant) is allowed to compile, when it shouldn’t be

2021-07-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99664 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

Re: [PATCH] [DWARF] Fix hierarchy of debug information for offload kernels.

2021-07-16 Thread Hafiz Abid Qadeer
On 15/07/2021 13:09, Richard Biener wrote: > On Thu, Jul 15, 2021 at 12:35 PM Hafiz Abid Qadeer > wrote: >> >> On 15/07/2021 11:33, Thomas Schwinge wrote: >>> Note that the "parent" should be abstract but I don't think dwarf has a way to express a fully abstract parent of a concrete

[Bug c++/101233] ICE when using ::ranges::v3::to

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101233 --- Comment #7 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:a8b3861496bffae8b813ea196c1c5b27f79fbe69 commit r12-2378-ga8b3861496bffae8b813ea196c1c5b27f79fbe69 Author: Patrick Palka Date:

[Bug c++/99664] Overriding virtual function with different return type (and not covariant) is allowed to compile, when it shouldn’t be

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99664 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:d04b0c75794545f1f7a942764285e21eaf2915a1 commit r12-2377-gd04b0c75794545f1f7a942764285e21eaf2915a1 Author: Patrick Palka Date:

Re: [PATCH v3 2/2] rs6000: Add test for _mm_minpos_epu16

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, Thanks for the cleanups, LGTM!  Recommend maintainers approve. Bill On 7/15/21 6:29 PM, Paul A. Clarke wrote: Copy the test for _mm_minpos_epu16 from gcc/testsuite/gcc.target/i386/sse4_1-phminposuw.c, with a few adjustments: - Adjust the dejagnu directives for powerpc platform. -

Re: [PATCH v3 1/2] rs6000: Add support for _mm_minpos_epu16

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, LGTM.  Recommend maintainers approve. Thanks for the cleanups, Bill On 7/15/21 6:29 PM, Paul A. Clarke wrote: Add a naive implementation of the subject x86 intrinsic to ease porting. 2021-07-15 Paul A. Clarke gcc * config/rs6000/smmintrin.h (_mm_minpos_epu16): New. ---

Re: [PATCH] c++: implement C++17 hardware interference size

2021-07-16 Thread Jonathan Wakely via Gcc-patches
On Fri, 16 Jul 2021 at 20:26, Matthias Kretz wrote: > > On Friday, 16 July 2021 18:54:30 CEST Jonathan Wakely wrote: > > On Fri, 16 Jul 2021 at 16:33, Jason Merrill wrote: > > > Adjusting them based on tuning would certainly simplify a significant use > > > case, perhaps the only reasonable use.

[committed] analyzer: add region_model::check_region_access

2021-07-16 Thread David Malcolm via Gcc-patches
I've been experimenting with various new diagnostics that require a common place for the analyzer to check the validity of reads or writes to memory (e.g. buffer overflow). As preliminary work, this patch adds new region_model::check_region_for_{read|write} functions which are called anywhere

[Bug fortran/100949] [9/10/11/12 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.c:1975

2021-07-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100949 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[committed] analyzer: add __analyzer_dump_state

2021-07-16 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as 9ea10c480565fa42b1804fb436f7e26ca77b71a3. gcc/analyzer/ChangeLog: * engine.cc (exploded_node::on_stmt_pre): Handle __analyzer_dump_state. * program-state.cc

[committed] analyzer: add svalue::maybe_get_region

2021-07-16 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as 5932dd35eaa816e8d9b6406c6c433395ff5b6162. gcc/analyzer/ChangeLog: * program-state.cc (program_state::detect_leaks): Simplify using svalue::maybe_get_region. * region-model-impl-calls.cc

[Bug fortran/100949] [9/10/11/12 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.c:1975

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100949 --- Comment #7 from CVS Commits --- The releases/gcc-9 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:1847a11f4ad8960a57384ed1ef2d0292c65166ed commit r9-9627-g1847a11f4ad8960a57384ed1ef2d0292c65166ed Author: Harald Anlauf

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

2021-07-16 Thread franek.balcerak at o2 dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101476 Bug ID: 101476 Summary: AddressSanitizer check failed, points out a (potentially) non-existing stack error Product: gcc Version: 11.1.0 Status: UNCONFIRMED

Re: [PATCH] c++: implement C++17 hardware interference size

2021-07-16 Thread Matthias Kretz
On Friday, 16 July 2021 19:20:29 CEST Noah Goldstein wrote: > On Fri, Jul 16, 2021 at 11:12 AM Matthias Kretz wrote: > > I don't understand how this feature would lead to false sharing. But maybe > > I > > misunderstand the spatial prefetcher. The first access to one of the two > > cache > >

[Bug fortran/100949] [9/10/11/12 Regression] ICE in gfc_conv_expr_present, at fortran/trans-expr.c:1975

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100949 --- Comment #6 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:4669f3830fc80921b0e8a0a8d45451820283cc46 commit r10-9985-g4669f3830fc80921b0e8a0a8d45451820283cc46 Author: Harald Anlauf

Re: [PATCH] c++: implement C++17 hardware interference size

2021-07-16 Thread Matthias Kretz
On Friday, 16 July 2021 18:54:30 CEST Jonathan Wakely wrote: > On Fri, 16 Jul 2021 at 16:33, Jason Merrill wrote: > > Adjusting them based on tuning would certainly simplify a significant use > > case, perhaps the only reasonable use. Cases more concerned with ABI > > stability probably shouldn't

[Bug c/101453] ICE on compilable code: *** buffer overflow detected ***: terminated

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101453 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Status|ASSIGNED

[Bug c/101453] ICE on compilable code: *** buffer overflow detected ***: terminated

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101453 --- Comment #4 from CVS Commits --- The master branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:e06b1c5ac00b1bd0339739d3d9377c90852a83c9 commit r12-2373-ge06b1c5ac00b1bd0339739d3d9377c90852a83c9 Author: Andrew Pinski Date:

Re: [PATCH] Fix PR 101453: ICE with optimize and large integer constant

2021-07-16 Thread Richard Biener via Gcc-patches
On July 16, 2021 8:35:25 PM GMT+02:00, apinski--- via Gcc-patches wrote: >From: Andrew Pinski > >The problem is the buffer is too small to hold "-O" and >the interger. This fixes the problem by use the correct size >instead. > >Changes since v1: >* v2: Use HOST_BITS_PER_LONG and just divide by

Re: [PATCH] c++: implement C++17 hardware interference size

2021-07-16 Thread Jason Merrill via Gcc-patches
On Fri, Jul 16, 2021, 12:54 PM Jonathan Wakely wrote: > On Fri, 16 Jul 2021 at 16:33, Jason Merrill wrote: > > Adjusting them based on tuning would certainly simplify a significant use > > case, perhaps the only reasonable use. Cases more concerned with ABI > > stability probably shouldn't use

[Bug c/101453] ICE on compilable code: *** buffer overflow detected ***: terminated

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101453 Andrew Pinski changed: What|Removed |Added URL|https://gcc.gnu.org/piperma |https://gcc.gnu.org/piperma

[PATCH] Fix PR 101453: ICE with optimize and large integer constant

2021-07-16 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem is the buffer is too small to hold "-O" and the interger. This fixes the problem by use the correct size instead. Changes since v1: * v2: Use HOST_BITS_PER_LONG and just divide by 3 instead of 3.32. OK? Bootstrapped and tested on x86_64-linux with no

Re: [PATCH v2 6/6] rs6000: Add tests for SSE4.1 "floor" intrinsics

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, LGTM!  Recommend maintainers approve. Bill On 7/16/21 8:50 AM, Paul A. Clarke wrote: Add the tests for _mm_floor_pd, _mm_floor_ps, _mm_floor_sd, _mm_floor_ss. These are modelled after (and depend upon parts of) the tests for _mm_ceil intrinsics, recently posted. Copy a test for

Re: [PATCH v2 5/6] rs6000: Add support for SSE4.1 "floor" intrinsics

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, LGTM!  Recommend maintainers approve. Bill On 7/16/21 8:50 AM, Paul A. Clarke wrote: 2021-07-16 Paul A. Clarke gcc * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps, _mm_floor_sd, _mm_floor_ss): New. --- v2: Improve formatting per review from Bill.

Re: [PATCH v2 4/6] rs6000: Add tests for SSE4.1 "ceil" intrinsics

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, Thanks for the cleanup, LGTM!  Recommend maintainers approve. Bill On 7/16/21 8:50 AM, Paul A. Clarke wrote: Add the tests for _mm_ceil_pd, _mm_ceil_ps, _mm_ceil_sd, _mm_ceil_ss. Copy a test for _mm_ceil_pd and _mm_ceil_ps from gcc/testsuite/gcc.target/i386. Define __VSX_SSE2__ to

Re: Pushing XFAILed test cases

2021-07-16 Thread Sandra Loosemore
On 7/16/21 9:32 AM, Thomas Schwinge wrote: [much snipped] Of course, we shall assume a certain level of quality in the XFAILed test cases: I'm certainly not suggesting we put any random junk into the testsuite, coarsely XFAILed. (I have not reviewed Sandra's test cases to that effect, but

Re: Pushing XFAILed test cases

2021-07-16 Thread Sandra Loosemore
On 7/16/21 9:32 AM, Thomas Schwinge wrote: [much snipped] Of course, we shall assume a certain level of quality in the XFAILed test cases: I'm certainly not suggesting we put any random junk into the testsuite, coarsely XFAILed. (I have not reviewed Sandra's test cases to that effect, but

Re: [PATCH v2 3/6] rs6000: Add support for SSE4.1 "ceil" intrinsics

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, Thanks for the cleanup, LGTM!  Recommend maintainers approve. Bill On 7/16/21 8:50 AM, Paul A. Clarke wrote: 2021-07-16 Paul A. Clarke gcc * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps, _mm_ceil_sd, _mm_ceil_ss): New. --- v2: Improve formatting per review

Re: [PATCH v2 2/6] rs6000: Add tests for SSE4.1 "blend" intrinsics

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, Thanks for the cleanup, LGTM!  Recommend maintainers approve. Bill On 7/16/21 8:50 AM, Paul A. Clarke wrote: Copy the tests for _mm_blend_pd, _mm_blendv_pd, _mm_blend_ps, _mm_blendv_ps from gcc/testsuite/gcc.target/i386. 2021-07-16 Paul A. Clarke gcc/testsuite *

Re: [PATCH v2 1/6] rs6000: Add support for SSE4.1 "blend" intrinsics

2021-07-16 Thread Bill Schmidt via Gcc-patches
Hi Paul, Thanks!  LGTM.  Recommend that maintainers approve. Bill On 7/16/21 8:50 AM, Paul A. Clarke wrote: _mm_blend_epi16 and _mm_blendv_epi8 were added earlier. Add these four to complete the set. 2021-07-16 Paul A. Clarke gcc * config/rs6000/smmintrin.h (_mm_blend_pd,

Need Help: Initialize paddings for -ftrivial-auto-var-init

2021-07-16 Thread Qing Zhao via Gcc-patches
Hi, After some more study on __builtin_clear_padding and the corresponding testing cases. And also considered both Richard Biener and Richard Sandiford’s previous suggestion to use __builtin_clear_padding. I have the following thought on the paddings initialization: ** We can insert a

Re: [PATCH] c++: Allow constexpr references to non-static vars [PR100976]

2021-07-16 Thread Marek Polacek via Gcc-patches
On Fri, Jul 16, 2021 at 12:53:05PM -0400, Jason Merrill wrote: > On 7/15/21 5:14 PM, Marek Polacek wrote: > > The combination of DR 2481 and DR 2126 should allow us to do > > > >void f() > >{ > > constexpr const int = 42; > > static_assert(r == 42); > >} > > > > because

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-16 Thread Thomas Schwinge
Hi Martin! On 2021-07-09T17:11:25-0600, Martin Sebor via Gcc-patches wrote: > The attached tweak avoids the new -Warray-bounds instances when > building libatomic for arm. Christophe confirms it resolves > the problem (thank you!) As Abid has just reported in

[committed] fix a few target-dependent test failures (PR 101468)

2021-07-16 Thread Martin Sebor via Gcc-patches
A number of newly added tests were reported failing on a few targets in PR testsuite/101468. I have committed r12-2372 with fixes for those tests: https://gcc.gnu.org/g:94ba897be8b59ef5926eed4c77fd53812fb20add Martin

Re: Pushing XFAILed test cases

2021-07-16 Thread Martin Sebor via Gcc
On 7/16/21 9:32 AM, Thomas Schwinge wrote: [Also including for guidance.] Hi! (I'm not involved in or familiar with Sandra's Fortran TS29113 work, just commenting generally here.) On 2021-07-16T09:52:28+0200, Thomas Koenig via Gcc-patches wrote: It is my understanding that it is not gcc

Re: Pushing XFAILed test cases

2021-07-16 Thread Martin Sebor via Gcc-patches
On 7/16/21 9:32 AM, Thomas Schwinge wrote: [Also including for guidance.] Hi! (I'm not involved in or familiar with Sandra's Fortran TS29113 work, just commenting generally here.) On 2021-07-16T09:52:28+0200, Thomas Koenig via Gcc-patches wrote: It is my understanding that it is not gcc

Re: [PATCH] c++: implement C++17 hardware interference size

2021-07-16 Thread Noah Goldstein via Gcc-patches
On Fri, Jul 16, 2021 at 11:12 AM Matthias Kretz wrote: > On Friday, 16 July 2021 04:41:17 CEST Jason Merrill via Gcc-patches wrote: > > > Currently the patch does not adjust the values based on -march, as in > JF's > > > proposal. I'll need more guidance from the ARM/AArch64 maintainers > about

Re: [PATCH] c++: alias CTAD inside decltype [PR101233]

2021-07-16 Thread Jason Merrill via Gcc-patches
On 7/15/21 12:37 PM, Patrick Palka wrote: This is the alias CTAD version of the CTAD bug PR93248, and the fix is the same: clear cp_unevaluated_operand so that the entire chain of DECL_ARGUMENTS gets substituted. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk/11?

Re: [PATCH] c++: covariant reference return type [PR99664]

2021-07-16 Thread Jason Merrill via Gcc-patches
On 7/15/21 12:37 PM, Patrick Palka wrote: This implements the wording changes of DR 960 which clarifies that two reference types are covariant only if they're both lvalue references or both rvalue references. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? OK.

Re: [PATCH] c++: argument pack expansion inside constraint [PR100138]

2021-07-16 Thread Jason Merrill via Gcc-patches
On 7/15/21 12:56 PM, Patrick Palka wrote: On Sat, May 8, 2021 at 8:42 AM Jason Merrill wrote: On 5/7/21 12:33 PM, Patrick Palka wrote: This PR is about CTAD but the underlying problems are more general; CTAD is a good trigger for them because of the necessary substitution into constraints

[Bug testsuite/101468] [12 regression] new Wstringop-overflow tests failures since r12-2338

2021-07-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101468 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Assignee|unassigned at

[Bug middle-end/101468] [12 regression] new Wstringop-overflow tests failures since r12-2338

2021-07-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101468 --- Comment #1 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:94ba897be8b59ef5926eed4c77fd53812fb20add commit r12-2372-g94ba897be8b59ef5926eed4c77fd53812fb20add Author: Martin Sebor Date:

[Bug ipa/101257] [11/12 Regression] Maybe wrong code since IPA mod ref was introduced

2021-07-16 Thread greg.b.tucker at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101257 --- Comment #5 from Gregory Tucker --- (In reply to Andrew Pinski from comment #4) > (In reply to Gregory Tucker from comment #2) > > Created attachment 51165 [details] > > I think: > uint32_t *w = (uint32_t *) data; > > Should need the

[Bug middle-end/101475] New: missing -Wstringop-overflow storing a compound literal

2021-07-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101475 Bug ID: 101475 Summary: missing -Wstringop-overflow storing a compound literal Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH] c++: implement C++17 hardware interference size

2021-07-16 Thread Jonathan Wakely via Gcc-patches
On Fri, 16 Jul 2021 at 16:33, Jason Merrill wrote: > Adjusting them based on tuning would certainly simplify a significant use > case, perhaps the only reasonable use. Cases more concerned with ABI > stability probably shouldn't use them at all. And that would mean not > needing to worry about

[Bug debug/101470] Support -gline-tables-only

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101470 --- Comment #2 from Andrew Pinski --- (In reply to Tom de Vries from comment #0) > After realizing that clangs -gline-tables-only is an alias for -g1, I looked > at gcc's -g1 and found it does have line table info (since gcc 4.9), but > emits a

Re: [PATCH] c++: Allow constexpr references to non-static vars [PR100976]

2021-07-16 Thread Jason Merrill via Gcc-patches
On 7/15/21 5:14 PM, Marek Polacek wrote: The combination of DR 2481 and DR 2126 should allow us to do void f() { constexpr const int = 42; static_assert(r == 42); } because [expr.const]/4.7 now says that "a temporary object of non-volatile const-qualified literal type whose

[Bug tree-optimization/101474] SRA sometimes produces worse code with inline functions (seen with -fipa-icf sometimes)

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101474 Andrew Pinski changed: What|Removed |Added Summary|-fipa-icf generates worse |SRA sometimes produces

[Bug c/101474] New: -fipa-icf generates worse code for identical function

2021-07-16 Thread vegard.nossum at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101474 Bug ID: 101474 Summary: -fipa-icf generates worse code for identical function Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug bootstrap/101374] [12 Regression] bootstrap failure varpool.c:490:19: error: array subscript 'varpool_node[0]' is partly outside array bounds of 'varpool_node [0]' [-Werror=array-bounds]

2021-07-16 Thread abidh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101374 Hafiz Abid qadeer changed: What|Removed |Added CC||abidh at gcc dot gnu.org ---

[Bug libstdc++/100795] ranges::sample should not use std::sample directly

2021-07-16 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100795 --- Comment #7 from 康桓瑋 --- (In reply to Patrick Palka from comment #6) > (In reply to 康桓瑋 from comment #2) > > ranges::inplace_merge has the same issue: > > > > > > #include > > #include > > #include > > > > int main() { > > std::array

  1   2   3   >