[Bug c++/94583] [10 Regression] ICE in get_defaulted_eh_spec, at cp/method.c:2421

2020-04-24 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94583 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94583] [10 Regression] ICE in get_defaulted_eh_spec, at cp/method.c:2421

2020-04-24 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94583 --- Comment #4 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:352811870d7d7edcca109ef50822e26ca7ef2b36 commit r10-7957-g352811870d7d7edcca109ef50822e26ca7ef2b36 Author: Jason Merrill Date:

[pushed] c++: implicit operator== with previous decl [PR94583]

2020-04-24 Thread Jason Merrill via Gcc-patches
P2085 clarified that a defaulted comparison operator must be the first declaration of the function. Rejecting that avoids the ICE trying to compare the noexcept-specifications. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog 2020-04-24 Jason Merrill PR c++/94583

[Bug c/94755] New: [10 Regression] internal compiler error: Segmentation fault

2020-04-24 Thread anbu1024.me at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94755 Bug ID: 94755 Summary: [10 Regression] internal compiler error: Segmentation fault Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug analyzer/94754] -fanalyzer false positive due to it ignoring previous if

2020-04-24 Thread colomar.6.4.3 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94754 --- Comment #1 from Alejandro Colomar --- __builin_unreachable() helped silencing that specific bug, as a temporary workaround: [[gnu::nonnull]] static int init_x(int cond, int **x, int *y) { if (!cond) return -1;

Re: [PATCH] RS6000: Use .machine ppc for some CRT files

2020-04-24 Thread Segher Boessenkool
Hi! On Tue, Apr 07, 2020 at 07:18:25AM +0200, Sebastian Huber wrote: > Since commit e154242724b084380e3221df7c08fcdbd8460674 the flag -many is > sometimes not passed to the assembler. Use .machine ppc to prevent > errors if these files are assembled for an ISA which does not support > FPRs. > >

[committed] d: Merge upstream dmd 09db0c41e, druntime e68a5ae3.

2020-04-24 Thread Iain Buclaw via Gcc-patches
Hi, This patch merges the D front-end implementation with upstream dmd 09db0c41e, and the D runtime library with upstream druntime e68a5ae3. * New core.math.toPrec templates have been added as an intrinsic. Some floating point algorithms, such as Kahan-Babuska-Neumaier Summation, require

[Bug analyzer/94754] New: -fanalyzer false positive due to it ignoring previous if

2020-04-24 Thread colomar.6.4.3 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94754 Bug ID: 94754 Summary: -fanalyzer false positive due to it ignoring previous if Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] RS6000: Use .machine ppc for some CRT files

2020-04-24 Thread Segher Boessenkool
On Fri, Apr 24, 2020 at 04:47:31PM -0500, Peter Bergner wrote: > On 4/17/20 12:59 AM, Sebastian Huber wrote: > > Hello Segher, > > > > would you mind having a look at this patch. > > > > His patch is here: > > https://gcc.gnu.org/pipermail/gcc-patches/2020-April/543396.html (And at

[Bug preprocessor/94753] New: -undef, c++20 and feature-test macros

2020-04-24 Thread r_new at rambler dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94753 Bug ID: 94753 Summary: -undef, c++20 and feature-test macros Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug middle-end/92830] -fdiagnostics-url shows the wrong URL for warnings which are not in 'gcc' but e.g. in 'gfortran'

2020-04-24 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92830 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

[Bug c++/94751] [9/10 Regression] ICE on invalid code in maybe_instantiate_noexcept

2020-04-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94751 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

Re: [Version 4][PATCH][gcc][PR94230]provide an option to change the size limitation for -Wmisleading-indent

2020-04-24 Thread David Malcolm via Gcc-patches
On Fri, 2020-04-24 at 17:22 -0500, Qing Zhao wrote: > Hi, Dave, > > Thanks a lot for the review and comments. > I just updated the patch with all your suggestions, bootstrapped it > and run regression test, no any issue. > > The newest patch is attached with this email. > > Richard/Jakub,

gcc-8-20200424 is now available

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

[Bug c++/94752] New: [coroutines] compiler ICE with coroutine with unnamed parameter

2020-04-24 Thread lewissbaker.opensource at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94752 Bug ID: 94752 Summary: [coroutines] compiler ICE with coroutine with unnamed parameter Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug c++/94751] [9/10] ICE on invalid code in maybe_instantiate_noexcept

2020-04-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94751 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

Re: [PATCH v2] aarch64: Add TX3 machine model

2020-04-24 Thread Ramana Radhakrishnan via Gcc-patches
On Wed, Apr 22, 2020 at 8:25 PM Joel Jones wrote: > > Yes, Bellsoft's contribution is to be covered under the Marvell copyright > > assignment, as this is a work for hire. Thanks ! Ramana > > > > Joel > > > > >Yes, Bellsoft's contribution is to be covered under the Marvell copyright > >

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 89430, which changed state. Bug 89430 Summary: A missing ifcvt optimization to generate csel https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89430 What|Removed |Added

[Bug tree-optimization/89430] A missing ifcvt optimization to generate csel

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89430 Jakub Jelinek changed: What|Removed |Added Resolution|FIXED |--- CC|

[Bug c++/94742] [8/9 Regression] Incorrect "no return statement" warning with [[noreturn]] and __FUNCTION__

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94742 Jakub Jelinek changed: What|Removed |Added Summary|[8/9/10 Regression] |[8/9 Regression] Incorrect

[Bug tree-optimization/94734] [10 Regression] Program crashes when compiled with -O2 since r10-1892-gb9ef6a2e04bfd013

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94734 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Assignee|unassigned

[Version 4][PATCH][gcc][PR94230]provide an option to change the size limitation for -Wmisleading-indent

2020-04-24 Thread Qing Zhao via Gcc-patches
Hi, Dave, Thanks a lot for the review and comments. I just updated the patch with all your suggestions, bootstrapped it and run regression test, no any issue. The newest patch is attached with this email. Richard/Jakub, please advise on whether I can commit this patch to Gcc10? Thanks a lot.

[Bug c++/94742] [8/9/10 Regression] Incorrect "no return statement" warning with [[noreturn]] and __FUNCTION__

2020-04-24 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94742 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:4ff685a8705e8ee55fa86e75afb769ffb0975aea commit r10-7953-g4ff685a8705e8ee55fa86e75afb769ffb0975aea Author: Jakub Jelinek Date:

[Bug tree-optimization/94734] [10 Regression] Program crashes when compiled with -O2 since r10-1892-gb9ef6a2e04bfd013

2020-04-24 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94734 --- Comment #18 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:cf39dccf9284d2fd9f9aa7050760adea110c8d88 commit r10-7952-gcf39dccf9284d2fd9f9aa7050760adea110c8d88 Author: Jakub Jelinek Date:

[Bug preprocessor/94657] [patch] libcpp uses 'AR = ar' tool even if --build/--host are passed explicitly.

2020-04-24 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94657 Eric Gallager changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug tree-optimization/89430] A missing ifcvt optimization to generate csel

2020-04-24 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89430 --- Comment #12 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:cf39dccf9284d2fd9f9aa7050760adea110c8d88 commit r10-7952-gcf39dccf9284d2fd9f9aa7050760adea110c8d88 Author: Jakub Jelinek Date:

Re: [PATCH, V5] PowerPC Turn on -mpcrel by default for -mcpu=future

2020-04-24 Thread Segher Boessenkool
Hi! On Wed, Apr 22, 2020 at 12:53:03AM -0400, Michael Meissner wrote: > 2020-04-21 Michael Meissner > > * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to > enable PC-relative addressing for -mcpu=future. > * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER):

Re: [PATCH] RS6000: Use .machine ppc for some CRT files

2020-04-24 Thread Peter Bergner via Gcc-patches
On 4/17/20 12:59 AM, Sebastian Huber wrote: > Hello Segher, > > would you mind having a look at this patch. > His patch is here: https://gcc.gnu.org/pipermail/gcc-patches/2020-April/543396.html Peter

[committed] d: Fix order of precedence for -defaultlib and -debuglib

2020-04-24 Thread Iain Buclaw via Gcc-patches
Hi, The order of precedence used by the upstream reference compiler for determining what library to link against is: - No library if -nophoboslib or -fno-druntime was seen. - The library passed to -debuglib if -g was also seen. - The library passed to -defaultlib - The in-tree libgphobos library.

Re: [PATCH,rs6000] enable -fweb for small loops unrolling

2020-04-24 Thread Segher Boessenkool
Hi! On Mon, Apr 20, 2020 at 09:57:31PM +0800, guojiufu wrote: > Previously -fweb was disabled if only unroll small loops. After that > we find there is cases where it could help to rename pseudos and aovid > some anti-dependence which may occur after unroll. > > Below is a patch to disable

Re: [PATCH] RS6000: Use .machine ppc for some CRT files

2020-04-24 Thread Segher Boessenkool
On Fri, Apr 17, 2020 at 07:59:02AM +0200, Sebastian Huber wrote: > would you mind having a look at this patch. Hi! I see no patch? Segher

Re: [PATCH v2] rs6000: Don't use HARD_FRAME_POINTER_REGNUM if it's not live in pro_and_epilogue (PR91518)

2020-04-24 Thread Segher Boessenkool
Hi! On Fri, Apr 17, 2020 at 01:35:15PM +0800, luoxhu wrote: > On 2020/4/17 08:52, Segher Boessenkool wrote: > > On Mon, Apr 13, 2020 at 10:11:43AM +0800, luoxhu wrote: > >> frame_pointer_needed is set to true in reload pass setup_can_eliminate, > >> but regs_ever_live[31] is false,

Re: Not usable email content encoding

2020-04-24 Thread Segher Boessenkool
Hi! On Fri, Apr 24, 2020 at 10:01:20PM +0200, Martin Jambor wrote: > On Fri, Apr 24 2020, Segher Boessenkool wrote: > > On Fri, Apr 24, 2020 at 05:48:38PM +0200, Thomas Koenig wrote: > >> >Of course, better would be to remove ChangeLogs entirely (including not > >> >putting anything like them

Re: [PATCH v2] aarch64: Fix .cfi_window_save with pac-ret [PR94515]

2020-04-24 Thread Jason Merrill via Gcc-patches
On 4/24/20 4:19 AM, Szabolcs Nagy wrote: On aarch64 -mbranch-protection=pac-ret reuses the dwarf opcode for window_save to mean "toggle the return address mangle state", but in the dwarf2cfi internal logic the state was not updated when an opcode was emitted, the currently present update logic

Re: [PATCH] c++: Avoid -Wreturn-type warning if a template fn calls noreturn template fn [PR94742]

2020-04-24 Thread Jason Merrill via Gcc-patches
On 4/24/20 1:12 PM, Jakub Jelinek wrote: Hi! finish_call_expr already has code to set current_function_returns_abnormally if a template calls a noreturn function, but on the following testcase it doesn't call a FUNCTION_DECL, but TEMPLATE_DECL instead, in which case we didn't check noreturn at

Re: [PATCH] c++: add "'requires' only available with ..." note

2020-04-24 Thread Jason Merrill via Gcc-patches
On 4/24/20 3:52 PM, Patrick Palka wrote: This adds a note suggesting to enable concepts whenever 'requires' is parsed as an invalid type name with concepts disabled. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK to commit? OK. gcc/cp/ChangeLog: * parser.c

Re: [PATCH v2] c++: Explicit constructor called in copy-initialization [PR90320]

2020-04-24 Thread Jason Merrill via Gcc-patches
On 4/23/20 7:08 PM, Marek Polacek wrote: On Thu, Apr 23, 2020 at 02:48:38PM -0400, Jason Merrill wrote: On 4/22/20 11:27 PM, Marek Polacek wrote: This test is rejected with a bogus "use of deleted function" error starting with r225705 whereby convert_like_real/ck_base no longer sets

Re: Not usable email content encoding

2020-04-24 Thread Martin Jambor
Hi, On Fri, Apr 24 2020, Segher Boessenkool wrote: > Hi! > > On Fri, Apr 24, 2020 at 05:48:38PM +0200, Thomas Koenig wrote: >> >Of course, better would be to remove ChangeLogs entirely (including not >> >putting anything like them into a commit message), because they are >> >largely not useful

[Bug libstdc++/94747] Confusing code in libsupc++/dyncast.cc

2020-04-24 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94747 Nathan Sidwell changed: What|Removed |Added Last reconfirmed||2020-04-24

[PATCH] c++: add "'requires' only available with ..." note

2020-04-24 Thread Patrick Palka via Gcc-patches
This adds a note suggesting to enable concepts whenever 'requires' is parsed as an invalid type name with concepts disabled. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK to commit? gcc/cp/ChangeLog: * parser.c (cp_parser_diagnose_invalid_type_name): Suggest to

[Bug c++/94750] [10 Regression] Redundant identical using-declaration rejected since r10-554

2020-04-24 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94750 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug bootstrap/94739] GCC won't build on CET enabled Linux OS

2020-04-24 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94739 H.J. Lu changed: What|Removed |Added Last reconfirmed||2020-04-24 Keywords|

[PATCH] Enable Intel CET in liblto_plugin.so on Intel CET enabled host

2020-04-24 Thread H.J. Lu via Gcc-patches
Since ld is Intel CET enabled on Intel CET enabled host, dlopen fails on liblto_plugin.so if it isn't Intel CET enabled. Add GCC_CET_HOST_FLAGS to cet.m4, use it in libiberty and lto-plugin to always enable Intel CET in liblto_plugin.so on Intel CET enabled host. On Linux/x86 host, enable Intel

Re: C (not C++) compiler plugins

2020-04-24 Thread David Malcolm via Gcc
On Fri, 2020-04-24 at 13:03 -0600, Maurice Smulders via Gcc wrote: > Hello, > > Hugo Landau figured out why it didn't load: > Yes. > > > The reference to cp_global_trees appears to be caused by the below > code, > which only relates to C++.

[committed] amdgcn: Fix wrong-code bug in 64-bit masked add

2020-04-24 Thread Andrew Stubbs
This patch fixes a bug in which the high-part of a 64-bit add doesn't always merge in the masked lanes properly, depending on register allocation. Unfortunately I don't have a small reproducer for this one, so there's no testcase. Andrew amdgcn: Fix wrong-code bug in 64-bit masked add

[Bug target/94710] [8/9 Regression] Assembler messages: Error: operand out of range (4 is not between 0 and 3) (xxsldwi 0,32,33,4)

2020-04-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94710 Segher Boessenkool changed: What|Removed |Added Known to work||10.0 Summary|[8/9/10

Re: C (not C++) compiler plugins

2020-04-24 Thread Maurice Smulders via Gcc
Hello, Hugo Landau figured out why it didn't load: Yes. The reference to cp_global_trees appears to be caused by the below code, which only relates to C++. For C, try commenting it out like this: OUTF ("- !compex/method\n", i);

[Bug target/94710] [8/9/10 Regression] Assembler messages: Error: operand out of range (4 is not between 0 and 3) (xxsldwi 0,32,33,4)

2020-04-24 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94710 --- Comment #9 from CVS Commits --- The master branch has been updated by Segher Boessenkool : https://gcc.gnu.org/g:9c725245beed2f056b67f5dc218fef6cb869c5f2 commit r10-7949-g9c725245beed2f056b67f5dc218fef6cb869c5f2 Author: Segher Boessenkool

[Bug c++/94751] New: [9/10] ICE on invalid code in maybe_instantiate_noexcept

2020-04-24 Thread s...@li-snyder.org
ions. A crash is also observed with a 20200424 version as well as gcc version 9.2.1 20190827 (Red Hat 9.2.1-1) (GCC) thanks, sss

[Bug c++/94750] New: [10 Regression] Redundant identical using-declaration rejected since r10-554

2020-04-24 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94750 Bug ID: 94750 Summary: [10 Regression] Redundant identical using-declaration rejected since r10-554 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity:

[PATCH] rs6000: Properly handle LE index munging in vec_shr (PR94710)

2020-04-24 Thread Segher Boessenkool
The PR shows the compiler crashing with -mvsx -mlittle -O0. This turns out to be caused by a failure to make of the higher bits in an index endian conversion. Tested on powerpc64-linux {-m32,-m64} and on powerpc64le-linux. Committing to trunk. (This will need backports). Segher 2020-04-24

[Bug libstdc++/94747] Undefined behavior: integer overflow in libsupc++/dyncast.cc

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94747 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID

[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 Richard Biener changed: What|Removed |Added Resolution|--- |WONTFIX Status|UNCONFIRMED

Re: [PATCH] cselim: Don't assume it is safe to cstore replace a store to a local variable with unknown offset [PR94734]

2020-04-24 Thread Richard Biener
On Fri, 24 Apr 2020, Jakub Jelinek wrote: > Hi! > > As the new testcase shows, it is not safe to assume we can optimize > a conditional store into an automatic non-addressable var, we can do it > only if we can prove that the unconditional load or store actually will > not be outside of the

[PATCH v4] aarch64: Add TX3 machine model

2020-04-24 Thread Anton Youdkevitch
Here is the patch introducing thunderxt311 maching model for the scheduler. A name for the new chip was added to the list of the names to be recognized as a valid parameter for mcpu and mtune flags. The TX2 cost model was reused for TX3. The previously used "cryptic" name for the command line

[Bug target/94740] ICE on testsuite/gcc.dg/sso/t5.c with -mcpu=future -mpcrel -O1

2020-04-24 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94740 --- Comment #4 from Peter Bergner --- Removing the bswap and recompiling, the non-bswap load pattern has no problem accepting an address like that, so this looks like a target issue with that pattern.

[Bug target/94383] [8/9/10 Regression] class with empty base passed incorrectly with -std=c++17 on aarch64

2020-04-24 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94383 --- Comment #17 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:9407f0c32b215d55d3474a234b0043bddc185b1c commit r10-7948-g9407f0c32b215d55d3474a234b0043bddc185b1c Author: Jakub Jelinek Date:

[PATCH] c++: Avoid -Wreturn-type warning if a template fn calls noreturn template fn [PR94742]

2020-04-24 Thread Jakub Jelinek via Gcc-patches
Hi! finish_call_expr already has code to set current_function_returns_abnormally if a template calls a noreturn function, but on the following testcase it doesn't call a FUNCTION_DECL, but TEMPLATE_DECL instead, in which case we didn't check noreturn at all and just assumed it could return.

[Bug libstdc++/94749] New: std::istream::ignore discards too many characters

2020-04-24 Thread serpent7776 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94749 Bug ID: 94749 Summary: std::istream::ignore discards too many characters Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/94740] ICE on testsuite/gcc.dg/sso/t5.c with -mcpu=future -mpcrel -O1

2020-04-24 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94740 --- Comment #3 from Peter Bergner --- Here's a simpler test case that fails the same way: int array[8]; int foo (void) { return __builtin_bswap32 (array[1]); } So before CSE, we have: (insn 5 2 6 2 (set (reg/f:DI 121)

Re: [PATCH] testsuite: C++14 vs. C++17 struct-layout-1.exp testing with ALT_CXX_UNDER_TEST [PR94383]

2020-04-24 Thread Jeff Law via Gcc-patches
On Thu, 2020-04-23 at 21:08 +0200, Jakub Jelinek via Gcc-patches wrote: > Hi! > > On Tue, Apr 21, 2020 at 11:57:02AM +0200, Jakub Jelinek wrote: > > I haven't added (yet) checks if the alternate compiler does support these > > options (I think that can be done incrementally), so for now this

[PATCH] cselim: Don't assume it is safe to cstore replace a store to a local variable with unknown offset [PR94734]

2020-04-24 Thread Jakub Jelinek via Gcc-patches
Hi! As the new testcase shows, it is not safe to assume we can optimize a conditional store into an automatic non-addressable var, we can do it only if we can prove that the unconditional load or store actually will not be outside of the boundaries of the variable. If the offset and size are

Re: Not usable email content encoding

2020-04-24 Thread Segher Boessenkool
Hi! On Fri, Apr 24, 2020 at 05:48:38PM +0200, Thomas Koenig wrote: > >Of course, better would be to remove ChangeLogs entirely (including not > >putting anything like them into a commit message), because they are > >largely not useful and are just make-work. > > I disagree. I find them quite

[Bug target/94748] New: aarch64: many unnecessary bti j emitted

2020-04-24 Thread nsz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94748 Bug ID: 94748 Summary: aarch64: many unnecessary bti j emitted Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug libstdc++/94747] Undefined behavior: integer overflow in libsupc++/dyncast.cc

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94747 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug target/94740] ICE on testsuite/gcc.dg/sso/t5.c with -mcpu=future -mpcrel -O1

2020-04-24 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94740 Peter Bergner changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[committed] amdgcn: Split 64-bit constant loads post-reload

2020-04-24 Thread Andrew Stubbs
This patch changes the split-point of 64-bit moves to after register allocation. This means that LRA sees a simpler instruction stream, and seems to produce better code on some testcases. Andrew amdgcn: Split 64-bit constant loads post-reload This helps avoid spilling 64-bit constant loads to

Re: Not usable email content encoding

2020-04-24 Thread Thomas Koenig via Gcc
Of course, better would be to remove ChangeLogs entirely (including not putting anything like them into a commit message), because they are largely not useful and are just make-work. I disagree. I find them quite useful.

[Bug libstdc++/94747] New: Undefined behavior: integer overflow in libsupc++/dyncast.cc

2020-04-24 Thread hiraditya at msn dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94747 Bug ID: 94747 Summary: Undefined behavior: integer overflow in libsupc++/dyncast.cc Product: gcc Version: 7.5.0 Status: UNCONFIRMED Severity: normal

[Bug target/92950] Wrong load instructions emitted for movv1qi

2020-04-24 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92950 Andreas Krebbel changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #5 from Andreas

[Bug target/92950] Wrong load instructions emitted for movv1qi

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92950 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

C (not C++) compiler plugins

2020-04-24 Thread Maurice Smulders via Gcc
Hello, Is it possible to make plugins for the C compiler (not the C++) compiler? I was trying the (old) sample code at https://github.com/hlandau/compex to make a plugin, but the plugin only works with C++. when trying to use the C compiler it complains about gcc

[Bug tree-optimization/94675] [9/10 regression] -Warray-bounds false positive with -O2 since r9-1948

2020-04-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94675 --- Comment #17 from Martin Sebor --- As you observed, the warning disappears if the assert is removed, so that's one workaround. But rather than working around it I would suggest to rewrite the code to avoid the pointer subtraction. Chances

[Bug c++/91706] [8/9/10 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in equate_type_number_to_die, at dwarf2out.c:5782

2020-04-24 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91706 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/90254] [8/9/10 Regression] ice on aggregate initialization of unmovable base

2020-04-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90254 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code

Re: [PATCH v2] aarch64: Fix .cfi_window_save with pac-ret [PR94515]

2020-04-24 Thread Szabolcs Nagy
The 04/24/2020 15:17, Richard Sandiford wrote: > Szabolcs Nagy writes: > > @@ -2221,6 +2239,14 @@ change_cfi_row (dw_cfi_row *old_row, dw_cfi_row > > *new_row) > >cfi->dw_cfi_opc = DW_CFA_GNU_window_save; > >add_cfi (cfi); > > } > > + > > + if (old_row->ra_mangled !=

Re: [rs6000] fix mffsl emulation

2020-04-24 Thread Segher Boessenkool
Hi! On Fri, Apr 24, 2020 at 04:52:46AM -0300, Alexandre Oliva wrote: > On Apr 23, 2020, Segher Boessenkool wrote: > > On Thu, Apr 23, 2020 at 05:08:55AM -0300, Alexandre Oliva wrote: > >> I wasn't sure simplify_gen_subreg might possibly emit any code in > >> obscure cases, > > > It never does,

[Bug middle-end/93488] [OpenACC] ICE in type-cast 'async', 'wait' clauses

2020-04-24 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93488 Andrew Stubbs changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[GCC][PATCH][ARM]: Change arm constraint name from "e" to "Te".

2020-04-24 Thread Srinath Parvathaneni
Hello, This patches changes the constraint "e" to "Te". Regression tested on arm-none-eabi and found no regressions. Ok for trunk? Thanks, Srinath. gcc/ChangeLog: 2020-04-24 Srinath Parvathaneni * config/arm/constraints.md (e): Remove constraint. (Te): Define constraint.

Re: [PATCH v2] aarch64: Fix .cfi_window_save with pac-ret [PR94515]

2020-04-24 Thread Richard Sandiford
Szabolcs Nagy writes: > @@ -2221,6 +2239,14 @@ change_cfi_row (dw_cfi_row *old_row, dw_cfi_row > *new_row) >cfi->dw_cfi_opc = DW_CFA_GNU_window_save; >add_cfi (cfi); > } > + > + if (old_row->ra_mangled != new_row->ra_mangled) > +{ > + dw_cfi_ref cfi = new_cfi (); >

[committed] amdgcn: Testsuite tweaks

2020-04-24 Thread Andrew Stubbs
This patch tweaks the testsuite expectations for amdgcn. The result on the testsuite is a lot of removed failures, some new passes, and a few new fails that are at least accurate. Andrew amdgcn: Testsuite tweaks The vector size chosen here is for V64DImode. The concept of this setting is not

Re: [PATCH] libstdc++: don't use #include_next in c_global headers

2020-04-24 Thread Jonathan Wakely via Gcc-patches
On 23/04/20 09:23 +0100, Jonathan Wakely wrote: On 23/04/20 06:32 +0200, Helmut Grohne wrote: Hi, On Mon, Apr 20, 2020 at 10:12:37AM +0100, Jonathan Wakely wrote: Now you are probably going to say that "-isystem /usr/include" is a bad idea and that you shouldn't do that. Right. I'm

[Bug c/94746] New: -Wsizeof-pointer-div not triggered by system header macros

2020-04-24 Thread colomar.6.4.3 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94746 Bug ID: 94746 Summary: -Wsizeof-pointer-div not triggered by system header macros Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal

[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 --- Comment #2 from Jonathan Wakely --- (In reply to Louis Dionne from comment #0) > This makes detecting whether GCC supports a given warning flag very > challenging in build systems. You're doing it wrong then. Try 'g++ -Q --help=warnings'

[Bug target/94710] [8/9/10 Regression] Assembler messages: Error: operand out of range (4 is not between 0 and 3) (xxsldwi 0,32,33,4)

2020-04-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94710 --- Comment #8 from Segher Boessenkool --- Patch is bootstrapping.

[Bug c++/94745] No error emitted for unknown -Wno-meow argument

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 --- Comment #1 from Jonathan Wakely --- This is by design. It means that makefiles written for different versions of GCC do not trigger spurious diagnostics. If somebody says "I don't want warnings about cat noises" and their version of GCC

[Bug libstdc++/94203] experimental/executor and socket header issues-

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94203 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/94744] [9 Regression] FAIL: experimental/net/executor/1.cc (test for excess errors)

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94744 --- Comment #3 from Jonathan Wakely --- Fixed now.

[Bug libstdc++/94203] experimental/executor and socket header issues-

2020-04-24 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94203 --- Comment #3 from CVS Commits --- The releases/gcc-9 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:942b32e261c414a033766ed7848d923f9630b991 commit r9-8543-g942b32e261c414a033766ed7848d923f9630b991 Author: Jonathan Wakely

[Bug c++/94745] New: No error emitted for unknown -Wno-meow argument

2020-04-24 Thread ldionne.2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94745 Bug ID: 94745 Summary: No error emitted for unknown -Wno-meow argument Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

Re: [committed] libstdc++: Add default constructor to net::service_already_exists (PR 94199)

2020-04-24 Thread Jonathan Wakely via Gcc-patches
On 16/03/20 22:54 +, Jonathan Wakely wrote: The service_already_exists exception type specified in the TS doesn't have any constructors defined. Since its base class isn't default constructible, that means has no usable constructors. This may be a defect in the TS. This patch fixes it by

[Bug c++/90448] [8/9 Regression] decltype-based lambda parameter pack is rejected

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90448 Jakub Jelinek changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug libstdc++/94203] experimental/executor and socket header issues-

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94203 Jonathan Wakely changed: What|Removed |Added CC||hjl.tools at gmail dot com ---

[Bug libstdc++/94744] [9 Regression] FAIL: experimental/net/executor/1.cc (test for excess errors)

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94744 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE Status|ASSIGNED

[Bug libstdc++/94744] [9 Regression] FAIL: experimental/net/executor/1.cc (test for excess errors)

2020-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94744 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Last

[Bug c++/94288] co_await in while loop crashes g++

2020-04-24 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94288 Iain Sandoe changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[committed] coroutines, testsuite: Add test for fixed pr [PR94288]

2020-04-24 Thread Iain Sandoe
Hi, This is a version of the reproducer in the PR, usable on multiple platforms. tested on x86_64-linux/darwin, powerpc64-linux, pushed to master, thanks Iain gcc/testsuite/ 2020-04-24 Iain Sandoe PR c++/94288 * g++.dg/coroutines/pr94288.C: New test. diff --git

[Bug libstdc++/94744] New: [9 Regression] FAIL: experimental/net/executor/1.cc (test for excess errors)

2020-04-24 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94744 Bug ID: 94744 Summary: [9 Regression] FAIL: experimental/net/executor/1.cc (test for excess errors) Product: gcc Version: 9.3.1 Status: UNCONFIRMED Severity:

[Bug c++/94742] [8/9/10 Regression] Incorrect "no return statement" warning with [[noreturn]] and __FUNCTION__

2020-04-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94742 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2020-04-24

[Bug target/94743] New: IRQ handler implementation wrong when using __attribute__ ((interrupt("IRQ")))

2020-04-24 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94743 Bug ID: 94743 Summary: IRQ handler implementation wrong when using __attribute__ ((interrupt("IRQ"))) Product: gcc Version: 10.0 Status: UNCONFIRMED Severity:

  1   2   >