Re: [PATCH] libgccjit: Add support for types used by atomic builtins [PR96066] [PR96067]

2021-12-03 Thread Antoni Boucher via Gcc-patches
David: PING In case you missed it, that's the last patch left to review for now. Le dimanche 21 novembre 2021 à 16:44 -0500, Antoni Boucher a écrit : > Thanks for the review! > I updated the patch. > > See notes below. > > Le samedi 20 novembre 2021 à 13:50 -0500, David Malcolm a écrit : > >

[PATCH v2] c++: Handle auto(x) in parameter-declaration-clause [PR103401]

2021-12-03 Thread Marek Polacek via Gcc-patches
On Thu, Dec 02, 2021 at 12:56:38PM -0500, Jason Merrill wrote: > On 12/2/21 10:27, Marek Polacek wrote: > > On Wed, Dec 01, 2021 at 11:24:58PM -0500, Jason Merrill wrote: > > > On 12/1/21 10:16, Marek Polacek wrote: > > > > In C++23, auto(x) is valid, so decltype(auto(x)) should also be valid, > >

Re: [PATCH] fix up compute_objsize (including PR 103143)

2021-12-03 Thread Jeff Law via Gcc-patches
On 11/8/2021 7:34 PM, Martin Sebor via Gcc-patches wrote: The pointer-query code that implements compute_objsize() that's in turn used by most middle end access warnings now has a few warts in it and (at least) one bug.  With the exception of the bug the warts aren't behind any user-visible

Re: [PATCH] rs6000: Builtins test changes for test_fpscr_[d]rn_builtin_error.c

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/2/21 4:24 PM, Segher Boessenkool wrote: > On Thu, Dec 02, 2021 at 10:43:24AM -0600, Bill Schmidt wrote: >> The new built-in infrastructure is now enabled! > > Congratulations, and thanks for all the work! A big +1! Peter

Re: [PATCH v2] rs6000: Fix some issues in rs6000_can_inline_p [PR102059]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/2/21 9:46 PM, Kewen.Lin via Gcc-patches wrote: > on 2021/11/30 上午12:57, Segher Boessenkool wrote: >> On Wed, Sep 01, 2021 at 02:55:51PM +0800, Kewen.Lin wrote: >>> This patch is to fix the inconsistent behaviors for non-LTO mode >>> and LTO mode. As Martin pointed out, currently the

Re: [PATCH] libcpp: Fix up handling of deferred pragmas [PR102432]

2021-12-03 Thread Marek Polacek via Gcc-patches
On Fri, Dec 03, 2021 at 11:27:27AM +0100, Jakub Jelinek wrote: > Hi! > > The https://gcc.gnu.org/pipermail/gcc-patches/2020-November/557903.html > change broke the following testcases. The problem is when a pragma > namespace allows expansion (i.e. p->is_nspace && p->allow_expansion), > e.g. the

[committed] libstdc++: Simplify emplace member functions in _Rb_tree

2021-12-03 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. This introduces a new RAII type to simplify the emplace members which currently use try-catch blocks to deallocate a node if an exception is thrown by the comparisons done during insertion. The new type is created on the stack and manages the allocation

Re: std::basic_string<_Tp> constructor point of instantiation woes?

2021-12-03 Thread Jonathan Wakely via Gcc-patches
On Mon, 22 Nov 2021 at 16:31, Stephan Bergmann via Libstdc++ wrote: > > When using recent libstc++ trunk with Clang in C++20 mode, > std::u16string literals as in > > > #include > > int main() { > > using namespace std::literals; > > u""s; > > } > > started to cause linker failures due to

Re: rs6000: Fix up flag_shrink_wrap handling in presence of -mrop-protect [PR101324]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/3/21 3:27 PM, Peter Bergner wrote: > On 12/3/21 2:39 PM, Peter Bergner wrote: >> On 10/29/21 4:45 PM, Segher Boessenkool wrote: >>> On Wed, Oct 27, 2021 at 10:17:39PM -0500, Peter Bergner wrote: 2021-10-27 Martin Liska gcc/ PR target/101324 *

[pushed] c++: avoid redundant scope in diagnostics

2021-12-03 Thread Jason Merrill via Gcc-patches
We can make some function signatures shorter to print by omitting redundant nested-name-specifiers in the rest of the declarator. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: * error.c (current_dump_scope): New variable. (dump_scope): Check it.

[PATCH] pru: Fixup flags for .pru_irq_map section

2021-12-03 Thread Dimitar Dimitrov
I intend to merge this patch next week, unless I hear objections. I consider it a bug fix which fits the Stage 3 criteria. It fixes the RPMSG firmware examples in the latest version 6.0 of TI's PRU Software Package. The .pru_irq_map section has been introduced by Linux kernel 5.10:

Re: rs6000: Fix up flag_shrink_wrap handling in presence of -mrop-protect [PR101324]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/3/21 2:39 PM, Peter Bergner wrote: > On 10/29/21 4:45 PM, Segher Boessenkool wrote: >> On Wed, Oct 27, 2021 at 10:17:39PM -0500, Peter Bergner wrote: >>> 2021-10-27 Martin Liska >>> >>> gcc/ >>> PR target/101324 >>> * config/rs6000/rs6000.c (rs6000_option_override_internal): Move

[PATCH 2/2] Use dominators to reduce ranger cache-flling.

2021-12-03 Thread Andrew MacLeod via Gcc-patches
When a request is made for the range of an ssa_name at some location, the first thing we do is invoke range_of_stmt() to ensure we have looked at the definition and have an evaluation for the name at a global level.  I recently added a patch which dramatically reduces the call stack

[PATCH 1/2] - Add BB option for outgoing_edge_range_p.

2021-12-03 Thread Andrew MacLeod via Gcc-patches
has_edge_range_p() and may_recompute_p() currently only take an optional edge as a parameter.  They only indicate if a range *might* be calculated for a name, but they do not do any calculations. To determine the results, they always consult the exports for the edge->src block. the value is

Re: rs6000: Fix up flag_shrink_wrap handling in presence of -mrop-protect [PR101324]

2021-12-03 Thread Peter Bergner via Gcc-patches
On 10/29/21 4:45 PM, Segher Boessenkool wrote: > On Wed, Oct 27, 2021 at 10:17:39PM -0500, Peter Bergner wrote: >> 2021-10-27 Martin Liska >> >> gcc/ >> PR target/101324 >> * config/rs6000/rs6000.c (rs6000_option_override_internal): Move the >> disabling of shrink-wrapping when

Re: [PATCH] rs6000: testsuite: Add rop_ok effective-target function

2021-12-03 Thread Peter Bergner via Gcc-patches
On 12/2/21 5:15 PM, Segher Boessenkool wrote: >> Tested on powerpc64le*-linux with no regressions. Ok for mainline? > > What can "*" be there other than the empty string? Which valuse of "*" > did you test? :-) Heh, too used to typing powerpc64*-linux. Yeah, in this case * == "". > Okay

[PATCH v3] elf: Add _dl_find_object function

2021-12-03 Thread Florian Weimer via Gcc-patches
It can be used to speed up the libgcc unwinder, and the internal _dl_find_dso_for_object function (which is used for caller identification in dlopen and related functions, and in dladdr). _dl_find_object is in the internal namespace due to bug 28503. If libgcc switches to _dl_find_object, this

[PATCH take #2] PR target/43892: Some carry flag (CA) optimizations on PowerPC.

2021-12-03 Thread Roger Sayle
Doh! This time with the patch attached... This patch resolves PR target/43892 (suboptimal add with carry) by adding four new define_insn_and_split to the rs6000 backend, that all recognize pairs of instructions where the first instruction sets the carry flag and the second one consumes it. It

Re: [PATCH] c++, v2: Allow indeterminate unsigned char or std::byte in bit_cast - P1272R4

2021-12-03 Thread Jason Merrill via Gcc-patches
On 12/2/21 15:56, Jakub Jelinek wrote: On Thu, Dec 02, 2021 at 03:32:58PM -0500, Jason Merrill wrote: So IMHO we need the patch I've posted (with the testcases slightly adjusted not to do those extra copies afterwards for now), and try to deal with the lvalue-to-rvalue conversion of

Re: [PATCH v2] c++: Fix for decltype(auto) and parenthesized expr [PR103403]

2021-12-03 Thread Jason Merrill via Gcc-patches
On 12/2/21 18:12, Marek Polacek wrote: On Wed, Dec 01, 2021 at 11:16:27PM -0500, Jason Merrill wrote: On 12/1/21 10:16, Marek Polacek wrote: In r11-4758, I tried to fix this problem: int & = 0; decltype(auto) j = i; // should behave like int & = i; error wherein do_auto_deduction was

[PATCH 6/6] rs6000: Rename arrays to remove temporary _x suffix

2021-12-03 Thread Bill Schmidt via Gcc-patches
From: Bill Schmidt Hi! While we had two sets of built-in infrastructure at once, I added _x as a suffix to two arrays to disambiguate the old and new versions. Time to fix that also. Bootstrapped and tested on powerpc64le-linux-gnu with no regressions. Is this okay for trunk? Thanks! Bill

[PATCH 5/6] rs6000: Rename functions with "new" in their names

2021-12-03 Thread Bill Schmidt via Gcc-patches
From: Bill Schmidt Hi! While we had two sets of built-in functionality at the same time, I put "new" in the names of quite a few functions. Time to undo that. Bootstrapped and tested on powerpc64le-linux-gnu with no regressions. Is this okay for trunk? Thanks! Bill 2021-12-02 Bill Schmidt

[PATCH 3/6] rs6000: Rename rs6000-builtin-new.def to rs6000-builtins.def

2021-12-03 Thread Bill Schmidt via Gcc-patches
From: Bill Schmidt Hi! This patch just renames a file and updates the build machinery accordingly. Bootstrapped and tested on powerpc64le-linux-gnu with no regressions. Is this okay for trunk? Thanks! Bill 2021-12-02 Bill Schmidt gcc/ * config/rs6000/rs6000-builtin-new.def:

[PATCH 0/6] rs6000: Remove "old" built-in function infrastructure

2021-12-03 Thread Bill Schmidt via Gcc-patches
From: Bill Schmidt Hi! Now that the new built-in function support is all upstream and enabled, it seems safe and prudent to remove the old code to avoid confusion. I broke this up to the extent possible, but the first patch is a bit large and messy because so many dead functions have to be

Re: [PATCH] rs6000: Fix use of wrong enum for built-in function code.

2021-12-03 Thread Bill Schmidt via Gcc-patches
On 12/3/21 10:26 AM, Segher Boessenkool wrote: > Hi! > > On Thu, Dec 02, 2021 at 04:53:18PM -0600, Bill Schmidt wrote: >> I discovered this bug while working on patches to remove the old built-ins >> infrastructure. I missed a spot in converting from the rs6000_builtins enum >> to >> the

Re: PING^1 [PATCH] x86: Add -mmove-max=bits and -mstore-max=bits

2021-12-03 Thread H.J. Lu via Gcc-patches
On Fri, Dec 3, 2021 at 8:55 AM Uros Bizjak wrote: > > On Fri, Dec 3, 2021 at 2:24 PM H.J. Lu wrote: > > > > On Thu, Nov 25, 2021 at 2:47 PM H.J. Lu wrote: > > > > > > Add -mmove-max=bits and -mstore-max=bits to enable 256-bit/512-bit move > > > and store, independent of

Re: [PATCH 0/4] Add aarch64-darwin support for off-stack trampolines

2021-12-03 Thread Jeff Law via Gcc-patches
On 12/3/2021 12:53 AM, Iain Sandoe wrote: On 3 Dec 2021, at 03:12, Jeff Law wrote: On 11/22/2021 7:49 AM, Maxim Blinov wrote: Hi all, apologies for forgetting to add the cover letter. No worries. I'd already assumed this was to support aarch64 trampolines on darwin by having them

[PATCH] x86: Scan leal in PR target/83782 tests for x32

2021-12-03 Thread H.J. Lu via Gcc-patches
Update PR target/83782 tests to scan leal for x32 to fix: FAIL: gcc.target/i386/pr83782-1.c scan-assembler leaq[ \\t]foo\\(%rip\\),[ \\t]%rax FAIL: gcc.target/i386/pr83782-2.c scan-assembler leaq[ \\t]foo\\(%rip\\),[ \\t]%rax PR target/83782 * gcc.target/i386/pr83782-1.c: Also

Re: [PATCH, v2, OpenMP 5.0] Remove array section base-pointer mapping semantics, and other front-end adjustments (mainline trunk)

2021-12-03 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 19, 2021 at 09:54:12PM +0800, Chung-Lin Tang wrote: > 2021-11-19 Chung-Lin Tang > > gcc/c/ChangeLog: > > * c-parser.c (struct omp_dim): New struct type for use inside > c_parser_omp_variable_list. > (c_parser_omp_variable_list): Allow multiple levels of array and

Re: PING^1 [PATCH] x86: Add -mmove-max=bits and -mstore-max=bits

2021-12-03 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 3, 2021 at 2:24 PM H.J. Lu wrote: > > On Thu, Nov 25, 2021 at 2:47 PM H.J. Lu wrote: > > > > Add -mmove-max=bits and -mstore-max=bits to enable 256-bit/512-bit move > > and store, independent of -mprefer-vector-width=bits: > > > > 1. Add X86_TUNE_AVX512_MOVE_BY_PIECES and

Re: [PATCH, v5, OpenMP 5.0] Improve OpenMP target support for C++ [PR92120 v5]

2021-12-03 Thread Jakub Jelinek via Gcc-patches
On Tue, Nov 16, 2021 at 08:43:27PM +0800, Chung-Lin Tang wrote: > 2021-11-16 Chung-Lin Tang > > PR middle-end/92120 > > gcc/cp/ChangeLog: > > * cp-tree.h (finish_omp_target): New declaration. > (finish_omp_target_clauses): Likewise. > * parser.c

Re: Dominators question

2021-12-03 Thread Richard Biener via Gcc-patches
On December 3, 2021 3:15:25 PM GMT+01:00, Andrew MacLeod wrote: >When something like the loop unswitching code adds elements to the CFGs, >does this invalidate the dominators? or are they updated?  or is it in >an in between state. > >Im curious because a) the relation code uses it under the

Re: [PATCH] rs6000: Fix use of wrong enum for built-in function code.

2021-12-03 Thread Segher Boessenkool
Hi! On Thu, Dec 02, 2021 at 04:53:18PM -0600, Bill Schmidt wrote: > I discovered this bug while working on patches to remove the old built-ins > infrastructure. I missed a spot in converting from the rs6000_builtins enum > to > the rs6000_gen_builtins enum. This fixes it. The fix is

Re: [PATCH v2 0/2] RISC-V: add gcc support for Scalar Cryptography v1.0.0-rc6

2021-12-03 Thread Kito Cheng via Gcc-patches
Hi SiYu: Committed, thanks! On Thu, Nov 25, 2021 at 12:42 AM Palmer Dabbelt wrote: > > On Wed, 24 Nov 2021 02:00:33 PST (-0800), Kito Cheng wrote: > > I would prefer to accept those patchset even with no builtin function > > or intrinsic function yet, > > this not only add the support of -march

Re: [Patch 3/8, Arm, GCC] Add option -mbranch-protection. [Was RE: [Patch 2/7, Arm, GCC] Add option -mbranch-protection.]

2021-12-03 Thread Richard Earnshaw via Gcc-patches
On 28/10/2021 12:42, Tejas Belagod via Gcc-patches wrote: -Original Message- From: Richard Earnshaw Sent: Monday, October 11, 2021 1:58 PM To: Tejas Belagod ; gcc-patches@gcc.gnu.org Subject: Re: [Patch 2/7, Arm, GCC] Add option -mbranch-protection. On 08/10/2021 13:17, Tejas

[PATCH 2/2] RISC-V: Minimal support of vector extensions

2021-12-03 Thread Kito Cheng
gcc/ChangeLog: * common/config/riscv/riscv-common.c (riscv_implied_info): Add vector extensions. (riscv_ext_version_table): Add version info for vector extensions. (riscv_ext_flag_table): Add option mask for vector extensions. * config/riscv/riscv-opts.h

[PATCH 1/2] RISC-V: Allow extension name contain digit

2021-12-03 Thread Kito Cheng
RISC-V spec only allow alphabetical name for extension before, however vector extension add several extension named with digits, so we try to extend the naming rule. Ref: https://github.com/riscv/riscv-isa-manual/pull/718 gcc/ChangeLog: * common/config/riscv/riscv-common.c

[PATCH 0/2] RISC-V: Vector extensions support

2021-12-03 Thread Kito Cheng
This patch set adding basic -march option support and feature test marco for vector extensions, and also extend the syntax of arch string for vector extensions, although that should change RISC-V ISA manual first would be better, but we don't got response[1] yet, and that will block whole vector

Re: [EXTERNAL] Re: [PATCH][WIP] PR tree-optimization/101808 Boolean comparison simplification

2021-12-03 Thread Jeff Law via Gcc-patches
On 11/29/2021 4:51 PM, Navid Rahimi wrote: Jeff, Sorry for bringing back this thread. Quick question, you mentioned checking the TYPE_PRECISION to make sure the type is a canonical Boolean type (and not a fancy signed/unsigned Boolean type from Ada Andrew mentioned). But I noticed that

Re: [PATCH] Improve AutoFDO count propagation algorithm

2021-12-03 Thread Jeff Law via Gcc-patches
On 12/2/2021 7:53 PM, Eugene Rozenfeld via Gcc-patches wrote: When a basic block A has been annotated with a count and it has only one successor (or predecessor) B, we can propagate the A's count to B. The algorithm without this change could leave B without an annotation if B had other

Re: [Patch 2/8, Arm, GCC] Add Armv8.1-M Mainline target feature +pacbti. [Was RE: [Patch 1/7, Arm, GCC] Add Armv8.1-M Mainline target feature +pacbti.]

2021-12-03 Thread Richard Earnshaw via Gcc-patches
On 28/10/2021 12:41, Tejas Belagod via Gcc-patches wrote: -Original Message- From: Richard Earnshaw Sent: Monday, October 11, 2021 1:29 PM To: Tejas Belagod ; gcc-patches@gcc.gnu.org Subject: Re: [Patch 1/7, Arm, GCC] Add Armv8.1-M Mainline target feature +pacbti. On 08/10/2021

Re: [Patch] libgomp.texi: Update OMP_PLACES

2021-12-03 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 20, 2021 at 12:54:05PM +0200, Tobias Burnus wrote: > libgomp/ChangeLog: > > * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes. > > diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi > index e9fa8ba0bf7..aee82ef2ba2 100644 > --- a/libgomp/libgomp.texi >

Re: [PATCH v2] regrename: Skip renaming if instruction is noop move.

2021-12-03 Thread Jeff Law via Gcc-patches
On 12/2/2021 9:26 PM, Jojo R wrote: Skip renaming if instruction is noop move, and it will been removed for performance. gcc/ * regrename.c (find_rename_reg): Return satisfied regno if instruction is noop move. OK jeff

Re: [PR103028] test ifcvt trap_if seq more strictly after reload

2021-12-03 Thread Jeff Law via Gcc-patches
On 12/3/2021 2:21 AM, Alexandre Oliva via Gcc-patches wrote: When -fif-conversion2 is enabled, we attempt to replace conditional branches around unconditional traps with conditional traps. That canonicalizes compares, which may change an immediate that barely fits into one that doesn't. The

Re: [Patch 1/8, Arm, AArch64, GCC] Refactor mbranch-protection option parsing and make it common to AArch32 and AArch64 backends. [Was RE: [Patch 2/7, Arm, GCC] Add option -mbranch-protection.]

2021-12-03 Thread Richard Earnshaw via Gcc-patches
On 30/11/2021 11:11, Andrea Corallo via Gcc-patches wrote: Tejas Belagod via Gcc-patches writes: Ping for this series. Thanks, Tejas. Hi all, pinging this series. BR Andrea It would be easier to find the 'series' if the messages were properly threaded together... R.

Re: [Patch 1/8, Arm, AArch64, GCC] Refactor mbranch-protection option parsing and make it common to AArch32 and AArch64 backends. [Was RE: [Patch 2/7, Arm, GCC] Add option -mbranch-protection.]

2021-12-03 Thread Richard Earnshaw via Gcc-patches
On 10/11/2021 13:55, Andrea Corallo via Gcc-patches wrote: Tejas Belagod via Gcc-patches writes: [...] This change refactors all the mbranch-protection option parsing code and types to make it common to both AArch32 and AArch64 backends. This change also pulls in some supporting types

Re: [patch] Fortran/OpenMP: Support most of 5.1 atomic extensions

2021-12-03 Thread Jakub Jelinek via Gcc-patches
On Mon, Nov 15, 2021 at 12:29:31PM +0100, Tobias Burnus wrote: > --- a/gcc/fortran/dump-parse-tree.c > +++ b/gcc/fortran/dump-parse-tree.c > @@ -1926,6 +1930,22 @@ show_omp_clauses (gfc_omp_clauses *omp_clauses) >fputc (' ', dumpfile); >fputs (memorder, dumpfile); > } > + if

Dominators question

2021-12-03 Thread Andrew MacLeod via Gcc-patches
When something like the loop unswitching code adds elements to the CFGs, does this invalidate the dominators? or are they updated?  or is it in an in between state. Im curious because a) the relation code uses it under the covers, and b) Im looking to add a ranger caching improvement which

Re: [PATCH] Loop unswitching: support gswitch statements.

2021-12-03 Thread Andrew MacLeod via Gcc-patches
On 12/2/21 11:02, Martin Liška wrote: On 12/2/21 15:27, Andrew MacLeod wrote: ranger->gori().outgoing_edge_range_p (irange , edge e, tree name, *get_global_range_query ()); Thank you! It works for me! Martin btw, this applies to names not  on the stmt as well.   The function returns TRUE

PING^1 [PATCH] x86: Add -mmove-max=bits and -mstore-max=bits

2021-12-03 Thread H.J. Lu via Gcc-patches
On Thu, Nov 25, 2021 at 2:47 PM H.J. Lu wrote: > > Add -mmove-max=bits and -mstore-max=bits to enable 256-bit/512-bit move > and store, independent of -mprefer-vector-width=bits: > > 1. Add X86_TUNE_AVX512_MOVE_BY_PIECES and X86_TUNE_AVX512_STORE_BY_PIECES > which are enabled for Intel Sapphire

Re: [PATCH] PR fortran/103505 - ICE in compare_bound_mpz_t, at fortran/resolve.c:4587

2021-12-03 Thread Mikael Morin
On 02/12/2021 22:48, Harald Anlauf via Fortran wrote: Dear Fortranners, specifying invalid constant array declarations (e.g. real array bounds) could lead to an ICE because the array specs were checked for consistency. A possible solution is to try an early simplification before doing that

Re: [PATCH v2] [AARCH64] Fix PR target/103100 -mstrict-align and memset on not aligned buffers

2021-12-03 Thread Richard Sandiford via Gcc-patches
Andrew Pinski via Gcc-patches writes: > On Thu, Nov 18, 2021 at 5:55 PM apinski--- via Gcc-patches > wrote: >> >> From: Andrew Pinski >> >> The problem here is that aarch64_expand_setmem does not change the alignment >> for strict alignment case. This is a simplified patch from what I had >>

Re: [PATCH 2/5]AArch64 sve: combine nested if predicates

2021-12-03 Thread Richard Sandiford via Gcc-patches
Tamar Christina writes: >> This hashing looks unnecessarily complex. The values we're hashing are >> vector SSA_NAMEs, so I think we should be able to hash and compare them >> as a plain pair of pointers. >> >> The type could then be std::pair and the hashing could be done using >> pair_hash

Re: [PATCH] gcc: vxworks: fix providing stdint.h header

2021-12-03 Thread Olivier Hainque via Gcc-patches
> On 3 Dec 2021, at 11:27, Rasmus Villemoes wrote: > > Reverting my fix and applying this on top of my gcc-11.2 based branch > seems to work. I haven't used the compiler for building or running any > modules (don't have the hardware handy), but I've done an 'objdump -d' > comparison on all

[committed] testsuite: Fix up pr103456.c testcase [PR103456]

2021-12-03 Thread Jakub Jelinek via Gcc-patches
On Wed, Dec 01, 2021 at 02:01:59PM +0530, Siddhesh Poyarekar wrote: > PR tree-optimization/103456 > * gcc.dg/ubsan/pr103456.c: New test. ubsan.exp cycles through torture options, and that includes -O2 -flto -fno-fat-lto-objects. But with those options tree dump scans don't work for

[PATCH] libcpp: Fix up handling of deferred pragmas [PR102432]

2021-12-03 Thread Jakub Jelinek via Gcc-patches
Hi! The https://gcc.gnu.org/pipermail/gcc-patches/2020-November/557903.html change broke the following testcases. The problem is when a pragma namespace allows expansion (i.e. p->is_nspace && p->allow_expansion), e.g. the omp or acc namespaces do, then when parsing the second pragma token we do

Re: [PATCH] gcc: vxworks: fix providing stdint.h header

2021-12-03 Thread Rasmus Villemoes
On 02/12/2021 16.29, Olivier Hainque wrote: > Hi Rasmus, > > Some new on this. > >> On 20 Nov 2021, at 09:07, Olivier Hainque wrote: >> >> I'll check how our build sequence proceeds. > > Turns out our build succeeds thanks to the presence > of a vendor version of stdint.h in the VxWorks6/7

Re: [PATCH] [i386] Prefer INT_SSE_REGS for SSE_FLOAT_MODE_P in preferred_reload_class.

2021-12-03 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 3, 2021 at 7:19 AM liuhongt wrote: > > Hi: > > Please also consider TARGET_INTER_UNIT_MOVES_TO_VEC and > > TARGET_INTER_UNIT_MOVES_FROM_VEC. > Here's updated patch. > > Also honor TARGET_INTER_UNIT_MOVES_TO/FROM_VEC and in > preferred_{,out_}reload_class. > > Bootstrapped and

Re:Led bulb

2021-12-03 Thread Zora Cao
Dear This is a manufacturer with 20 year's solid experience in the lighting industry. We can provide good quality with lower price. Making your products in your market has a great competition. Our main products are ceiling lights, down lights, led bulbs,flood lights and so on. If you have any

Re: Improve -fprofile-report

2021-12-03 Thread Jan Hubicka via Gcc-patches
> On 11/27/21 16:56, Jan Hubicka via Gcc-patches wrote: > > Hi, > > Profile-report was never properly updated after switch to new profile > > representation. This patch fixes the way profile mismatches are > > calculated: we used to collect separately count and freq mismatches, > > while now we

[PR103028] test ifcvt trap_if seq more strictly after reload

2021-12-03 Thread Alexandre Oliva via Gcc-patches
When -fif-conversion2 is enabled, we attempt to replace conditional branches around unconditional traps with conditional traps. That canonicalizes compares, which may change an immediate that barely fits into one that doesn't. The compare for the trap is first checked using the predicates of

Re: [PR103149] introduce asmnesia internal function

2021-12-03 Thread Alexandre Oliva via Gcc-patches
On Dec 2, 2021, Richard Biener wrote: > While adding ASMNESIA looks OK at this point, I'm not sure about the > asm handling stuff. You mention 'reload' above, do you mean LRA? I meant the allocation was first visible in -fdump-rtl-reload. I've added a note about this problem, and a modified

Re: Compare guessed profile frequencies to actual profile feedback in profile dump file

2021-12-03 Thread Bernhard Reutner-Fischer via Gcc-patches
On Sun, 28 Nov 2021 19:52:08 +0100 Jan Hubicka via Gcc-patches wrote: > Basic block 136 guessed freq: 17.548 cummulative: 0.60% feedback > freq: 51.848 cummulative: 1.94% cnt: 101811269914 > diff --git a/gcc/profile.c b/gcc/profile.c > index d07002d265e..dbf42ff7b2b 100644 >

Re: Improve -fprofile-report

2021-12-03 Thread Bernhard Reutner-Fischer via Gcc-patches
On Sat, 27 Nov 2021 16:56:32 +0100 Jan Hubicka via Gcc-patches wrote: > --- a/gcc/cfghooks.h > +++ b/gcc/cfghooks.h > @@ -36,22 +36,25 @@ along with GCC; see the file COPYING3. If not see > and one CFG hook per CFG mode. */ > struct profile_record > { > - /* Likewise for a basic

Re: [PATCH] fix spelling of -linker-output-auto-nolto-rel

2021-12-03 Thread Eric Botcazou via Gcc-patches
> The transposition nolto -> notlo is confusing and it makes the long > name even harder to read than it already is - I kept reading it as > "not lo" until I realized it was a simply typo. Thanks for catching this! -- Eric Botcazou

[PATCH] [Committed] New testcase for C++/71792, bitfields and auto

2021-12-03 Thread apinski--- via Gcc-patches
From: Andrew Pinski This testcase used to fail before GCC 6.4.0 due to the wrong type being used for auto when used with bitfields, the C++ front-end was using the "bitfield" type rather than the underlaying type. Committed the testcase after a quick check. PR c++/71792