Re: gcc/DATESTAMP not updated any longer

2020-11-08 Thread Martin Liška
On 11/6/20 8:59 PM, Jakub Jelinek wrote: I think I'll work with Martin early next week to think about further spots to add logging, so we narrow down where it is still called and where it isn't. Hello. I'm suggesting to use the following extra logging. Martin >From

Re: Definition of EAF_NOESCAPE and fnspec strings

2020-11-08 Thread Richard Biener
On Sun, 8 Nov 2020, Jan Hubicka wrote: > Hi, > I implemented simple propagation of EAF arguments for ipa-modref (that is not > hard to do). My main aim was to detect cases where THIS parameter does not > escape but is used to read/write pointed to memory. This is meant to > avoid poor code

[Bug lto/80379] Redundant note: code may be misoptimized unless -fno-strict-aliasing is used

2020-11-08 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80379 --- Comment #3 from Jan Hubicka --- The problem here is that the hint is output at decl merging and -fno-strict-aliasing is a function local flag. At that time we do not even know what functions will be since units are not streamed in yet. This

[Bug tree-optimization/97761] New: [11 Regression] ICE in vectorizable_live_operation, at tree-vect-loop.c:8689

2020-11-08 Thread asolokha at gmx dot com via Gcc-bugs
nfo*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*, int, bool, vec*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20201108/work/gcc-11-20201108/gcc/tree-vect-loop.c:8689 0x10b8087 can_vectorize_live_stmts /var/tmp/portage/cross-powerpc-e30

[Bug c++/93008] Need a way to make inlining heuristics ignore whether a function is inline

2020-11-08 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93008 --- Comment #6 from Jan Hubicka --- I just noticed this PR and wonder if there is anything to do on inliner side. It uses DECL_DECLARED_INLINE that was invented to distinguish between implicit inlines and explicit ones. So even if it would be

Re: [PATCH] libiberty/pex-win32.c: Initialize orig_err

2020-11-08 Thread Christophe Lyon via Gcc-patches
On Sat, 7 Nov 2020 at 00:59, Jeff Law wrote: > > > On 9/18/20 6:33 AM, Christophe Lyon wrote: > > On Thu, 17 Sep 2020 at 23:33, Jeff Law wrote: > >> > >> On 9/14/20 3:29 AM, Christophe Lyon via Gcc-patches wrote: > >>> Initializing orig_err avoids a warning: "may be used uninitialized". > >>> >

Re: [24/32] module mapper

2020-11-08 Thread Boris Kolpackov
I've noticed the following issues with the module mapper in the -fdirectives-only mode: 1. When partially preprocessing the module interface unit, the mapper receives the MODULE-EXPORT request that's unnecessary (BMI is not written): g++ ... -x c++ -E -fdirectives-only -o hello.gcm.ii

[Bug rtl-optimization/97756] Inefficient handling of 128-bit arguments

2020-11-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97756 --- Comment #1 from Thomas Koenig --- Actually, it was on a Ryzen 1700 (for the -march=native). I'm at odds with architecture names...

Re: [04/32] cpp lexer

2020-11-08 Thread Boris Kolpackov
Nathan Sidwell writes: > > This doesn't seem to match the code to go into directives mode all that > > well.? You don't reset pragma_allow_expansion or directive_line. > > Hm, yeah. I think neither of those fields have any bearing in > non-directives mode, and always get set when entering

Eco-friendly paper bowls 20201109

2020-11-08 Thread ZEEHENG PAK via Gcc-patches
Dear: Zeeheng manufacture here, exporting CLEAR PLASTIC CUP/PAPER BOWL/COFFEE CUP with good quality and low price. Call me, let’s talk details. Rgds, Luke.zhang

[Patch, testsuite]: Update MicroBlaze strings test

2020-11-08 Thread Nagaraju Mekala
Hello All, for new scan-assembly output resulting in use of $LC label gcc/testsuite/ChangeLog: * gcc.target/microblaze/others/strings1.c: Update to include $LC label. --- gcc/testsuite/ChangeLog | 5 +

[Bug rtl-optimization/97705] [11 regression] cc.c-torture/unsorted/dump-noaddr.c.*r.ira fails after r11-4637

2020-11-08 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97705 Kewen Lin changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Patch, microblaze]: Correct the const high double immediate value

2020-11-08 Thread Nagaraju Mekala
Hello All, This patch will load the DI mode immediate values from REAL_VALUE_FROM_CONST_DOUBLE and REAL_VALUE_TO_TARGET_DOUBLE functions, as CONST_DOUBLE_HIGH was returning the sign extension value even for the unsigned long long constants also gcc/ChangeLog: *

[Bug libstdc++/97759] Could std::has_single_bit be faster?

2020-11-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 Thomas Koenig changed: What|Removed |Added Keywords||missed-optimization

Re: [PATCH]ira: recompute regstat as max_regno changes [PR97705]

2020-11-08 Thread Kewen.Lin via Gcc-patches
Hi Vladimir, on 2020/11/6 下午10:49, Vladimir Makarov wrote: > > On 2020-11-06 1:15 a.m., Kewen.Lin wrote: >> Hi, >> >> As PR97705 shows, my commit r11-4637 caused some dumping >> comparison difference error on pass ira.  It exposed one >> issue about the newly introduced function

[Bug rtl-optimization/97705] [11 regression] cc.c-torture/unsorted/dump-noaddr.c.*r.ira fails after r11-4637

2020-11-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97705 --- Comment #5 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:ce4ae1f4893e322495c5d24b2f0e807a7f7cf92f commit r11-4827-gce4ae1f4893e322495c5d24b2f0e807a7f7cf92f Author: Kewen Lin Date: Sun Nov 8

RE: [PATCH PR94442] [AArch64] Redundant ldp/stp instructions emitted at -O3

2020-11-08 Thread xiezhiheng
> -Original Message- > From: Richard Sandiford [mailto:richard.sandif...@arm.com] > Sent: Tuesday, November 3, 2020 9:57 PM > To: xiezhiheng > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH PR94442] [AArch64] Redundant ldp/stp instructions > emitted at -O3 > > Thanks, I pushed both

[Bug tree-optimization/97760] GCC outputs wrong values when compiling the testcase with -O3

2020-11-08 Thread yangyang305 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97760 --- Comment #1 from yangyang --- Created attachment 49521 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49521=edit testcase

[Bug tree-optimization/97760] New: GCC outputs wrong values when compiling the testcase with -O3

2020-11-08 Thread yangyang305 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97760 Bug ID: 97760 Summary: GCC outputs wrong values when compiling the testcase with -O3 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

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

2020-11-08 Thread HAO CHEN GUI via Gcc-patches
Hi, This patch adds a new pattern in 4-insn combine. It supports the following sign_extend(op: zero_extend, zero_extend) optimization. In the patch, newpat is split twice. The first split becomes newi1pat and the second becomes newi2pat. They replace i1, i2 and i3 if all of them can be

What rules should be followed when passing values with libcall?

2020-11-08 Thread gengqi via Gcc
I’m woking on TARGET_PROMOTE_FUNCTION_MODE for csky, and now there’s some confusion. For csky, the “POMOTE_MODE” is: qi/hi -> si the code is #define PROMOTE_MODE(MODE, UNSIGNEDP, TYPE) \ if (GET_MODE_CLASS (MODE) == MODE_INT \ && GET_MODE_SIZE (MODE) < UNITS_PER_WORD) \

Why does -march=x86-64-v[234] require SysV psABI?

2020-11-08 Thread Tomasz Konojacki
The current development docs say: >‘x86-64-v2’ >‘x86-64-v3’ >‘x86-64-v4’ > > These choices for cpu-type select the corresponding > micro-architecture level from the x86-64 psABI. They are only available > when compiling for an x86-64 target that uses the System V psABI. > > Since these cpu-type

[Bug libstdc++/97759] New: Could std::has_single_bit implementation be faster?

2020-11-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 Bug ID: 97759 Summary: Could std::has_single_bit implementation be faster? Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[PATCH] Hurd: Enable ifunc by default

2020-11-08 Thread Samuel Thibault
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 | *-*-kopensolaris*-gnu). --- gcc/config.gcc | 4 +++- 1 file changed, 3 insertions(+), 1

[Bug libstdc++/97758] New: bits/std_function.h: error: unknown type name 'type_info' when using -fno-exceptions -fno-rtti

2020-11-08 Thread romain.geissler at amadeus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97758 Bug ID: 97758 Summary: bits/std_function.h: error: unknown type name 'type_info' when using -fno-exceptions -fno-rtti Product: gcc Version: 11.0 Status: UNCONFIRMED

gcc-11-20201108 is now available

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

[Bug tree-optimization/97757] [11 Regression] fortran save_6.f90 fails with a segv for -flto -O >= 2

2020-11-08 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97757 Iain Sandoe changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/97757] New: [11 Regression] fortran save_6.f90 fails with a segv for -flto -O >= 2

2020-11-08 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97757 Bug ID: 97757 Summary: [11 Regression] fortran save_6.f90 fails with a segv for -flto -O >= 2 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/97756] New: Inefficient handling of 128-bit arguments

2020-11-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97756 Bug ID: 97756 Summary: Inefficient handling of 128-bit arguments Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component:

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

2020-11-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 --- Comment #17 from Thomas Koenig --- To be compilable, my previous code lacks typedef __uint128_t mytype; > #define ONE ((__uint128_t) 1)

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

2020-11-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 --- Comment #16 from Thomas Koenig --- (In reply to Jakub Jelinek from comment #15) > I plan to work on this early in stage3. > And we really shouldn't use any tables, GCC should figure it all out. > So, for double-word modulo by constant that

[Bug c++/97755] Explicit default constructor is called during copy-list-initialization with a warning only

2020-11-08 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97755 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

Improve handling of memory operands in ipa-icf 1/4

2020-11-08 Thread Jan Hubicka
Hello, I would like to finally address the problem with ipa-icf being overly conservating on memory operand equality and having overly weak hash function. This leads to code size, compile time and compile time memory use regressions sompared to earlier versions where we merged more aggressively

[Bug c++/51242] [C++11] Unable to use strongly typed enums as bit fields

2020-11-08 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51242 Barry Revzin changed: What|Removed |Added CC||barry.revzin at gmail dot com ---

[Bug c++/97755] New: Explicit default constructor is called during copy-list-initialization with a warning only

2020-11-08 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97755 Bug ID: 97755 Summary: Explicit default constructor is called during copy-list-initialization with a warning only Product: gcc Version: 10.2.0 Status: UNCONFIRMED

[PATCH] 2/2 Remove debug/array

2020-11-08 Thread François Dumont via Gcc-patches
Following a recent fix on std::array this test started to fail in _GLIBCXX_DEBUG mode. FAIL: 23_containers/array/comparison_operators/96851.cc (test for excess errors) Rather than fixing it and now that __glibcxx_assert is constexpr compatible I would like to propose to simply remove

[PATCH] 1/2 Make _GLIBCXX_DEBUG checks constexpr compatible

2020-11-08 Thread François Dumont via Gcc-patches
Now that __glibcxx_assert is constexpr compatible we can do the same for the _GLIBCXX_DEBUG equivalent. I had also try to do the same on my own so this patch contains the string_view tests I had written when doing so. I plan to activate some _GLIBCXX_DEBUG checks when _GLIBCXX_ASSERTIONS is

Definition of EAF_NOESCAPE and fnspec strings

2020-11-08 Thread Jan Hubicka
Hi, I implemented simple propagation of EAF arguments for ipa-modref (that is not hard to do). My main aim was to detect cases where THIS parameter does not escape but is used to read/write pointed to memory. This is meant to avoid poor code produced when we i.e. offline destructors on cold

[Bug fortran/97589] Segementation fault when allocating coarrays.

2020-11-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97589 --- Comment #3 from Thomas Koenig --- Simplified test case: program main type foo real, allocatable, dimension(:) :: a[:] end type foo type (foo) :: x sync all allocate (x%a(10)[*]) end program main

[pushed] Objective-C/C++ : Handle parsing @property 'class' attribute.

2020-11-08 Thread Iain Sandoe
Hi (this change reused the existing ‘class’ keyword and RID, so only needed Objective-C context modifications). tested on x86_64-darwin, x86_64-linux-gnu, pushed to master, thanks Iain This attribute states that a property is one manipulated by class methods (it requires a static

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

2020-11-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 --- Comment #15 from Jakub Jelinek --- I plan to work on this early in stage3. And we really shouldn't use any tables, GCC should figure it all out. So, for double-word modulo by constant that would be expanded using a libcall, go for x from the

Re: gcc/DATESTAMP not updated any longer

2020-11-08 Thread Iain Sandoe via Gcc
Iain Sandoe via Gcc wrote: Jakub Jelinek via Gcc wrote: On Fri, Nov 06, 2020 at 08:56:25PM +0100, Richard Biener wrote: Darwin: Darwin 20 is to be macOS 11 (Big Sur). So, I'm afraid it must fail or bypass this code path somewhere earlier in the hooks. Is that maybe already known to the

[Bug testsuite/97680] [11 Regression] new test case c-c++-common/zero-scratch-regs-10.c in r11-4578 has excess errors

2020-11-08 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97680 --- Comment #6 from Iain Sandoe --- (In reply to Iain Sandoe from comment #5) > I added xfail-if for powerpc-darwin (8,9, 10 and 11). > > https://gcc.gnu.org/pipermail/gcc-cvs/2020-November/336720.html > > Since i don't think I will have time

[pushed] testsuite, Darwin, X86 : Add target requires native tls to test.

2020-11-08 Thread Iain Sandoe
Hi The builtin_thread_pointer test does not work for emulated TLS. Add a target requires to cover this. tested on x86_64-darwin, x86_64-linux-gnu pushed to master, Iain gcc/testsuite/ChangeLog: * gcc.target/i386/builtin_thread_pointer.c: Require native TLS. ---

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

2020-11-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 --- Comment #14 from Thomas Koenig --- Created attachment 49520 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49520=edit Numbers a, b so that 2^b ≡ 1 mod a up to b=64, larger b taken if several solutions exist, plus the multiplicative

[Bug c/78352] GCC lacks support for the Apple "blocks" extension to the C family of languages

2020-11-08 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78352 --- Comment #15 from Iain Sandoe --- (In reply to Fabian Groffen from comment #14) > (In reply to Eric Gallager from comment #13) > > If we could get in touch with an actual lawyer to review which laws > > specifically are getting in the way

[Bug c/78352] GCC lacks support for the Apple "blocks" extension to the C family of languages

2020-11-08 Thread grobian at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78352 --- Comment #14 from Fabian Groffen --- (In reply to Eric Gallager from comment #13) > If we could get in touch with an actual lawyer to review which laws > specifically are getting in the way here, that could be helpful. I won my > election to