Re: The conditions when convert from double to float is permitted?

2020-12-10 Thread Xionghu Luo via Gcc
+cc. On 2020/12/11 14:25, Xionghu Luo via Gcc wrote: Thanks, On 2020/12/10 17:12, Richard Biener wrote: 2) From PR90070: double temp1 = (double)r->red; double temp2 = (double)aggregate.red; double temp3 = temp2 + (temp1 * 5.0); temp1 * 5 could be not representable in float but

Re: The conditions when convert from double to float is permitted?

2020-12-10 Thread Richard Biener via Gcc
On Fri, Dec 11, 2020 at 7:26 AM Xionghu Luo wrote: > > Thanks, > > On 2020/12/10 17:12, Richard Biener wrote: > >> 2) From PR90070: > >> > >>double temp1 = (double)r->red; > >>double temp2 = (double)aggregate.red; > >>double temp3 = temp2 + (temp1 * 5.0); > > temp1 * 5 could be not

Re: [PATCH] aix: Fixinclude updates [PR98208]

2020-12-10 Thread Richard Biener via Gcc-patches
On Fri, Dec 11, 2020 at 2:01 AM Ilya Leoshkevich via Gcc-patches wrote: > > Tested on gcc121 (x86_64 CentOS Linux 7). Ok for master? OK > > > After 92648faa1cb2 ("aix: Fixinclude") make check-fixincludes began to > fail (at least on gcc121 machine). Fix by updating fixincludes/tests > and

[Bug c++/98232] [9 Regression] ICE when compiling libreoffice

2020-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98232 Richard Biener changed: What|Removed |Added Summary|[9 branch] [regression] ICE |[9 Regression] ICE when

[Bug ada/98228] [11 Regression] ICE: Assert_Failure atree.adb:931: Error detected at s-gearop.adb:382:34 [a-ngrear.adb:313:7 [a-nllrar.ads:18:1]] on s390x-linux-gnu

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

[Bug middle-end/98227] [11 Regression] ICE: tree check: expected tree that contains 'decl common' structure, have 'constructor' in get_section, at varasm.c:297 on riscv64-linux-gnu

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

[Bug tree-optimization/98234] [11 Regression] OOM at -O2 for PR91257 testcase

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

[Bug tree-optimization/98234] New: [11 Regression] OOM at -O2 for PR91257 testcase

2020-12-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98234 Bug ID: 98234 Summary: [11 Regression] OOM at -O2 for PR91257 testcase Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[PATCH] Complete _GLIBCXX_DEBUG constexpr compatibility

2020-12-10 Thread François Dumont via Gcc-patches
Hi I'd like to commit this small fix to complete _GLIBCXX_DEBUG constexpr compatibility. There are still 2 macros not using __glibcxx_assert_1. It fixes the generated diagnostic to have the __failed_assertion rather than a message saying that _Error_formatter::_M_error is not constexpr.    

Re: Integer division on x86 -m32

2020-12-10 Thread Marc Glisse
On Thu, 10 Dec 2020, Lucas de Almeida via Gcc wrote: when performing (int64_t) foo / (int32_t) bar in gcc under x86, a call to __divdi3 is always output, even though it seems the use of the idiv instruction could be faster. IIRC, idiv requires that the quotient fit in 32 bits, while your C

Re: Integer division on x86 -m32

2020-12-10 Thread Alexander Monakov via Gcc
On Thu, 10 Dec 2020, Lucas de Almeida via Gcc wrote: > Hello, > when performing (int64_t) foo / (int32_t) bar in gcc under x86, a call to > __divdi3 is always output, even though it seems the use of the idiv > instruction could be faster. > This seems to remain even under -Ofast and other

[Bug fortran/68778] [F03] Missing default initialization of finalized derived types type(C_PTR) component in subroutines

2020-12-10 Thread drikosev at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68778 Ev Drikos changed: What|Removed |Added CC||drikosev at gmail dot com --- Comment #6

Re: [PATCH] Fix up testcase.

2020-12-10 Thread Prathamesh Kulkarni via Gcc-patches
On Fri, 11 Dec 2020 at 10:46, Hongtao Liu wrote: > > On Thu, Dec 10, 2020 at 8:52 PM Prathamesh Kulkarni > wrote: > > > > On Wed, 9 Dec 2020 at 15:52, Hongtao Liu wrote: > > > > > > On Wed, Dec 9, 2020 at 5:22 PM Prathamesh Kulkarni via Gcc-patches > > > wrote: > > > > > > > > On Wed, 9 Dec

Re: [PATCH] c++: missing SFINAE with pointer subtraction [PR78173]

2020-12-10 Thread Jason Merrill via Gcc-patches
Ok. On Fri, Dec 11, 2020, 12:45 AM Patrick Palka wrote: > This fixes a missed SFINAE when subtracting pointers to an incomplete > type. > > Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for > trunk? > > gcc/cp/ChangeLog: > > PR c++/78173 > * typeck.c

Re: The conditions when convert from double to float is permitted?

2020-12-10 Thread Xionghu Luo via Gcc
Thanks, On 2020/12/10 17:12, Richard Biener wrote: >> 2) From PR90070: >> >>double temp1 = (double)r->red; >>double temp2 = (double)aggregate.red; >>double temp3 = temp2 + (temp1 * 5.0); > temp1 * 5 could be not representable in float but the > result of the add could so the transform

[Bug libstdc++/98233] New: A small bug in stl

2020-12-10 Thread 570070308 at qq dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98233 Bug ID: 98233 Summary: A small bug in stl Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee:

[PATCH] c++: missing SFINAE with pointer subtraction [PR78173]

2020-12-10 Thread Patrick Palka via Gcc-patches
This fixes a missed SFINAE when subtracting pointers to an incomplete type. Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? gcc/cp/ChangeLog: PR c++/78173 * typeck.c (pointer_diff): Use complete_type_or_maybe_complain instead of

Looking for a Minecraft Server?

2020-12-10 Thread PUSCraft via Gcc
Minecraft Server List [http://pub.linuxman.co:3004/mosaico/img?src=http%3A%2F%2Fpub.linuxman.co%3A3004%2Ffiles%2Ftemplate%2Ffile%2F1%2F99a51e72c1e6f787e2748c2e943571d6=resize=258,null] [http://pub.linuxman.co:3004/links/jCNSyLKswp/UMVFQKTHWY/MGgeKgXsYc/RZoOyKlpNm] Looking for a Minecraft Server?

Re: [PATCH] Fix up testcase.

2020-12-10 Thread Hongtao Liu via Gcc-patches
On Thu, Dec 10, 2020 at 8:52 PM Prathamesh Kulkarni wrote: > > On Wed, 9 Dec 2020 at 15:52, Hongtao Liu wrote: > > > > On Wed, Dec 9, 2020 at 5:22 PM Prathamesh Kulkarni via Gcc-patches > > wrote: > > > > > > On Wed, 9 Dec 2020 at 00:29, sunil.k.pandey wrote: > > > > > > > > On Linux/x86_64, >

Re: [PATCH] gcc: handle double quotes in symbol name during stabstrings generation

2020-12-10 Thread Ian Lance Taylor via Gcc-patches
On Tue, Dec 8, 2020 at 5:15 AM CHIGOT, CLEMENT wrote: > > Any news about this bug ? It's not urgent even if it's breaking gcc builds > with Go language, but I just want to know if you need any inputs/help from me. I sent https://golang.org/cl/277232 to fix this problem. Ian >

[Bug c++/98232] New: [9 branch] [regression] ICE when compiling libreoffice

2020-12-10 Thread me at hussam dot eu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98232 Bug ID: 98232 Summary: [9 branch] [regression] ICE when compiling libreoffice Product: gcc Version: 9.3.1 Status: UNCONFIRMED Severity: normal Priority: P3

[PATCH,rs6000] Fusion patterns for logical-logical

2020-12-10 Thread acsawdey--- via Gcc-patches
From: Aaron Sawdey This patch adds a new function to genfusion.pl to generate patterns for logical-logical fusion. They are enabled by default for power10 and can be disabled by -mno-power10-fusion-2logical or -mno-power10-fusion. This patch builds on top of the load-cmpi patch posted earlier

[Bug c++/98231] [11 Regression] bogus error: no match for ‘operator<<’

2020-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98231 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Target Milestone|---

[Bug c++/98231] New: [11 Regression] bogus error: no match for ‘operator<<’

2020-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98231 Bug ID: 98231 Summary: [11 Regression] bogus error: no match for ‘operator<<’ Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH] Add a new pattern in 4-insn combine

2020-12-10 Thread HAO CHEN GUI via Gcc-patches
Segher,     Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/560573.html On 30/11/2020 上午 11:08, HAO CHEN GUI wrote: Hi,   This patch adds a new pattern(combine 4 insns to 3 insns) in 4-insn combine. In the patch, newpat is split twice. The newpat, newi2pat and

[Bug testsuite/98208] make check's check-fixincludes fails in sys/types.h around AIX_PHYSADR_T_CHECK

2020-12-10 Thread iii at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98208 --- Comment #10 from Ilya Leoshkevich --- I've posted the combined fixincludes/tests/base/sys/types.h + genfixes patch here: https://gcc.gnu.org/pipermail/gcc-patches/2020-December/561601.html

[PATCH] aix: Fixinclude updates [PR98208]

2020-12-10 Thread Ilya Leoshkevich via Gcc-patches
Tested on gcc121 (x86_64 CentOS Linux 7). Ok for master? After 92648faa1cb2 ("aix: Fixinclude") make check-fixincludes began to fail (at least on gcc121 machine). Fix by updating fixincludes/tests and rerunning genfixes. fixincludes/ChangeLog: 2020-12-11 Ilya Leoshkevich *

[Bug rtl-optimization/98212] [10 Regression] X86 unoptimal code for float equallity comparison followed by jump

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

[Bug rtl-optimization/98212] [10/11 Regression] X86 unoptimal code for float equallity comparison followed by jump

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98212 --- Comment #8 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a5c05005499dd323296008fda4f414d8647adf0c commit r11-5923-ga5c05005499dd323296008fda4f414d8647adf0c Author: Jakub Jelinek Date:

Re: [PATCH v5] Practical Improvement to libgcc Complex Divide

2020-12-10 Thread Jakub Jelinek via Gcc-patches
On Thu, Dec 10, 2020 at 10:27:46AM -0600, Patrick McGehearty via Gcc-patches wrote: > Thank you for your rapid feedback. > I'll fix the various formatting issues (spaces in the wrong places > and such as well as revise the Changelog magic) in the next submission. > It will wait for Joseph's

Integer division on x86 -m32

2020-12-10 Thread Lucas de Almeida via Gcc
Hello, when performing (int64_t) foo / (int32_t) bar in gcc under x86, a call to __divdi3 is always output, even though it seems the use of the idiv instruction could be faster. This seems to remain even under -Ofast and other available options. To illustrate, this godbolt link:

gcc-8-20201210 is now available

2020-12-10 Thread GCC Administrator via Gcc
Snapshot gcc-8-20201210 is now available on https://gcc.gnu.org/pub/gcc/snapshots/8-20201210/ 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

[PATCH 2/1] c++: Diagnose self-recursive satisfaction

2020-12-10 Thread Patrick Palka via Gcc-patches
This patch further extends the satisfaction_cache class to diagnose self-recursive satisfaction. With this patch, a few more cmcstl2 tests fail at compile time due apparent self-recursive satisfaction. I didn't analyze these failures individually, but all errors contain view_interface::operator

[committed] libstdc++: Remove redundant branches in countl_one and countr_one [PR 98226]

2020-12-10 Thread Jonathan Wakely via Gcc-patches
There's no need to explicitly check for the maximum value, because the function we call handles it correctly anyway. libstdc++-v3/ChangeLog: PR libstdc++/98226 * include/std/bit (__countl_one, __countr_one): Remove redundant branches. Tested powerpc64le-linux. Committed

Re: [PATCH 2/1] c++: Diagnose self-recursive satisfaction

2020-12-10 Thread Patrick Palka via Gcc-patches
On Thu, 10 Dec 2020, Patrick Palka wrote: > This patch further extends the satisfaction_cache class to diagnose > self-recursive satisfaction. > > With this patch, a few more cmcstl2 tests fail at compile time due apparent > self-recursive satisfaction. I didn't analyze these failures >

[Bug libstdc++/98226] Slow std::countr_one

2020-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98226 --- Comment #5 from Jonathan Wakely --- I've removed some redundant code from them, but not changed the indirection that this PR complains about. I don't plan to change that.

[Bug libstdc++/98226] Slow std::countr_one

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98226 --- Comment #4 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:2ea62857a3fbdf091ba38cbb62e98dc76b198e2e commit r11-5922-g2ea62857a3fbdf091ba38cbb62e98dc76b198e2e Author: Jonathan Wakely Date:

Re: [PATCH] x86: Update user interrupt handler stack frame

2020-12-10 Thread Uros Bizjak via Gcc-patches
On Thu, Dec 10, 2020 at 10:20 PM H.J. Lu wrote: > > User interrupt handler stack frame is similar to exception interrupt > handler stack frame. Instead of error code, the second argument is > user interrupt request register vector. > > gcc/ > > PR target/98219 > *

Re: [PATCH] ira.c: Fix ICE in ira-color [PR97092]

2020-12-10 Thread Vladimir Makarov via Gcc-patches
On 2020-12-10 10:12 a.m., Andrea Corallo wrote: Hi all, following discussion on PR97092 I'd like to submit the following patch with a fix plus associated testcase. With this patch applied mode is recomputed at each iteration while looping across different copies in

Re: [PATCH] Correct -fdump-go-spec's handling of incomplete types

2020-12-10 Thread Rainer Orth
Hi Nikhil, > On 12/10/20 2:34 PM, Rainer Orth wrote: >> I've just checked: is effectively unchanged since >> Solaris 10. >> >> Besides, there's gcc211 in the GCC compile farm, running Solaris 11.3/SPARC. > > Ah, thanks, I wasn't aware there was a compile farm available to GCC > developers. I've

[patch] [PR tree-optimization/98174] Reduce memory requirements for ranger

2020-12-10 Thread Andrew MacLeod via Gcc-patches
With very large CFG's ranger on entry cache is not particularly efficient. One thing I never got to was recognizing that if an ssa-name is never used in an outgoing edge calculation, then its range never changes.. the global range is sufficient and we do not need to propagate the on-entry

[Bug ada/98230] incorrect Type'Mod during a loop whose range is computed by a variable

2020-12-10 Thread adam at vany dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 --- Comment #9 from Adam Van Ymeren --- Awesome thanks!

[Bug tree-optimization/98174] [11 Regression] Ranger takes too much memory

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98174 --- Comment #4 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:7f359556a772e26eabf8d31e53aae1de6f2f200d commit r11-5921-g7f359556a772e26eabf8d31e53aae1de6f2f200d Author: Andrew MacLeod Date:

[PATCH, rs6000] Update "prefix" attribute for Power10

2020-12-10 Thread Pat Haugen via Gcc-patches
Update prefixed attribute for Power10. This patch was broken out from my larger patch to update various attributes for Power10, in order to make the review process hopefully easier. This patch only updates the prefix attribute for various new instructions. Changes in this version include missed

[Bug ada/98230] incorrect Type'Mod during a loop whose range is computed by a variable

2020-12-10 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Ada] Fix PR ada/98230

2020-12-10 Thread Eric Botcazou
It's a rather curious malfunction of the 'Mod attribute applied to the variable of a loop whose upper bound is dynamic. Tested on x86-64/Linux, applied on all active branches. 2020-12-10 Ed Schonberg PR ada/98230 * exp_attr.adb (Expand_N_Attribute_Reference, case Mod): Use

[Bug ada/98230] incorrect Type'Mod during a loop whose range is computed by a variable

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 --- Comment #7 from CVS Commits --- The releases/gcc-8 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:87c40733898283f0d1e48bcbf8055c2718064e77 commit r8-10673-g87c40733898283f0d1e48bcbf8055c2718064e77 Author: Ed Schonberg

[Bug ada/98230] incorrect Type'Mod during a loop whose range is computed by a variable

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 --- Comment #6 from CVS Commits --- The releases/gcc-9 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:da6e672dc9bbedb993a5fea498954f0ca861b7ec commit r9-9107-gda6e672dc9bbedb993a5fea498954f0ca861b7ec Author: Ed Schonberg

[Bug ada/98230] incorrect Type'Mod during a loop whose range is computed by a variable

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 --- Comment #5 from CVS Commits --- The releases/gcc-10 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:bc7d2977d108ed00c30c9f21d5701f28ffb50f29 commit r10-9137-gbc7d2977d108ed00c30c9f21d5701f28ffb50f29 Author: Ed Schonberg

[Bug ada/98230] incorrect Type'Mod during a loop whose range is computed by a variable

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 --- Comment #4 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:779bf1823ced0814803d2be7f7ded0317e70140c commit r11-5920-g779bf1823ced0814803d2be7f7ded0317e70140c Author: Ed Schonberg Date:

Re: [PATCH] c++: Diagnose unstable satisfaction results

2020-12-10 Thread Patrick Palka via Gcc-patches
On Thu, 10 Dec 2020, Jason Merrill wrote: > On 12/10/20 11:21 AM, Patrick Palka wrote: > > This implements lightweight heuristical detection and diagnosing of > > satisfaction results that change at different points in the program, > > which renders the program as ill-formed NDR as of P2014.

Re: [PATCH] PowerPC: Map IEEE 128-bit long double built-in functions

2020-12-10 Thread Segher Boessenkool
Hi! On Thu, Nov 19, 2020 at 06:58:14PM -0500, Michael Meissner wrote: > * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add > support for mapping built-in function names for long double > built-in functions if long double is IEEE 128-bit. Please write what it

[PATCH] x86: Update user interrupt handler stack frame

2020-12-10 Thread H.J. Lu via Gcc-patches
User interrupt handler stack frame is similar to exception interrupt handler stack frame. Instead of error code, the second argument is user interrupt request register vector. gcc/ PR target/98219 * config/i386/uintrintrin.h (__uintr_frame): Remove uirrv. gcc/testsuite/

c++: name lookup API for modules

2020-12-10 Thread Nathan Sidwell
This adds a set of calls to name lookup that are needed by modules. Generally installing imported bindings, or walking the current TU's bindings. One note about template instantiations though. When we're about to instantiate a template we have to know about all the maybe-partial

RFC v2: Re: cacheflush.2

2020-12-10 Thread Alejandro Colomar (man-pages) via Gcc
Hi all, v2: [ NOTES Unless you need the finer grained control that this system call provides, you probably want to use the GCC built-in function __builtin___clear_cache(), which provides a more portable interface: void

Re: [PATCH 1/2] libstdc++: Add --enable-stdio=stdio_pure option [v2]

2020-12-10 Thread Keith Packard via Gcc-patches
Jonathan Wakely writes: > I'll do a bit more testing and push it next week. That's awesome news. Thanks so much for you help; I'm looking forward to having real C++ support for my embedded customers! -- -keith signature.asc Description: PGP signature

[pushed] c++: Add make_temp_override generator functions

2020-12-10 Thread Jason Merrill via Gcc-patches
A common pattern before C++17 is the generator function, used to avoid having to specify the type of a container element by using a function call to get type deduction; for example, std::make_pair. C++17 added class type argument deduction, making generator functions unnecessary for many uses,

[Bug c++/91506] Incorrectly issued error: parameter may not have variably modified type

2020-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91506 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[pushed] c++: Update value of __cplusplus for C++20.

2020-12-10 Thread Jason Merrill via Gcc-patches
It's past time to update this macro to the specified value for C++20. libcpp/ChangeLog: * init.c (cpp_init_builtins): Update __cplusplus for C++20. --- libcpp/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpp/init.c b/libcpp/init.c index

[pushed] c++: Add fixed test [PR91506]

2020-12-10 Thread Marek Polacek via Gcc-patches
Pre-r11-557 we issued a bogus error: parameter may not have variably modified type 'double [x]' but now we compile this, as we should. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/testsuite/ChangeLog: PR c++/91506 * g++.dg/init/array60.C: New test. ---

[Bug c++/91506] Incorrectly issued error: parameter may not have variably modified type

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91506 --- Comment #3 from CVS Commits --- The master branch has been updated by Marek Polacek : https://gcc.gnu.org/g:96a5c483afbe0cb3fb037641bf2b5658531d9255 commit r11-5917-g96a5c483afbe0cb3fb037641bf2b5658531d9255 Author: Marek Polacek Date:

[Bug ada/98230] incorrect Type'Mod during a loop whose range is computed by a variable

2020-12-10 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 Eric Botcazou changed: What|Removed |Added Target Milestone|--- |8.5 Summary|Incorrect

Re: [PATCH] c++: Diagnose unstable satisfaction results

2020-12-10 Thread Jason Merrill via Gcc-patches
On 12/10/20 11:21 AM, Patrick Palka wrote: This implements lightweight heuristical detection and diagnosing of satisfaction results that change at different points in the program, which renders the program as ill-formed NDR as of P2014. We've recently started to more aggressively cache

Re: [PATCH 1/2] libstdc++: Add --enable-stdio=stdio_pure option [v2]

2020-12-10 Thread Jonathan Wakely via Gcc-patches
On 09/12/20 18:46 -0800, Keith Packard wrote: This option directs the library to only use simple stdio APIs instead of using fileno to get the file descriptor for use with POSIX APIs. This looks fine to me, even at this stage of GCC 11 (it doesn't affect the default configurations, just adds a

[Bug ada/98230] Bug in Type'Modulus during a loop whose range is computed by a variable

2020-12-10 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 Eric Botcazou changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ebotcazou at gcc dot gnu.org

Re: No warning for module global variable which is set but never used

2020-12-10 Thread webmaster
Ahhh, ok. Good too know. I think also it is not of high priority ;-) Greets Patrick Am 10.12.2020 um 16:26 schrieb David Brown: > On 10/12/2020 16:10, webmaster wrote: > > (As a general rule, you'll get more useful responses if you use your > name in your posts. It's common courtesy.) > >

[Bug ada/98230] Bug in Type'Modulus during a loop whose range is computed by a variable

2020-12-10 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/91506] Incorrectly issued error: parameter may not have variably modified type

2020-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91506 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

Re: [PATCH] Correct -fdump-go-spec's handling of incomplete types

2020-12-10 Thread Nikhil Benesch via Gcc-patches
On 12/10/20 2:34 PM, Rainer Orth wrote: I've just checked: is effectively unchanged since Solaris 10. Besides, there's gcc211 in the GCC compile farm, running Solaris 11.3/SPARC. Ah, thanks, I wasn't aware there was a compile farm available to GCC developers. I've applied for an account, but

c++: modules & using-decls

2020-12-10 Thread Nathan Sidwell
This extends using-decls to modules. In modules you can export a using decl, but the exported decl must have external linkage already. One thing you can do is export something from the GMF. The novel thing is that now 'export using foo::bar;' *in namespace bar* can mean something significant

Re: [PATCH] Correct -fdump-go-spec's handling of incomplete types

2020-12-10 Thread Rainer Orth
Hi Nikhil, > Sorry about this, Rainer. I think I see the issue, though it's hard to > be certain without access to a Solaris machine. Assuming the icmp6.h > header hasn't changed since the last time Solaris code was open source > [0], I think the issue is likely to be typedefs that define a named

Re: [PATCH] Correct -fdump-go-spec's handling of incomplete types

2020-12-10 Thread Nikhil Benesch via Gcc-patches
Sorry about this, Rainer. I think I see the issue, though it's hard to be certain without access to a Solaris machine. Assuming the icmp6.h header hasn't changed since the last time Solaris code was open source [0], I think the issue is likely to be typedefs that define a named struct and an alias

Re: [PATCH] Correct -fdump-go-spec's handling of incomplete types

2020-12-10 Thread Rainer Orth
Hi Ian, > On Tue, Dec 8, 2020 at 2:57 PM Nikhil Benesch > wrote: >> >> This patch corrects -fdump-go-spec's handling of incomplete types. >> To my knowledge the issue fixed here has not been previously >> reported. It was exposed by an in-progress port of gccgo to FreeBSD. >> >> Given the

[Bug c++/63707] Brace initialization of array sometimes fails if no copy constructor

2020-12-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63707 --- Comment #13 from Jakub Jelinek --- At least for #c5 the important difference between that testcase and // ~Child (); which is accepted is I think since r0-113052-ge2df21bfc6c81b4bc410a42002c8427454ffa628 in the cp/init.c

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

2020-12-10 Thread Wilco Dijkstra via Gcc-patches
Hi Richard, > I specifically want to test generic SVE rather than SVE tuned for a > specific core, so --with-arch=armv8.2-a+sve is the thing I want to test. Btw that's not actually what you get if you use cc1 - you always get armv8.0, so --with-arch doesn't work at all. The only case that

[Bug ada/98230] Bug in Type'Modulus during a loop whose range is computed by a variable

2020-12-10 Thread adam at vany dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 --- Comment #1 from Adam Van Ymeren --- Forgot some details === output of gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1

[Bug ada/98230] New: Bug in Type'Modulus during a loop whose range is computed by a variable

2020-12-10 Thread adam at vany dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98230 Bug ID: 98230 Summary: Bug in Type'Modulus during a loop whose range is computed by a variable Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal

[Bug c++/59238] Dynamic allocating a list-initialized object of a type with private destructor fails.

2020-12-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59238 --- Comment #6 from Jakub Jelinek --- Fixed on the trunk now, not sure if this should be eventually backported or not.

[Bug tree-optimization/98169] isnan pattern not folded

2020-12-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98169 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |11.0 Resolution|---

c++: Name lookup for modules

2020-12-10 Thread Nathan Sidwell
This augments the name lookup with knowledge about the BINDING_VECTOR. That holds per-module namespace bindings, and we need to collect the bindings in visible imports when we do lookup. We also need to do some checking when we're pushing a new decl to check we're not overriding an existing

[Bug tree-optimization/98169] isnan pattern not folded

2020-12-10 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98169 --- Comment #7 from Uroš Bizjak --- (In reply to Jakub Jelinek from comment #6) > Not familiar with the 64-bit vector support myself, CCing Uros on that. PR98218

[Bug rtl-optimization/98229] [11 Regression] ICE at -O1 in 32-bit mode on x86_64-pc-linux-gnu in decompose, at rtl.h:2282

2020-12-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98229 --- Comment #1 from Jakub Jelinek --- Created attachment 49731 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49731=edit gcc11-pr98229.patch Untested fix.

[Bug libstdc++/98226] Slow std::countr_one

2020-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98226 --- Comment #3 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #2) > Oh, but you didn't enable any optimization at all, so who cares about the > performance? I was thinking the same.

[Bug rtl-optimization/98229] [11 Regression] ICE at -O1 in 32-bit mode on x86_64-pc-linux-gnu in decompose, at rtl.h:2282

2020-12-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98229 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug c++/98216] [C++20] std::array template parameter error with negative values

2020-12-10 Thread emmanuel.le-trong--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98216 --- Comment #4 from Emmanuel Le Trong --- Looking at the symbols in your snippet: $ nm -C toto | grep wrapper 00402030 u wrapper::arr That looks like a weird NaN to me.

Re: RFC: ARM MVE and Neon auto-vectorization

2020-12-10 Thread Richard Sandiford via Gcc-patches
Christophe Lyon writes: > On Wed, 9 Dec 2020 at 17:47, Richard Sandiford > wrote: >> >> Christophe Lyon via Gcc-patches writes: >> > Hi, >> > >> > I've been working for a while on enabling auto-vectorization for ARM >> > MVE, and I find it a bit awkward to keep things common with Neon as >> >

Re: [PATCH 1/8 v4] Dead-field warning in structs at LTO-time

2020-12-10 Thread Erick Ochoa
On 10/12/2020 18:39, David Malcolm wrote: On Fri, 2020-12-04 at 10:58 +0100, Erick Ochoa wrote: + // Anonymous fields? (Which the record can be!). + warning (OPT_Wdfa, "RECORD_TYPE %qE has dead field %qE in LTO.\n", + record, field); Others have pointed out

Re: [PATCH] c++: Diagnose unstable satisfaction results

2020-12-10 Thread David Malcolm via Gcc-patches
On Thu, 2020-12-10 at 11:21 -0500, Patrick Palka via Gcc-patches wrote: > + if (entry->diagnose_instability) > + { > + error_at (EXPR_LOCATION (ATOMIC_CONSTR_EXPR (entry->atom)), > + "satisfaction value of atomic constraint %qE changed " > +

[Bug tree-optimization/98169] isnan pattern not folded

2020-12-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98169 Jakub Jelinek changed: What|Removed |Added CC||uros at gcc dot gnu.org --- Comment #6

Re: [PATCH 1/8 v4] Dead-field warning in structs at LTO-time

2020-12-10 Thread David Malcolm via Gcc-patches
On Fri, 2020-12-04 at 10:58 +0100, Erick Ochoa wrote: > + // Anonymous fields? (Which the record can be!). > + warning (OPT_Wdfa, "RECORD_TYPE %qE has dead field %qE in LTO.\n", > + record, field); Others have pointed out that -Wdfa isn't a good name for the

[Bug rtl-optimization/98229] New: ICE at -O1 in 32-bit mode on x86_64-pc-linux-gnu in decompose, at rtl.h:2282

2020-12-10 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
Supported LTO compression algorithms: zlib gcc version 11.0.0 20201210 (experimental) [master revision b46dd03fe94:30c63a5c82a:afc14c8d0a9e7af13698a7eec84226a3cc4b0e67] (GCC) [556] % [556] % gcctk -m32 -O0 -c small.c [557] % [557] % gcctk -m32 -O1 -c small.c during RTL pass: expand small.c

[Bug libstdc++/98226] Slow std::countr_one

2020-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98226 --- Comment #2 from Jonathan Wakely --- Oh, but you didn't enable any optimization at all, so who cares about the performance?

[Bug ada/98228] New: [11 Regression] ICE: Assert_Failure atree.adb:931: Error detected at s-gearop.adb:382:34 [a-ngrear.adb:313:7 [a-nllrar.ads:18:1]] on s390x-linux-gnu

2020-12-10 Thread doko at debian dot org via Gcc-bugs
20201210 on s390x-linux-gnu /<>/build/./gcc/xgcc -B/<>/build/./gcc/ -B/ usr/lib/gcc-snapshot/s390x-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/s390x-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/s390x- linux-gnu/include -isystem /usr/lib/gcc-snapshot/s390x-linux-gnu/sys-include -c -g -O

[Bug libstdc++/98226] Slow std::countr_one

2020-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98226 --- Comment #1 from Jonathan Wakely --- This seems like an optimizer bug. There is no way I'm going to repeat the entire body of countr_zero in countr_one.

Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format

2020-12-10 Thread Jonathan Wakely via Gcc-patches
On 10/12/20 11:14 -0600, Peter Bergner via Libstdc++ wrote: On 12/10/20 10:14 AM, Jonathan Wakely wrote: On 04/12/20 00:35 +, Jonathan Wakely wrote: On 03/12/20 20:07 -0300, Tulio Magno Quites Machado Filho via Libstdc++ wrote: I suggest to replace frexpf128 with __frexpieee128. The

[Bug c++/96124] Template specialization auto

2020-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96124 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/98216] [C++20] std::array template parameter error with negative values

2020-12-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98216 --- Comment #3 from Jonathan Wakely --- Reduced: struct an_array { constexpr bool operator==(const an_array& a) const { return d == a.d; } double d; }; constexpr auto add_array (an_array a, an_array b) { a.d += b.d; return a; }

RE: [PATCH]Arm: Add NEON and MVE RTL patterns for Complex Addition, Multiply and FMA. Fix mve types Fix mve patterns

2020-12-10 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Tamar Christina > Sent: 10 December 2020 17:00 > To: gcc-patches@gcc.gnu.org > Cc: nd ; Ramana Radhakrishnan > ; Richard Earnshaw > ; ni...@redhat.com; Kyrylo Tkachov > > Subject: [PATCH]Arm: Add NEON and MVE RTL patterns for Complex Addition, > Multiply

Re: [PATCH] libstdc++: Add C++ runtime support for new 128-bit long double format

2020-12-10 Thread Peter Bergner via Gcc-patches
On 12/10/20 10:14 AM, Jonathan Wakely wrote: > On 04/12/20 00:35 +, Jonathan Wakely wrote: >> On 03/12/20 20:07 -0300, Tulio Magno Quites Machado Filho via Libstdc++ >> wrote: >>> I suggest to replace frexpf128 with __frexpieee128. >>> >>> The former is available on a glibc that support

[Bug ada/98227] New: [11 Regression] ICE: tree check: expected tree that contains 'decl common' structure, have 'constructor' in get_section, at varasm.c:297 on riscv64-linux-gnu

2020-12-10 Thread doko at debian dot org via Gcc-bugs
Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- trunk 20201210 ftbfs

  1   2   3   >