RE: [PATCH] [X86_64]: Enable support for next generation AMD Zen3 CPU

2020-12-04 Thread Kumar, Venkataramanan via Gcc-patches
[AMD Public Use] Hi Honza, > -Original Message- > From: Jan Hubicka > Sent: Saturday, December 5, 2020 1:06 AM > To: Uros Bizjak > Cc: Kumar, Venkataramanan ; gcc- > patc...@gcc.gnu.org > Subject: Re: [PATCH] [X86_64]: Enable support for next generation AMD > Zen3 CPU > > [CAUTION:

[Bug tree-optimization/91191] vrp and boolean arguments

2020-12-04 Thread law at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91191 --- Comment #7 from Jeffrey A. Law --- If you're V_C_E-ing to a narrower type, you just ignore the bits outside the target type, it's a lot like a narrowing subreg in the RTL world. I don't know what the semantics are for the widening case.

[Bug c++/98151] integer output gives different results with -O2 and -O3

2020-12-04 Thread bradley_bell at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98151 --- Comment #2 from Brad Bell --- That fixed my test result. Sorry I missed that. Thanks.

Re: [PATCH v2] c++: ICE with switch and scoped enum bit-fields [PR98043]

2020-12-04 Thread Marek Polacek via Gcc-patches
On Wed, Dec 02, 2020 at 09:50:33PM -0500, Jason Merrill wrote: > On 12/2/20 6:18 PM, Marek Polacek wrote: > > In this testcase we are crashing trying to gimplify a switch, because > > the types of the switch condition and case constants have different > > TYPE_PRECISIONs. > > > > This started

[PATCH] c-family: Fix hang with -Wsequence-point [PR98126]

2020-12-04 Thread Marek Polacek via Gcc-patches
verify_sequence_points uses verify_tree to recursively walk the subexpressions of an expression, and while recursing, it also keeps lists of expressions found after/before a sequence point. For a large expression, the list can grow significantly. And merge_tlist is at least N(n^2): for a list of

Re: [PATCH] c++: ICE with -fsanitize=vptr and constexpr dynamic_cast [PR98103]

2020-12-04 Thread Marek Polacek via Gcc-patches
On Wed, Dec 02, 2020 at 09:01:48PM -0500, Jason Merrill wrote: > On 12/2/20 6:18 PM, Marek Polacek wrote: > > -fsanitize=vptr initializes all vtable pointers to null so that it can > > catch invalid calls; see cp_ubsan_maybe_initialize_vtbl_ptrs. That > > means that evaluating a vtable reference

[Bug c++/98101] ICE in mark_reachable_handlers, at tree-eh.c:4033

2020-12-04 Thread sss--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98101 scott snyder changed: What|Removed |Added CC||s...@li-snyder.org --- Comment #3 from

[Bug c++/98151] integer output gives different results with -O2 and -O3

2020-12-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98151 Andrew Pinski changed: What|Removed |Added Host|Linux |

[Bug c++/98151] New: integer output gives different results with -O2 and -O3

2020-12-04 Thread bradley_bell at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98151 Bug ID: 98151 Summary: integer output gives different results with -O2 and -O3 Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal

Re: how to get the library DECL for a built-in function

2020-12-04 Thread Martin Sebor via Gcc
On 12/4/20 4:33 PM, Martin Sebor wrote: I'm looking for a way to get the FUNCTION_DECL for the library (i.e., non-built-in) form of a function given the corresponding built-in DECL.  Is there an API I can all with either the built -in DECL or its code to get it in the middle end? In C, what I'm

Re: Merge from trunk to gccgo branch

2020-12-04 Thread Ian Lance Taylor via Gcc-patches
I've now merged trunk revision 918a5b84a2c51dc9d011d39461cc276e6558069d to the gccgo branch. Ian

[Bug c++/98150] Segfault from statement expression in lambda noexcept

2020-12-04 Thread ndkrempel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98150 --- Comment #2 from Nick Krempel --- Realised it doesn't need C++20 and was able to repro back in gcc 6.1 too.

[Bug c++/98150] Segfault from statement expression in lambda noexcept

2020-12-04 Thread ndkrempel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98150 --- Comment #1 from Nick Krempel --- The following slightly simpler code also repros the issue: int main() { []()noexcept(({constexpr int&=1;})); }

[Bug c++/98122] [10 Regression] Accessing union member through pointer-to-member is not a constant expression

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

[Bug tree-optimization/96226] Failure to optimize shift+not to rotate

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96226 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:625e002396f7d0108f845bfba6a6f4f4fcadad05 commit r11-5756-g625e002396f7d0108f845bfba6a6f4f4fcadad05 Author: Jakub Jelinek Date:

[Bug c++/98122] [10/11 Regression] Accessing union member through pointer-to-member is not a constant expression

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98122 --- Comment #4 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:43e84ce7d62be121445e17cc0ee009a81fb285d7 commit r11-5755-g43e84ce7d62be121445e17cc0ee009a81fb285d7 Author: Jakub Jelinek Date:

[Bug c++/98150] New: Segfault from statement expression in lambda noexcept

2020-12-04 Thread ndkrempel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98150 Bug ID: 98150 Summary: Segfault from statement expression in lambda noexcept Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

how to get the library DECL for a built-in function

2020-12-04 Thread Martin Sebor via Gcc
I'm looking for a way to get the FUNCTION_DECL for the library (i.e., non-built-in) form of a function given the corresponding built-in DECL. Is there an API I can all with either the built -in DECL or its code to get it in the middle end? In C, what I'm looking for appears to be

Re: [PATCH] Hurd: Enable ifunc by default

2020-12-04 Thread Samuel Thibault via Gcc-patches
Ping? Samuel Thibault, le dim. 08 nov. 2020 23:52:51 +0100, a ecrit: > The binutils bugs seem to have been fixed. > > 2020-11-08 Samuel Thibault > > gcc/ > * config.gcc: Enable default_gnu_indirect_function in *-*-gnu* > target (but not *-*-kfreebsd*-gnu |

libgo patch committed: Update type descriptor name in fieldtrack C code

2020-12-04 Thread Ian Lance Taylor via Gcc-patches
This libgo patch updates the type descriptor name in the fieldtrack C support code. We were using the old name, but nothing noticed because it is a weak reference that is permitted to be nil, so that it works with code that does not use the field tracking library. Bootstrapped and ran Go

[Bug c++/93083] [C++20] copy deduction rejected when doing CTAD for NTTP

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93083 --- Comment #6 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:a95753214b55d21e5b44eeb098cccf88d44c94dd commit r11-5752-ga95753214b55d21e5b44eeb098cccf88d44c94dd Author: Jason Merrill Date:

[pushed] c++: Fix deduction from auto template parameter [PR93083]

2020-12-04 Thread Jason Merrill via Gcc-patches
The check in do_class_deduction to handle passing one class placeholder template parm as an argument for itself needed to be extended to also handle equivalent parms from other templates. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: PR c++/93083 * pt.c

Re: [PATCH 2/2] c++: Normalize nested-requirements twice at parse time [PR97093]

2020-12-04 Thread Jason Merrill via Gcc-patches
On 12/4/20 4:33 PM, Patrick Palka wrote: The re-normalization performed from diagnose_nested_requirement doesn't always work because we may have already lost the necessary template context that determines the set of in-scope template parameters used by the nested-requirement. This leads to

Re: [PATCH 1/2 v2] c++: Distinguish unsatisfaction vs errors during satisfaction [PR97093]

2020-12-04 Thread Jason Merrill via Gcc-patches
On 12/4/20 4:33 PM, Patrick Palka wrote: I've convinced myself to do away with the whole diagnose_requires_expr / tsubst_requires_expr consolidation, since that part is just a pure refactoring change and the added overloadedness of the flags is not ideal. This simplifies the patch considerably.

[Bug libfortran/98129] Failure on reading big chunk of /dev/urandom

2020-12-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129 --- Comment #11 from anlauf at gcc dot gnu.org --- (In reply to Thomas Koenig from comment #10) > Seems like that, if nbyte <= MAX_CHUNK, we do not take account of the > possibility of a short read. Yes, that seems to be the better/right place.

gcc-9-20201204 is now available

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

[Bug fortran/95342] [9/10/11 Regression] ICE in gfc_match_subroutine, at fortran/decl.c:7913

2020-12-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95342 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug fortran/95342] [9/10/11 Regression] ICE in gfc_match_subroutine, at fortran/decl.c:7913

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95342 --- Comment #7 from CVS Commits --- The releases/gcc-9 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:34e72e050bf4e23689af7061f6381b95339eb7fa commit r9-9099-g34e72e050bf4e23689af7061f6381b95339eb7fa Author: Harald Anlauf

[Bug lto/98145] gcc with nvptx offloading on Windows: lto-wrapper can't find accel/nvptx-none/mkoffload

2020-12-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98145 --- Comment #2 from Brecht Sanders --- Did a bit more digging... Seems COMPILER_PATH uses ';' as separator on Windows, not ':'. So besides the .exe issue parse_env_var() also needs to separate the list by a different separator. Something like

[Bug libfortran/98129] Failure on reading big chunk of /dev/urandom

2020-12-04 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129 --- Comment #10 from Thomas Koenig --- (In reply to anlauf from comment #9) > The patch seems to regtest ok, but certainly needs some wider testing. Actually, I think the bug is in io/unix.c:raw_read. That should take care of repeating the

[Bug fortran/95342] [9/10/11 Regression] ICE in gfc_match_subroutine, at fortran/decl.c:7913

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95342 --- Comment #6 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:316a185ee29c9e6ec060762e76d25b64c60fd665 commit r10-9122-g316a185ee29c9e6ec060762e76d25b64c60fd665 Author: Harald Anlauf

Re: [committed] Fix non-unique testnames

2020-12-04 Thread Jeff Law via Gcc-patches
On 12/4/20 2:55 PM, Mike Stump wrote: > On Nov 30, 2020, at 8:00 AM, Jeff Law via Gcc-patches > wrote: >> This patch fixes a handful of tests with non-unique names which confuse >> the living hell out of compare_tests, particularly if one of two tests >> [x]fail while the other is [x]pass

[Bug libfortran/98129] Failure on reading big chunk of /dev/urandom

2020-12-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |NEW --- Comment #9 from

[Bug c++/98149] New: missing spelling hint for misspelled calls to member functions

2020-12-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98149 Bug ID: 98149 Summary: missing spelling hint for misspelled calls to member functions Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

Re: [committed] Fix non-unique testnames

2020-12-04 Thread Mike Stump via Gcc-patches
On Nov 30, 2020, at 8:00 AM, Jeff Law via Gcc-patches wrote: > > This patch fixes a handful of tests with non-unique names which confuse > the living hell out of compare_tests, particularly if one of two tests > [x]fail while the other is [x]pass which compare_tests will flag as a > regression

[PATCH 2/2] c++: Normalize nested-requirements twice at parse time [PR97093]

2020-12-04 Thread Patrick Palka via Gcc-patches
The re-normalization performed from diagnose_nested_requirement doesn't always work because we may have already lost the necessary template context that determines the set of in-scope template parameters used by the nested-requirement. This leads to normalization producing atoms that have

[PATCH 1/2 v2] c++: Distinguish unsatisfaction vs errors during satisfaction [PR97093]

2020-12-04 Thread Patrick Palka via Gcc-patches
During satisfaction, the flag info.noisy() controls three things: whether to diagnose ill-formed satisfaction (such as the satisfaction value of an atom being non-bool or non-constant); whether to diagnose unsatisfaction; and whether to bypass the satisfaction cache. The flag turns out to be too

[Bug libfortran/98129] Failure on reading big chunk of /dev/urandom

2020-12-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129 --- Comment #8 from anlauf at gcc dot gnu.org --- Created attachment 49687 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49687=edit Untested patch (proof of concept) Here's a possible patch that retries after short reads. Not regtested.

Re: [PATCH] c++: Distinguish unsatisfaction vs errors during satisfaction [PR97093]

2020-12-04 Thread Patrick Palka via Gcc-patches
On Thu, 3 Dec 2020, Jason Merrill wrote: > On 12/3/20 9:24 AM, Patrick Palka wrote: > > During satisfaction, the flag info.noisy() controls three things: > > whether to diagnose fatal errors (such as the satisfaction value of an > > atom being non-bool); whether to diagnose unsatisfaction; and

[Bug tree-optimization/91191] vrp and boolean arguments

2020-12-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91191 --- Comment #6 from Andrew Macleod --- and when the precision is different what? assume 0's for the missing bits? If we allow and want that behaviour, we should change the documentation to reflect that...

Re: [PATCH] c++: Fix constexpr access to union member through pointer-to-member [PR98122]

2020-12-04 Thread Jason Merrill via Gcc-patches
On 12/4/20 12:27 PM, Jakub Jelinek wrote: Hi! We currently incorrectly reject the first testcase, because cxx_fold_indirect_ref_1 doesn't attempt to handle UNION_TYPEs. As the second testcase shows, it isn't that easy, because I believe we need to take into account the active member and prefer

[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

2020-12-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96675 --- Comment #6 from Marek Polacek --- (In reply to Giorgio Audrito from comment #5) > I add that a very similar problem happens with -Wtype-limits, I found this > minimal example: > > template > struct foo { > bool bar(unsigned y) { >

[Bug c++/98130] [11 regression] placement new fails on webkit-gtk-2.28.4 since r11-4745-g58c9de46541ade79

2020-12-04 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98130 --- Comment #14 from Sergei Trofimovich --- The gcc patch also fixes original liferea+webkit-gtk-2.28.4 crash. Thank you!

Re: [PATCH RFA] vec: Simplify use with C++11 range-based 'for'.

2020-12-04 Thread Jason Merrill via Gcc-patches
On 12/4/20 3:39 AM, Richard Biener wrote: On Thu, Dec 3, 2020 at 10:46 PM Jeff Law via Gcc-patches wrote: On 12/3/20 10:53 AM, Jason Merrill via Gcc-patches wrote: It looks cleaner if we can use a vec* directly as a range for the C++11 range-based 'for' loop, without needing to indirect

[Bug middle-end/94600] Ignored volatile specifier on loop unrolling and bitfield misoptimization

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94600 --- Comment #13 from CVS Commits --- The releases/gcc-10 branch has been updated by Hans-Peter Nilsson : https://gcc.gnu.org/g:ac2347289d4d8000a078b540b6c9c2c74bb33471 commit r10-9121-gac2347289d4d8000a078b540b6c9c2c74bb33471 Author:

Re: [PATCH] [X86_64]: Enable support for next generation AMD Zen3 CPU

2020-12-04 Thread Jan Hubicka
> On Fri, Dec 4, 2020 at 6:50 PM Kumar, Venkataramanan > wrote: > > > > [AMD Public Use] > > > > Hi Uros > > > > > -Original Message- > > > From: Uros Bizjak > > > Sent: Friday, December 4, 2020 2:30 PM > > > To: Kumar, Venkataramanan > > > Cc: gcc-patches@gcc.gnu.org; Jan Hubicka

[Bug target/92729] [avr] Convert the backend to MODE_CC so it can be kept in future releases

2020-12-04 Thread abebeos at lazaridis dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92729 --- Comment #36 from abebeos at lazaridis dot com --- Created attachment 49686 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49686=edit Patch by Senthil Kumar Selvaraj, non-cc0-avr-backend this should(!) be the final patch, derived from:

[Bug middle-end/94600] Ignored volatile specifier on loop unrolling and bitfield misoptimization

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94600 --- Comment #12 from CVS Commits --- The master branch has been updated by Hans-Peter Nilsson : https://gcc.gnu.org/g:eb79f4db49c5f5a807555e9d374524664eb537bf commit r11-5749-geb79f4db49c5f5a807555e9d374524664eb537bf Author: Hans-Peter Nilsson

[Bug tree-optimization/91191] vrp and boolean arguments

2020-12-04 Thread law at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91191 --- Comment #5 from Jeffrey A. Law --- The best way to think about V_C_E is that it's the same bits, just viewed in a different type whereas a cast can do things like sign/zero extension, truncation of floating point values to integers, etc).

[PATCH,rs6000] Combine patterns for p10 load-cmpi fusion

2020-12-04 Thread acsawdey--- via Gcc-patches
From: Aaron Sawdey This patch adds the first batch of patterns to support p10 fusion. These will allow combine to create a single insn for a pair of instructions that that power10 can fuse and execute. These particular ones have the requirement that only cr0 can be used when fusing a load with a

Re: [PATCH] warn for integer overflow in allocation calls (PR 96838)

2020-12-04 Thread Jeff Law via Gcc-patches
On 11/24/20 11:39 AM, Martin Sebor wrote: > On 11/24/20 10:44 AM, Andrew MacLeod wrote: >> On 11/24/20 12:42 PM, Andrew MacLeod wrote: >>> On 11/23/20 4:38 PM, Martin Sebor wrote: On 11/21/20 6:26 AM, Andrew MacLeod wrote: > On 11/21/20 12:07 AM, Jeff Law wrote: >> >> On

Re: [PATCH] [X86_64]: Enable support for next generation AMD Zen3 CPU

2020-12-04 Thread Joseph Myers
On Fri, 4 Dec 2020, Richard Biener via Gcc-patches wrote: > Per rule changes to targets are allowed at any point per discretion of target > maintainers. Heck, we even accept _new_ targets during stage3/4! For architectures that are neither primary nor secondary targets, that's definitely the

[Bug debug/98148] [AArch64] Wrong location expression for function entry values

2020-12-04 Thread luis.machado at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98148 --- Comment #2 from Luis Machado --- In my particular example, The DWARF information tells us the value is at the following expression... <11ac> DW_AT_GNU_call_site_value: 6 byte block: 8d ec 0 f6 4 2d (DW_OP_breg29 (x29): 108;

[Bug debug/98148] [AArch64] Wrong location expression for function entry values

2020-12-04 Thread luis.machado at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98148 --- Comment #1 from Luis Machado --- You can find the sources for this testcase in binutils-gdb repo, at gdb/testsuite/gdb.ada/O2_float_param.

Re: [committed] Fix mcore multilib specification

2020-12-04 Thread Jeff Law via Gcc-patches
On 12/2/20 6:06 PM, Jim Wilson wrote: > On Tue, Dec 1, 2020 at 3:24 PM Jeff Law via Gcc-patches > mailto:gcc-patches@gcc.gnu.org>> wrote: > > > Kito's recent change to multilib handling seems to have exposed a > latent > mcore bug. > > The mcore 210 does not support little

[Bug debug/98148] New: [AArch64] Wrong location expression for function entry values

2020-12-04 Thread luis.machado at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98148 Bug ID: 98148 Summary: [AArch64] Wrong location expression for function entry values Product: gcc Version: 7.5.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] v3: doc/implement-c.texi: About same-as-scalar-type volatile aggregate accesses, PR94600

2020-12-04 Thread Jeff Law via Gcc-patches
On 12/4/20 7:51 AM, Hans-Peter Nilsson via Gcc-patches wrote: >> From: Martin Sebor via Gcc-patches >> Date: Fri, 4 Dec 2020 01:49:51 +0100 >> On 12/3/20 12:14 PM, Hans-Peter Nilsson via Gcc-patches wrote: >>> Belatedly, here's an updated version, using Martin Sebor's >>> suggested wording

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Segher Boessenkool
On Fri, Dec 04, 2020 at 07:32:43PM +0100, Uros Bizjak wrote: > On Fri, Dec 4, 2020 at 7:26 PM Segher Boessenkool > wrote: > > A splitter can *already* split to only one insn. > > Oh... brown paper bag time... I really don't know where and when I > pick that info, since the docs indeed say: At

Re: [PATCH] tree-optimization/98137 - enhance split_constant_offset range handling

2020-12-04 Thread Jeff Law via Gcc-patches
On 12/4/20 4:45 AM, Richard Biener wrote: > split_constant_offset currently gives up looking at ranges when > dealing with possibly wrapping operations for looking through > conversions when the downstream analysis does not yield a SSA name. > That's overly conservative and we have a nice

[Bug libfortran/98129] Failure on reading big chunk of /dev/urandom

2020-12-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 4, 2020 at 7:26 PM Segher Boessenkool wrote: > > Hi! > > On Fri, Dec 04, 2020 at 07:06:45PM +0100, Uros Bizjak wrote: > > On Fri, Dec 4, 2020 at 6:57 PM Jakub Jelinek wrote: > > > > > > On Fri, Dec 04, 2020 at 06:53:49PM +0100, Uros Bizjak wrote: > > > > > > I was trying that first,

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 4, 2020 at 7:09 PM Jakub Jelinek wrote: > > On Fri, Dec 04, 2020 at 07:06:45PM +0100, Uros Bizjak wrote: > > No, I didn't want to burden you with the additional task - the patch > > is OK as it is. I was just thinking out loud, as I remembered that > > changing bt patterns to combine

Re: [RFC PATCH v1 1/1] PPC64: Implement POWER Architecture Vector Function ABI.

2020-12-04 Thread GT via Gcc-patches
‐‐‐ Original Message ‐‐‐ On Thursday, August 20, 2020 1:48 PM, Segher Boessenkool wrote: > On Thu, Aug 20, 2020 at 04:19:36PM +, GT wrote: > > > > Great! Please repost with what I already pointed out fixed, that > > > explanation added, and working links to the documentation? > > >

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Segher Boessenkool
Hi! On Fri, Dec 04, 2020 at 07:06:45PM +0100, Uros Bizjak wrote: > On Fri, Dec 4, 2020 at 6:57 PM Jakub Jelinek wrote: > > > > On Fri, Dec 04, 2020 at 06:53:49PM +0100, Uros Bizjak wrote: > > > > > I was trying that first, but it didn't work. Without the > > > > > clobber it actually works

[Bug libfortran/98129] Failure on reading big chunk of /dev/urandom

2020-12-04 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug c++/98130] [11 regression] placement new fails on webkit-gtk-2.28.4 since r11-4745-g58c9de46541ade79

2020-12-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98130 --- Comment #13 from Jakub Jelinek --- wrong-code should be now fixed, keeping open if Richard or Honza don't want to improve handling of non-replaceable delete operators.

[Bug c++/98130] [11 regression] placement new fails on webkit-gtk-2.28.4 since r11-4745-g58c9de46541ade79

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98130 --- Comment #12 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:78c4a9feceaccf487516aa1eff417e0741556e10 commit r11-5748-g78c4a9feceaccf487516aa1eff417e0741556e10 Author: Jakub Jelinek Date:

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Jakub Jelinek via Gcc-patches
On Fri, Dec 04, 2020 at 07:06:45PM +0100, Uros Bizjak wrote: > No, I didn't want to burden you with the additional task - the patch > is OK as it is. I was just thinking out loud, as I remembered that > changing bt patterns to combine splitter regressed one testcase. IIRC > combination of two

RE: [PATCH] [X86_64]: Enable support for next generation AMD Zen3 CPU

2020-12-04 Thread Kumar, Venkataramanan via Gcc-patches
[AMD Public Use] Hi Uros, > -Original Message- > From: Uros Bizjak > Sent: Friday, December 4, 2020 11:31 PM > To: Kumar, Venkataramanan > Cc: gcc-patches@gcc.gnu.org; Jan Hubicka (hubi...@ucw.cz) > > Subject: Re: [PATCH] [X86_64]: Enable support for next generation AMD > Zen3 CPU >

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 4, 2020 at 6:57 PM Jakub Jelinek wrote: > > On Fri, Dec 04, 2020 at 06:53:49PM +0100, Uros Bizjak wrote: > > > > I was trying that first, but it didn't work. Without the > > > > clobber it actually works right, we don't have the rotate insn with the > > > > masking and no clobber, so

Re: [PATCH] gimple: Return fnspec only for replaceable new/delete operators called from new/delete [PR98130]

2020-12-04 Thread Richard Biener
On December 4, 2020 6:06:20 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >As mentioned in the PR, we shouldn't treat non-replaceable operator >new/delete (e.g. with the placement new) as replaceable ones. > >There is some pending discussion that perhaps operator delete called >from >delete if not

Re: DWARF64 gcc/clang flag discussion

2020-12-04 Thread Alexander Yermolovich via Gcc
From: Richard Biener Sent: Friday, December 4, 2020 12:36 AM To: David Blaikie Cc: Alexander Yermolovich ; Jakub Jelinek ; Mark Wielaard ; gcc@gcc.gnu.org ; ikud...@accesssoftek.com ; mask...@google.com Subject: Re: DWARF64 gcc/clang flag discussion On

Re: [PATCH] [X86_64]: Enable support for next generation AMD Zen3 CPU

2020-12-04 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 4, 2020 at 6:50 PM Kumar, Venkataramanan wrote: > > [AMD Public Use] > > Hi Uros > > > -Original Message- > > From: Uros Bizjak > > Sent: Friday, December 4, 2020 2:30 PM > > To: Kumar, Venkataramanan > > Cc: gcc-patches@gcc.gnu.org; Jan Hubicka (hubi...@ucw.cz) > > > >

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Jakub Jelinek via Gcc-patches
On Fri, Dec 04, 2020 at 06:53:49PM +0100, Uros Bizjak wrote: > > > I was trying that first, but it didn't work. Without the > > > clobber it actually works right, we don't have the rotate insn with the > > > masking and no clobber, so in the end combiner does add the clobber there > > > (or would

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 4, 2020 at 6:42 PM Uros Bizjak wrote: > > On Fri, Dec 4, 2020 at 6:41 PM Jakub Jelinek wrote: > > > > On Fri, Dec 04, 2020 at 06:37:02PM +0100, Uros Bizjak wrote: > > > > + "(INTVAL (operands[3]) & (GET_MODE_BITSIZE (mode) - 1)) > > > > + == GET_MODE_BITSIZE (mode) - 1" > > > > +

RE: [PATCH] [X86_64]: Enable support for next generation AMD Zen3 CPU

2020-12-04 Thread Kumar, Venkataramanan via Gcc-patches
[AMD Public Use] Hi Uros > -Original Message- > From: Uros Bizjak > Sent: Friday, December 4, 2020 2:30 PM > To: Kumar, Venkataramanan > Cc: gcc-patches@gcc.gnu.org; Jan Hubicka (hubi...@ucw.cz) > > Subject: Re: [PATCH] [X86_64]: Enable support for next generation AMD > Zen3 CPU > >

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

2020-12-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 96226, which changed state. Bug 96226 Summary: Failure to optimize shift+not to rotate https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96226 What|Removed |Added

[Bug tree-optimization/96226] Failure to optimize shift+not to rotate

2020-12-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96226 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug tree-optimization/96226] Failure to optimize shift+not to rotate

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96226 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ac2a6962b91128e700ee52db686dcdb2bab93790 commit r11-5747-gac2a6962b91128e700ee52db686dcdb2bab93790 Author: Jakub Jelinek Date:

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 4, 2020 at 6:41 PM Jakub Jelinek wrote: > > On Fri, Dec 04, 2020 at 06:37:02PM +0100, Uros Bizjak wrote: > > > + "(INTVAL (operands[3]) & (GET_MODE_BITSIZE (mode) - 1)) > > > + == GET_MODE_BITSIZE (mode) - 1" > > > + [(set (match_dup 4) (match_dup 1)) > > > + (set (match_dup 0) > >

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Jakub Jelinek via Gcc-patches
On Fri, Dec 04, 2020 at 06:37:02PM +0100, Uros Bizjak wrote: > > + "(INTVAL (operands[3]) & (GET_MODE_BITSIZE (mode) - 1)) > > + == GET_MODE_BITSIZE (mode) - 1" > > + [(set (match_dup 4) (match_dup 1)) > > + (set (match_dup 0) > > + (any_rotate:SWI48 (match_dup 4) > > +

Re: [PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 4, 2020 at 6:32 PM Jakub Jelinek wrote: > > Hi! > > As mentioned in the PR, we can combine ~(1 << x) into -2 r<< x, but we give > up in the ~(1 << (x & 31)) cases, as *3_mask* don't allow > immediate operand 1 and find_split_point prefers to split (x & 31) instead > of the constant. >

[PATCH] i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]

2020-12-04 Thread Jakub Jelinek via Gcc-patches
Hi! As mentioned in the PR, we can combine ~(1 << x) into -2 r<< x, but we give up in the ~(1 << (x & 31)) cases, as *3_mask* don't allow immediate operand 1 and find_split_point prefers to split (x & 31) instead of the constant. With these combine splitters we help combine decide how to split

[PATCH] c++: Fix constexpr access to union member through pointer-to-member [PR98122]

2020-12-04 Thread Jakub Jelinek via Gcc-patches
Hi! We currently incorrectly reject the first testcase, because cxx_fold_indirect_ref_1 doesn't attempt to handle UNION_TYPEs. As the second testcase shows, it isn't that easy, because I believe we need to take into account the active member and prefer that active member over other members,

[PATCH] gimple: Return fnspec only for replaceable new/delete operators called from new/delete [PR98130]

2020-12-04 Thread Jakub Jelinek via Gcc-patches
Hi! As mentioned in the PR, we shouldn't treat non-replaceable operator new/delete (e.g. with the placement new) as replaceable ones. There is some pending discussion that perhaps operator delete called from delete if not replaceable should return some other fnspec, but can we handle that

[Bug libstdc++/93121] std::bit_cast missing

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93121 --- Comment #14 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:33be07be9e46f15b9556521050356c47460651ee commit r11-5746-g33be07be9e46f15b9556521050356c47460651ee Author: Jakub Jelinek Date:

[Bug target/94743] IRQ handler doesn't save scratch VFP registers

2020-12-04 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94743 Christophe Lyon changed: What|Removed |Added Assignee|clyon at gcc dot gnu.org |unassigned at gcc dot gnu.org

Re: DejaGnu diagnostics checking confused, possibly related to 'dg-line'?

2020-12-04 Thread Maciej W. Rozycki
On Mon, 30 Nov 2020, Jeff Law via Gcc wrote: > > Ping. Anybody got an opinion on the approach we should take? > Could we set warning_threshold to a value to inhibit this behavior > completely.  It seems backwards to me that warnings have this effect. Sounds like rate-limiting of some sort to

[Bug c++/98116] [11 Regression] ICE in strip_typedefs, at cp/tree.c:1744 since r11-5663-g329ae1d7751346ba

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98116 --- Comment #4 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:5a26d4a204c8a462a7e0a1a86bb2f25ecd470aad commit r11-5745-g5a26d4a204c8a462a7e0a1a86bb2f25ecd470aad Author: Nathan Sidwell Date:

c++: Revert dependent-array changes [PR 98116]

2020-12-04 Thread Nathan Sidwell
The changes reverted here are exposing an existing problem with alias template comparisons. The typename_type changes are also incomplete, possibly for similar reasons. It seems safer to revert them, fix the underlying issue and then move forwards. The testcases is adjusted to more robustly

[Bug tree-optimization/96232] Failure to optimize bool pattern equivalent to minus 1

2020-12-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96232 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned

Re: [AArch64] Add --with-tune configure flag

2020-12-04 Thread Pop, Sebastian via Gcc-patches
On 11/19/20, 10:52 AM, "Richard Earnshaw (lists)" wrote: > Having the same option have a completely different meaning would be even > worse than not having the option at all. So no, that's a non-starter. The attached patch 0001 removes --with-{cpu,arch,tune}-32. Bootstrap and regression

[Bug c/98145] On Windows .exe extension is missing when searching/calling mkoffload

2020-12-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98145 --- Comment #1 from Brecht Sanders --- Closer investigation shows the issue probably not (or not only) cause by the .exe extension: This is the error: lto-wrapper.exe: fatal error: could not find accel/nvptx-none/mkoffload.exe in

[Bug fortran/98141] Segmentation fault with empty string sourced allocation

2020-12-04 Thread davidhneill at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98141 --- Comment #1 from David Neill Asanza --- Here are even shorter examples: $ cat short01.f90 program short01 class(*), allocatable :: a, b, c character(len=0) :: s allocate(a, source=s) !! No problem allocate(character(len=0)::b)

Re: How to traverse all the local variables that declared in the current routine?

2020-12-04 Thread Qing Zhao via Gcc-patches
> On Dec 4, 2020, at 2:50 AM, Richard Biener wrote: > > On Thu, Dec 3, 2020 at 6:33 PM Richard Sandiford > mailto:richard.sandif...@arm.com>> wrote: >> >> Richard Biener via Gcc-patches writes: >>> On Tue, Nov 24, 2020 at 4:47 PM Qing Zhao wrote: Another issue is, in order to check

V2 [PATCH 1/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-04 Thread H.J. Lu via Gcc-patches
When definitions marked with used attribute and unmarked definitions are placed in the section with the same name, switch to a new section if the SECTION_RETAIN bit doesn't match. gcc/ PR target/98146 * output.h (switch_to_section): Add a tree argument, default to

V2 [PATCH 0/2] Switch to a new section if the SECTION_RETAIN bit doesn't match

2020-12-04 Thread H.J. Lu via Gcc-patches
When SECTION_RETAIN is used, definitions marked with used attribute and unmarked definitions are placed in a section with the same name. Instead of issue an error: [hjl@gnu-cfl-2 gcc]$ /usr/gcc-11.0.0-x32/bin/gcc -S c.c -fdiagnostics-plain-output c.c:2:49: error: ‘foo1’ causes a section type

V2 [PATCH 2/2] Warn used and not used symbols in section with the same name

2020-12-04 Thread H.J. Lu via Gcc-patches
When SECTION_RETAIN is used, issue a warning when a symbol without used attribute and a symbol with used attribute are placed in the section with the same name, like int __attribute__((used,section(".data.foo"))) foo2 = 2; int __attribute__((section(".data.foo"))) foo1 = 1; since assembler will

[Bug libfortran/98129] Failure on reading big chunk of /dev/urandom

2020-12-04 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98129 Thomas Koenig changed: What|Removed |Added Target||x86_64-pc-linux-gnu --- Comment #5 from

[Bug target/98140] Reused register by xsmincdp leads to wrong NaN propagation on Power9

2020-12-04 Thread alexander.grund--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98140 --- Comment #1 from Alexander Grund --- It looks like this was fixed in 10.1 by this commit https://github.com/gcc-mirror/gcc/commit/37e0df8a9be5a8232f4ccb73cdadb02121ba523f However the codegen looks worse: 390: 20 00 9e c3 lfs

  1   2   3   >