[Bug lto/104237] [11 Regression] Emitted binary code changes when -g is enabled at -O1 -flto and optimize attribute since r11-3126-ga8f9b4c54cc35062

2022-01-28 Thread cnsun at uwaterloo dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104237 --- Comment #9 from Chengnian Sun --- Hi, Could you explain why the flag `-fcompare-debug` does not detect this bug? Is it because the bug is triggered with -flto and -fcompare-debug does not work with -flto? Thanks.

[Bug target/104219] [12 regression] riscv64 compiler build fails

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

[Bug target/104213] [12 Regression] bogus use-after-free in virtual dtor with -ffat-lto-objects on ARM

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104213 Andrew Pinski changed: What|Removed |Added CC||unlvsur at live dot com --- Comment

[Bug libstdc++/104190] arm-linux-gnueabi shows warnings of use-after-free of libstdc++?

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

[Bug tree-optimization/104265] Missed vectorization in 526.blender_r

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

[Bug c++/104266] Temporaries with protected destructor are erroneously permitted

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104266 --- Comment #3 from Andrew Pinski --- Here is another example: class X { protected: ~X(); friend struct Y; }; struct Y { X x = {}; }; int main() { Y b {}; } But unlike the previous example, this one is rejected by clang in C++14

[Bug c++/104266] Temporaries with protected destructor are erroneously permitted

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

[PATCH], PR 104253, Fix __ibm128 conversions on IEEE 128-bit system

2022-01-28 Thread Michael Meissner via Gcc-patches
Use correct names for __ibm128 if long double is IEEE 128-bit. If you are on a PowerPC system where the default long double is IEEE 128-bit, GCC will use the wrong names for some of the conversion functions for the __ibm128 type. What is happening is when the defult long double is IEEE 128-bit,

[Bug target/104268] z13: inefficient vec_popcnt for 16-bit for z13

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

[Bug debug/104277] New: [meta-bug] gstatement-frontiers causes fcompare-debug issues

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104277 Bug ID: 104277 Summary: [meta-bug] gstatement-frontiers causes fcompare-debug issues Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords:

[PATCH] c++: Reject union std::initializer_list [PR102434]

2022-01-28 Thread Marek Polacek via Gcc-patches
Weird things are going to happen if you define your std::initializer_list as a union. In this case, we crash in output_constructor_regular_field. Let's not allow such a definition in the first place. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? PR c++/102434

[Bug target/100930] PPC: Missing builtins for P9 vextsb2w, vextsb2w, vextsb2d, vextsh2d, vextsw2d

2022-01-28 Thread carll at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100930 Carl Love changed: What|Removed |Added CC||carll at gcc dot gnu.org --- Comment #3

[r12-6924 Regression] FAIL: libgomp.c++/pr86291.C execution test on Linux/x86_64

2022-01-28 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, c2b610e7c6c89fd422c5c31f01023bcddf3cf4a5 is the first bad commit commit c2b610e7c6c89fd422c5c31f01023bcddf3cf4a5 Author: Zhao Wei Liew Date: Fri Jan 28 13:36:39 2022 -0500 match.pd: Simplify 1 / X for integer X [PR95424] caused FAIL: gcc.dg/tree-ssa/divide-7.c

[Bug tree-optimization/80641] missed optimization with with std::vector resize in loop

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 --- Comment #15 from Andrew Pinski --- This is interesting: _48 = _149 + 18446744073709551612; // _149 - 4 _63 = _55 + _48; _18 = _63 - _55; _19 = _18 /[ex] 4; _20 = (long unsigned int) _19; if (_55 != _63) _18 should be the same as

[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

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

[Bug tree-optimization/28134] optimize redundant memset + assignment

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28134 Andrew Pinski changed: What|Removed |Added CC||Darrell.Wright at gmail dot com ---

[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

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

[Bug tree-optimization/104276] memset is not elimited when followed by a store loop writing to that memory location

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 Andrew Pinski changed: What|Removed |Added Summary|Fail to eliminate deadstore |memset is not elimited when

[Bug tree-optimization/104276] Fail to eliminate deadstore from vector constructor

2022-01-28 Thread Darrell.Wright at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 --- Comment #3 from Darrell Wright --- (In reply to Andrew Pinski from comment #2) > >clang is unable to remove the memset in code like > > I think you mean GCC there :). :) both are true. This optimization would remove the need for things

[Bug tree-optimization/104276] Fail to eliminate deadstore from vector constructor

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 --- Comment #2 from Andrew Pinski --- >clang is unable to remove the memset in code like I think you mean GCC there :).

[Bug tree-optimization/104276] Fail to eliminate deadstore from vector constructor

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 --- Comment #1 from Andrew Pinski --- Full testcase: #include #include #include #include #include #define SZ 4096 std::vector foo() { auto result = std::vector(SZ); int *ptr = result.data(); for (std::size_t n = 0; n < SZ; ++n) {

[Bug tree-optimization/104276] Fail to eliminate deadstore from vector constructor

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

Re: [PATCH 3/8] rs6000: Convert built-in constraints to form

2022-01-28 Thread Segher Boessenkool
On Fri, Jan 28, 2022 at 11:50:21AM -0600, Bill Schmidt wrote: > When introducing the new built-in support, I tried to match as many > existing error messages as possible. One common form was "argument X must > be a Y-bit unsigned literal". Another was "argument X must be a literal > between X'

[PATCH] AutoFDO: don't set param_early_inliner_max_iterations to 10.

2022-01-28 Thread Eugene Rozenfeld via Gcc-patches
param_early_inliner_max_iterations specifies the maximum number of nested indirect inlining iterations performed by early inliner. Normally, the default value is 1. For AutoFDO this parameter was also used as the number of iteration for its indirect call promotion loop and the default value was

[Bug tree-optimization/98026] optimization dependant on condition order

2022-01-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98026 --- Comment #5 from Andrew Macleod --- (In reply to Andrew Macleod from comment #4) > > void f4(signed int i,unsigned int j) { > > if (i > 100) return; > > if (j > i) return; > > > > if (j > 100) link_error(); > > if i is -2 (0xfffe)

[Bug c++/104276] New: Fail to eliminate deadstore from vector constructor

2022-01-28 Thread Darrell.Wright at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104276 Bug ID: 104276 Summary: Fail to eliminate deadstore from vector constructor Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/98026] optimization dependant on condition order

2022-01-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98026 --- Comment #4 from Andrew Macleod --- > void f4(signed int i,unsigned int j) { > if (i > 100) return; > if (j > i) return; > > if (j > 100) link_error(); if i is -2 (0xfffe) and j is 0xff (-1) then link error cant be

Re: [PATCH 1/8] rs6000: More factoring of overload processing

2022-01-28 Thread Segher Boessenkool
On Fri, Jan 28, 2022 at 03:19:48PM -0600, Bill Schmidt wrote: > On 1/28/22 1:11 PM, Segher Boessenkool wrote: > > On Fri, Jan 28, 2022 at 11:50:19AM -0600, Bill Schmidt wrote: > >> + and the generic code will issue the appropriate error message. Skip > >> + this test for functions where

[Bug analyzer/103872] testcase fail in gcc.dg/analyzer/pr103526.c on riscv64-unknown-elf-gcc

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103872 Andrew Pinski changed: What|Removed |Added Target|riscv64-unknown-elf |riscv64-unknown-elf

[Bug analyzer/103872] testcase fail in gcc.dg/analyzer/pr103526.c on riscv64-unknown-elf-gcc

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103872 Andrew Pinski changed: What|Removed |Added CC||danglin at gcc dot gnu.org --- Comment

[Bug analyzer/104273] FAIL: gcc.dg/analyzer/pr103526.c (test for bogus messages, line 31)

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104273 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug analyzer/104270] -Wanalyzer-use-of-uninitialized-value is incorrectly suppressed by -ftrivial-auto-var-init=

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

[Bug c++/104255] parsing function signature fails when it uses a function parameter outside of an unevaluated context

2022-01-28 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104255 --- Comment #4 from qingzhe huang --- (In reply to Patrick Palka from comment #2) > > error: use of parameter outside function body before ‘)’ token > > due to 'e' being used outside of an unevaluated context within the signature > of the

gcc-10-20220128 is now available

2022-01-28 Thread GCC Administrator via Gcc
Snapshot gcc-10-20220128 is now available on https://gcc.gnu.org/pub/gcc/snapshots/10-20220128/ 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

[Bug target/104253] libgcc missing __floatdiif

2022-01-28 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104253 Michael Meissner changed: What|Removed |Added Attachment #52306|0 |1 is obsolete|

[Bug fortran/101135] Load of null pointer when passing absent assumed-shape array argument for an optional dummy argument

2022-01-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101135 --- Comment #4 from anlauf at gcc dot gnu.org --- Created attachment 52311 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52311=edit Patch that regtests ok. The patch suggested by the reporter is rather close to this one. We need to

Re: [PATCH] sh-linux fix target cpu

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/12/2022 2:02 AM, Yoshinori Sato wrote: sh-linux not supported any SH1 and SH2a little-endian. Add exceptios it. gcc/ChangeLog: * config/sh/t-linux (MULTILIB_EXCEPTIONS): Add m1, mb/m1 and m2a. Thanks.  Technically this is probably too late to make gcc-12 as we're in stage4

[Bug tree-optimization/103514] Missing XOR-EQ-AND Optimization

2022-01-28 Thread navidr at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103514 Navid Rahimi changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [PATCH] tree-optimization/103514 Missing XOR-EQ-AND Optimization

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/5/2022 1:12 PM, Navid Rahimi via Gcc-patches wrote: Hi GCC community, This patch will add the missed pattern described in bug 103514 [1] to the match.pd. [1] includes proof of correctness for the patch too. PR tree-optimization/103514 * match.pd (a & b) ^ (a == b) -> !(a | b):

[Bug tree-optimization/103514] Missing XOR-EQ-AND Optimization

2022-01-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103514 --- Comment #3 from CVS Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:cb3ac1985a5332fa811a62844adb33ca140bd4ba commit r12-6928-gcb3ac1985a5332fa811a62844adb33ca140bd4ba Author: Navid Rahimi Date: Fri

Re: [PATCH][V2] Add mold detection for libs.

2022-01-28 Thread Jonathan Wakely via Gcc-patches
On Fri, 28 Jan 2022 at 18:17, Jeff Law wrote: > > > > On 1/24/2022 4:11 AM, Martin Liška wrote: > > On 1/21/22 17:54, Jonathan Wakely wrote: > >> Yes, OK (but please CC the libstdc++ list, not just me). > > > > Hello. > > > > Sorry for that. Anyway, I would like to install the extended version > >

Re: [PATCH][GCC13] Don't force side effects for hardware vector element broadcast

2022-01-28 Thread Maciej W. Rozycki
On Fri, 28 Jan 2022, Richard Biener wrote: > > that's not what it does. It treats it like > > > > float tem = f; > > return x + { tem, tem, tem, tem }; > > > > avoiding, like for x + (1.0f + f) creating > > > > return x + { 1.0+f, 1.0+f, 1.0+f ...} > > > > it's more CSE than volatile

[Bug testsuite/99175] FAIL: g++.dg/modules/bad-mapper-1.C -std=c++17 (test for errors, line )

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99175 Andrew Pinski changed: What|Removed |Added Host|hppa*-*-hpux* | Build|hppa*-*-hpux*

Re: [PATCH 2/8] rs6000: Don't #ifdef "short" built-in names

2022-01-28 Thread Bill Schmidt via Gcc-patches
On 1/28/22 2:32 PM, Segher Boessenkool wrote: > On Fri, Jan 28, 2022 at 11:50:20AM -0600, Bill Schmidt wrote: >> It was recently pointed out that we get anomalous behavior when using >> __attribute__((target)) to select a CPU. As an example, when building for >> -mcpu=power8 but using

Re: [PATCH 1/8] rs6000: More factoring of overload processing

2022-01-28 Thread Bill Schmidt via Gcc-patches
On 1/28/22 1:11 PM, Segher Boessenkool wrote: > On Fri, Jan 28, 2022 at 11:50:19AM -0600, Bill Schmidt wrote: >> This patch continues the refactoring started with r12-6014. > ab3f5b71dc6e > >> + and the generic code will issue the appropriate error message. Skip >> + this test for

[Bug fortran/104228] [9/10/11/12 Regression] ICE in df_install_ref, at df-scan.cc:2294 since r8-3589-g707905d0773e5a8e

2022-01-28 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104228 Mikael Morin changed: What|Removed |Added CC||mikael at gcc dot gnu.org

[Bug c++/104177] coroutine frame is not being allocated with the correct alignment

2022-01-28 Thread ldalessandro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104177 --- Comment #14 from Luke Dalessandro --- Thanks for the information Iain. Is there something short-term where gcc could provide an "unimplemented" failure or warning diagnostic for requests for coroutine frames with extended alignment? This

[Bug target/104253] libgcc missing __floatdiif

2022-01-28 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104253 --- Comment #8 from Michael Meissner --- Yes, you are right. I didn't remember which functions were generated by the compiler, but I just did all of the conversion functions.

Re: [PATCH v2] preprocessor: -Wbidi-chars and UCNs [PR104030]

2022-01-28 Thread Marek Polacek via Gcc-patches
On Fri, Jan 28, 2022 at 05:12:41PM +0100, Martin Liška wrote: > On 1/28/22 16:26, Marek Polacek wrote: > > On Fri, Jan 28, 2022 at 04:08:18PM +0100, Martin Liška wrote: > > > On 1/28/22 15:59, Marek Polacek wrote: > > > > On Fri, Jan 28, 2022 at 02:53:16PM +0100, Martin Liška wrote: > > > > > On

[Bug ipa/104275] Os causes some functions which are no-ops not to be inlined in some cases

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104275 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |ipa CC|

[PATCH v2] c++: ICE with auto[] and VLA [PR102414]

2022-01-28 Thread Marek Polacek via Gcc-patches
On Thu, Jan 27, 2022 at 10:17:00PM -0500, Jason Merrill wrote: > On 1/27/22 20:02, Marek Polacek wrote: > > @@ -11159,8 +11159,16 @@ create_array_type_for_decl (tree name, tree type, > > tree size, location_t loc) > > /* Figure out the index type for the array. */ > > if (size) > > -

[Bug c++/104177] coroutine frame is not being allocated with the correct alignment

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

[Bug tree-optimization/104275] New: Os does not apply return value optimization while O2 and O3 does

2022-01-28 Thread andij.cr at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104275 Bug ID: 104275 Summary: Os does not apply return value optimization while O2 and O3 does Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/92752] [9/10/11 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects

2022-01-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752 Patrick Palka changed: What|Removed |Added Summary|[9/10/11/12 Regression] |[9/10/11 Regression] Bogus

[Bug c++/92752] [9/10/11/12 Regression] Bogus "ignored qualifiers" warning on const-qualified pointer-to-member-function objects

2022-01-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92752 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:e971990cbda091b4caf5e1a5bded5121068934e4 commit r12-6926-ge971990cbda091b4caf5e1a5bded5121068934e4 Author: Patrick Palka Date:

Re: [PATCH 2/8] rs6000: Don't #ifdef "short" built-in names

2022-01-28 Thread Segher Boessenkool
On Fri, Jan 28, 2022 at 11:50:20AM -0600, Bill Schmidt wrote: > It was recently pointed out that we get anomalous behavior when using > __attribute__((target)) to select a CPU. As an example, when building for > -mcpu=power8 but using __attribute__((target("mcpu=power10")), it is legal > to call

[Bug target/104253] libgcc missing __floatdiif

2022-01-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104253 --- Comment #7 from Jakub Jelinek --- Conversion from __ibm128 to float/double etc. are done differently, and for si <-> if named tf we want to use di instead. So, shouldn't we just add + set_conv_libfunc (sfix_optab, DImode, mode,

[Bug target/101891] Adjust -fzero-call-used-regs to always use XOR

2022-01-28 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101891 qinzhao at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2022-01-28

Re: [PATCH] Disable -fsplit-stack support on non-glibc targets

2022-01-28 Thread Iain Sandoe
> On 25 Jan 2022, at 15:27, David Edelsohn wrote: > > This patch broke bootstrap on AIX. It may have broken Darwin. As you anticipated, it did : fixed as below (tested on powerpc-darwin9, pushed to master). thanks Iain [pushed] Darwin, PPC: Fix bootstrap after GLIBC version changes. A

Re: [PATCH 1/8] rs6000: More factoring of overload processing

2022-01-28 Thread Segher Boessenkool
On Fri, Jan 28, 2022 at 11:50:19AM -0600, Bill Schmidt wrote: > This patch continues the refactoring started with r12-6014. ab3f5b71dc6e > + and the generic code will issue the appropriate error message. Skip > + this test for functions where we don't fully describe all the possible > +

[Bug analyzer/104274] New: FAIL: gcc.dg/analyzer/pr97029.c (test for excess errors)

2022-01-28 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104274 Bug ID: 104274 Summary: FAIL: gcc.dg/analyzer/pr97029.c (test for excess errors) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug analyzer/104273] New: FAIL: gcc.dg/analyzer/pr103526.c (test for bogus messages, line 31)

2022-01-28 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104273 Bug ID: 104273 Summary: FAIL: gcc.dg/analyzer/pr103526.c (test for bogus messages, line 31) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104255] parsing function signature fails when it uses a function parameter outside of an unevaluated context

2022-01-28 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104255 --- Comment #3 from qingzhe huang --- (In reply to Patrick Palka from comment #2) > The error message is obscure, but it seems what GCC has issue with here is > the use of the function parameter seq2 in the trailing return type occurring >

Re: [PATCH] PR101260 regcprop: Add mode change check for copy reg

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/21/2022 9:52 AM, Andreas Krebbel via Gcc-patches wrote: When propagating a multi-word register into an access with a smaller mode the can_change_mode backend hook is already consulted for the original register. This however is also required for the intermediate copy in copy_regno which

[Bug testsuite/70230] 11 test regressions when building GCC 6 with --enable-default-ssp

2022-01-28 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70230 Jeffrey A. Law changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2022-01-28 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 95424, which changed state. Bug 95424 Summary: Failure to optimize division with numerator of 1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95424 What|Removed |Added

[Bug tree-optimization/95424] Failure to optimize division with numerator of 1

2022-01-28 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95424 Jeffrey A. Law changed: What|Removed |Added CC||law at gcc dot gnu.org

[Bug fortran/104272] New: finalizer gets called during allocate

2022-01-28 Thread kai.germaschewski at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104272 Bug ID: 104272 Summary: finalizer gets called during allocate Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug target/104253] libgcc missing __floatdiif

2022-01-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104253 --- Comment #6 from Jakub Jelinek --- (In reply to Michael Meissner from comment #4) > Created attachment 52306 [details] > Patch to use the correct names for __ibm128 converts if long double is IEEE > 128-bit > > The problem was internally

Re: [PATCH v3] match.pd: Simplify 1 / X for integer X [PR95424]

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/19/2022 11:42 AM, Zhao Wei Liew via Gcc-patches wrote: This patch implements an optimization for the following C++ code: int f(int x) { return 1 / x; } int f(unsigned int x) { return 1 / x; } Before this patch, x86-64 gcc -std=c++20 -O3 produces the following assembly:

[Bug tree-optimization/95424] Failure to optimize division with numerator of 1

2022-01-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95424 --- Comment #7 from CVS Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:c2b610e7c6c89fd422c5c31f01023bcddf3cf4a5 commit r12-6924-gc2b610e7c6c89fd422c5c31f01023bcddf3cf4a5 Author: Zhao Wei Liew Date: Fri

[Bug tree-optimization/104269] [12 Regression] Bogus -Wuse-after-free seen in xen

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104269 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/102204] OpenMP offload map type restriction

2022-01-28 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102204 --- Comment #3 from Ye Luo --- I tried today's main 3f0fcda37f58d4108feb67de08f181a32bcb6388. This issue persists. Any chance this will be resolved in 12 release?

Re: [PATCH][V2] Add mold detection for libs.

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/24/2022 4:11 AM, Martin Liška wrote: On 1/21/22 17:54, Jonathan Wakely wrote: Yes, OK (but please CC the libstdc++ list, not just me). Hello. Sorry for that. Anyway, I would like to install the extended version of the patch that touches all libraries. Ready to be installed? It

[Bug testsuite/99175] FAIL: g++.dg/modules/bad-mapper-1.C -std=c++17 (test for errors, line )

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99175 Andrew Pinski changed: What|Removed |Added Component|c++ |testsuite --- Comment #3 from Andrew

[Bug c++/99175] FAIL: g++.dg/modules/bad-mapper-1.C -std=c++17 (test for errors, line )

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99175 Andrew Pinski changed: What|Removed |Added Component|testsuite |c++ --- Comment #2 from Andrew Pinski

Re: [PATCH] c++: bogus warning with value init of const pmf [PR92752]

2022-01-28 Thread Jason Merrill via Gcc-patches
On 1/28/22 12:54, Patrick Palka wrote: Here we're emitting a -Wignored-qualifiers warning for an intermediate compiler-generated cast of 0 to 'method-type* const' as part of value initialization of a const pmf. This patch suppresses the warning by stripping cv-quals from this pointer type

Re: [PATCH] Fix multiple_of_p behavior with NOP_EXPR

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/24/2022 7:46 AM, Richard Biener via Gcc-patches wrote: We were passing down the original type to recursive invocations of multiple_of_p for say (int)(unsigned * unsigned). Bootstrap and regtest pending on x86_64-unknown-linux-gnu. 2022-01-24 Richard Biener * fold-const.cc

[Bug tree-optimization/104263] [10/11 Regression] '-fcompare-debug' failure (length) w/ -O2 -fnon-call-exceptions -fno-inline-small-functions since r10-3575-g629387a6586a7531

2022-01-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104263 Jakub Jelinek changed: What|Removed |Added Summary|[10/11/12 Regression] |[10/11 Regression]

Re: [PATCH] Reduce multiple_of_p uses

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/24/2022 7:45 AM, Richard Biener via Gcc-patches wrote: There are a few cases where we know we're dealing with (poly-)integer constants, so remove the use of multiple_of_p in those cases to make the PR100499 fix less impactful. Bootstrapped and tested on x86_64-unknown-linux-gnu. OK?

Re: [PATCH] store-merging: Fix up a -fcompare-debug bug in get_status_for_store_merging [PR104263]

2022-01-28 Thread Richard Biener via Gcc-patches
> Am 28.01.2022 um 18:36 schrieb Jeff Law : > >  > >> On 1/28/2022 9:31 AM, Jakub Jelinek via Gcc-patches wrote: >> Hi! >> >> As mentioned in the PRthe following testcase fails, because the last >> stmt of a bb with -g is a debug stmt and get_status_for_store_merging >> uses

[PATCH, rs6000] Clean up Power10 fusion options

2022-01-28 Thread Pat Haugen via Gcc-patches
Mark Power10 fusion option undocumented and remove sub-options. Bootstrapped and regression tested on powerpc64le(Power10). Ok for master? -Pat 2022-01-28 Pat Haugen gcc/ * config/rs6000/rs6000.opt (mpower10-fusion): Mark Undocumented. (mpower10-fusion-ld-cmpi,

[Patch]middle-end: updating the reg use in exit block for -fzero-call-used-regs [PR100775]

2022-01-28 Thread Qing Zhao via Gcc-patches
Hi, PR 100775 ( ICE: in df_exit_block_bitmap_verify, at df-scan.c:4164 with -mthumb -fzero-call-used-regs=used) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100775 Although the ICE only happens on arm, but this is a bug in the middle end. So, I think this bug has higher priority, Need to be

[Bug tree-optimization/104263] [10/11/12 Regression] '-fcompare-debug' failure (length) w/ -O2 -fnon-call-exceptions -fno-inline-small-functions since r10-3575-g629387a6586a7531

2022-01-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104263 --- Comment #10 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a591c71b41e18e4ff86852a974592af4962aef57 commit r12-6923-ga591c71b41e18e4ff86852a974592af4962aef57 Author: Jakub Jelinek Date:

[Bug tree-optimization/104269] [12 Regression] Bogus -Wuse-after-free seen in xen

2022-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104269 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug testsuite/99175] FAIL: g++.dg/modules/bad-mapper-1.C -std=c++17 (test for errors, line )

2022-01-28 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99175 John David Anglin changed: What|Removed |Added Host|hppa2.0w-hp-hpux11.11 |hppa*-*-hpux*

Re: [PATCH] [rtl/cprop_hardreg] Don't propagate for a more expensive reg-reg move.

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/24/2022 6:31 PM, liuhongt via Gcc-patches wrote: For i386, it enables optimization like: vmovd %xmm0, %edx - vmovd %xmm0, %eax + movl%edx, %eax Bootstrapped and regtested on CLX for both x86_64-pc-linux-gnu{-m32,} and x86_64-pc-linux-gnu{-m32\

[PATCH] c++: bogus warning with value init of const pmf [PR92752]

2022-01-28 Thread Patrick Palka via Gcc-patches
Here we're emitting a -Wignored-qualifiers warning for an intermediate compiler-generated cast of 0 to 'method-type* const' as part of value initialization of a const pmf. This patch suppresses the warning by stripping cv-quals from this pointer type before performing the cast. Bootstrapped and

[Bug tree-optimization/104269] [12 Regression] Bogus -Wuse-after-free seen in xen

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

[PATCH 8/8] rs6000: Fix some missing built-in attributes [PR104004]

2022-01-28 Thread Bill Schmidt via Gcc-patches
PR104004 caught some misses on my part in converting to the new built-in function infrastructure. In particular, I forgot to mark all of the "nosoft" built-ins, and one of those should also have been marked "no32bit". Bootstrapped and tested on powerpc64le-linux-gnu with no regressions. Is this

[PATCH 7/8] rs6000: vec_neg built-ins wrongly require POWER8

2022-01-28 Thread Bill Schmidt via Gcc-patches
As the subject states. Fixing this is accomplished by moving the built-ins to the correct stanzas, [altivec] and [vsx]. Bootstrapped and tested on powerpc64le-linux-gnu with no regressions. Is this okay for trunk? Thanks, Bill 2022-01-27 Bill Schmidt gcc/ *

[PATCH 6/8] rs6000: Remove -m[no-]fold-gimple flag [PR103686]

2022-01-28 Thread Bill Schmidt via Gcc-patches
The -m[no-]fold-gimple flag was really intended primarily for internal testing while implementing GIMPLE folding for rs6000 vector built-in functions. It ended up leaking into other places, causing problems such as PR103686 identifies. Let's remove it. There are a number of tests in the

[PATCH 5/8] rs6000: Fix LE code gen for vec_cnt[lt]z_lsbb [PR95082]

2022-01-28 Thread Bill Schmidt via Gcc-patches
These built-ins were misimplemented as always having big-endian semantics. Bootstrapped and tested on powerpc64le-linux-gnu with no regressions. Is this okay for trunk? Thanks, Bill 2022-01-18 Bill Schmidt gcc/ PR target/95082 * config/rs6000/rs6000-builtin.cc

[PATCH 3/8] rs6000: Convert built-in constraints to form

2022-01-28 Thread Bill Schmidt via Gcc-patches
When introducing the new built-in support, I tried to match as many existing error messages as possible. One common form was "argument X must be a Y-bit unsigned literal". Another was "argument X must be a literal between X' and Y', inclusive". During reviews, Segher requested that I

[PATCH 2/8] rs6000: Don't #ifdef "short" built-in names

2022-01-28 Thread Bill Schmidt via Gcc-patches
It was recently pointed out that we get anomalous behavior when using __attribute__((target)) to select a CPU. As an example, when building for -mcpu=power8 but using __attribute__((target("mcpu=power10")), it is legal to call __builtin_vec_mod, but not vec_mod, even though these are equivalent.

Re: RFA: libiberty: Fix infinite recursion in rust demangler (PRs 98886 and 99935)

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/26/2022 8:29 AM, Nick Clifton via Gcc-patches wrote: Hi Guys, I would like to propose the patch below to fix a couple of sources of infinite recursion in libiberty's rust demangling code. This patch is based upon the one submitted for PR 99935, but extended to cope with the

[PATCH 1/8] rs6000: More factoring of overload processing

2022-01-28 Thread Bill Schmidt via Gcc-patches
This patch continues the refactoring started with r12-6014. I had previously noted that the resolve_vec* routines can be further simplified by processing the argument list earlier, so that all routines can use the arrays of arguments and types. I found that this was useful for some of the

[PATCH 0/8] rs6000: Built-in function cleanups and bug fixes

2022-01-28 Thread Bill Schmidt via Gcc-patches
Hi! This is a resubmission of some patches and a new submission of others. Patches 1, 3, and 4 finish up the pending clean-up work for the new built-in infrastructure support. Patches 2 and 5-8 fix a variety of bugs not specific to the new infrastructure. I'm submitting these as a group

Re: [PATCH] testsuite/70230 - fix failures with default SSP

2022-01-28 Thread Jeff Law via Gcc-patches
On 1/26/2022 6:42 PM, Allan McRae via Gcc-patches wrote: Configuring with --enable-default-ssp triggers various testsuite failures. These contain asm statements that are not compatible with -fstack-protector. Adding -fno-stack-protector to dg-options to work around this issue. Tested on

[Bug testsuite/70230] 11 test regressions when building GCC 6 with --enable-default-ssp

2022-01-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70230 --- Comment #6 from CVS Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:90c31ff339015ddd89ac519656fbd23a36ee6271 commit r12-6922-g90c31ff339015ddd89ac519656fbd23a36ee6271 Author: Allan McRae Date: Fri Jan

  1   2   3   >