[PATCH 05/10] bt-load.c: remove typedefs that hide pointerness

2015-09-02 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-09-03 Trevor Saunders * bt-load.c (struct btr_def_group): Rename from btr_def_group_s. (struct btr_user): Rename from btr_user_s. (struct btr_def): Rename from btr_def_s. (find_btr_def_group): Adjust

[PATCH 03/10] var-tracking.c: remove typedef of location_chain

2015-09-02 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-09-03 Trevor Saunders * var-tracking.c (struct location_chain): Rename from location_chain_def. (struct variable_part): Adjust. (variable_htab_free): Likewise. (unshare_variable): Likewise

[PATCH 04/10] var-tracking.c: remove typedef of shared_hash

2015-09-02 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-09-03 Trevor Saunders * var-tracking.c (shared_hash_def): Rename to shared_hash. (shared_hash): Remove typedef. (struct dataflow_set): Adjust. (shared_hash_unshare): Likewise. (dataflow_set_merge): Likewise

[PATCH 07/10] tree-vrp.c: remove typedefs that hide pointerness

2015-09-02 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-09-03 Trevor Saunders * tree-vrp.c (struct assert_locus_d): Rename to assert_locus. (dump_asserts_for): Adjust. (register_new_assert_for): Likewise. (process_assert_insertions): Likewise

[PATCH 10/10] tree-ssa-loop-im.c: remove typedefs that hide pointerness

2015-09-02 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-09-03 Trevor Saunders * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef. (mem_ref_p): Likewise. (outermost_indep_loop): Adjust. (mem_ref_in_stmt): Likewise. (determine_max_movement): Likewise

[PATCH 09/10] dwarf2out.c: remove typedefs that hide pointerness

2015-09-02 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-09-03 Trevor Saunders * dwarf2out.c (dw_attr_ref): Remove typedef. (dw_line_info_ref): Likewise. (pubname_ref): Likewise. (dw_ranges_ref): Likewise. (dw_ranges_by_label_ref): Likewise

[PATCH 08/10] dwarf2cfi.c: remove typedef that hides pointerness

2015-09-02 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-09-03 Trevor Saunders * dwarf2cfi.c (dw_trace_info_ref): Remove typedef. --- gcc/dwarf2cfi.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c index ab18062..1cfa6a7 100644 --- a/gcc

[PATCH 2/3] remove unused defines from sendmsg.c

2015-09-10 Thread tbsaunde+gcc
gen_rtx_MEM(args...) 1 -#define gen_rtx_REG(args...) 1 -/* Already defined in gcc/coretypes.h. So prevent double definition warning. */ -#undef rtx -#define rtx int - #define INVISIBLE_STRUCT_RETURN 1 /* The uninstalled dispatch table. If a class' dispatch table points -- 2.4.0

[PATCH 1/3] remove STRUCT_VALUE macro

2015-09-10 Thread tbsaunde+gcc
From: Trevor Saunders It is undocumented so the meaning is unclear, but it is only ever defined to 0, which the one user in libobjc treats the same as being undefined. gcc/ChangeLog: 2015-09-10 Trevor Saunders * config/arc/arc.h: Remove define of STRUCT_VALUE. * config/lm32

[PATCH 0/3] remove tm.h from libobjc/sendmsg.c

2015-09-10 Thread tbsaunde+gcc
ALUE macro remove unused defines from sendmsg.c stop including tm.h in sendmsg.c gcc/config/arc/arc.h | 4 gcc/config/lm32/lm32.h | 2 -- gcc/config/mep/mep.h | 2 -- gcc/config/visium/visium.h | 8 ---- gcc/system.h | 2 +- libobjc/sendmsg.c

[PATCH 3/3] stop including tm.h in sendmsg.c

2015-09-10 Thread tbsaunde+gcc
From: Trevor Saunders libobjc/ChangeLog: 2015-09-10 Trevor Saunders * sendmsg.c (tm.h): Remove include. --- libobjc/sendmsg.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libobjc/sendmsg.c b/libobjc/sendmsg.c index ba31930..8eb6d54 100644 --- a/libobjc/sendmsg.c +++ b/libobj

[PATCH 04/11] make recog () take a rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * config/v850/v850.c (expand_prologue): Adjust. (expand_epilogue): Likewise. * expr.c (init_expr_target): Likewise. * genrecog.c (print_subroutine): Always make the argument type rtx_insn

[PATCH 00/11] more rtx_insn * stuff

2016-11-14 Thread tbsaunde+gcc
_insn take labels as rtx_insn * make delete_insn () take a rtx_insn * remove cast from emit_libcall_block make prologue_epilogue_contains take a rtx_insn * make add_int_reg_note take rtx_insn * make dead_or_set_{,regno_}p take rtx_insn * make find_reg{,no}_fusage take rtx_insn *

[PATCH 03/11] make find_reg_equal_equiv_note take rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * cse.c (count_reg_usage): Adjust. * rtl.h: Adjust prototypes. * rtlanal.c (find_reg_equal_equiv_note): Change argument type to rtx_insn *. --- gcc/cse.c | 63

[PATCH 02/11] split up variables to use rtx_insn * more

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split up variables to make some rtx_insn *. * config/alpha/alpha.c (emit_unlikely_jump): Likewise. * config/arc/arc.c: Likewise

[PATCH 01/11] use rtx_insn * more places where it is obvious

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * config/arm/arm.c (legitimize_pic_address): Change to use rtx_insn * as the type of variables. (arm_pic_static_addr): Likewise. (arm_emit_movpair): Likewise. * config/c6x/c6x.c

[PATCH 10/11] make dead_or_set_{,regno_}p take rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * rtl.h: Adjust prototype. * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *. (dead_or_set_regno_p): Likewise. --- gcc/rtl.h | 4 ++-- gcc/rtlanal.c | 4 ++-- 2 files changed, 4

[PATCH 06/11] make delete_insn () take a rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * cfgrtl.c (delete_insn): Change argument type to rtx_insn *. (fixup_reorder_chain): Adjust. * cfgrtl.h: Adjust prototype. --- gcc/cfgrtl.c | 5 ++--- gcc/cfgrtl.h | 2 +- 2 files changed, 3 insertions

[PATCH 05/11] make replace_label_in_insn take labels as rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * rtl.h: Adjust prototype. * rtlanal.c (replace_label_in_insn): Change argument type to rtx_insn *. --- gcc/rtl.h | 2 +- gcc/rtlanal.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions

[PATCH 11/11] make find_reg{,no}_fusage take rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * config/arm/arm-protos.h: Adjust prototype. * config/arm/arm.c (use_return_insn): Change argument type to rtx_insn *. * rtl.h (is_a_helper ::test): New specialization. * rtlanal.c

[PATCH 08/11] make prologue_epilogue_contains take a rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * function.c (contains): Change argument type to rtx_insn *. (prologue_contains): Likewise. (epilogue_contains): Likewise. (prologue_epilogue_contains): Likewise. * function.h: Adjust

[PATCH 07/11] remove cast from emit_libcall_block

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * optabs.c (emit_libcall_block): Change argument type to rtx_insn *. * optabs.h: Adjust prototype. --- gcc/optabs.c | 5 ++--- gcc/optabs.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff

[PATCH 09/11] make add_int_reg_note take rtx_insn *

2016-11-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * rtl.h: Adjust prototype. * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *. --- gcc/rtl.h | 2 +- gcc/rtlanal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc

[PATCH] remove conditional compilation of HAVE_AS_LEB128 code

2016-11-14 Thread tbsaunde+gcc
From: tbsaunde Last patch I'm squeezing in for stage 1. Jeff approved this back in september, but I never committed it for some reason. So I updated it to trunk, rebootstrapped and regtested and committed it. Thanks! Trev gcc/ChangeLog: 2016-08-20 Trevor Saunders * acinclu

[PATCH 1/2] mark *-knetbsd-* as obsolete

2015-12-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-12-14 Trevor Saunders * config.gcc: mark knetbsd targets as obsolete. --- gcc/config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 882e413..59f77da 100644 --- a/gcc/config.gcc

[PATCH 0/2] obsolete some old targets

2015-12-14 Thread tbsaunde+gcc
From: Trevor Saunders Hi, http://gcc.gnu.org/ml/gcc-patches/2015-12/msg00365.html reminded me I hadn't gotten around to marking *-knetbsd and openbsd 2/3 obsolete as I offered to do back in the spring. I tested I could still build on x86_64-linux-gnu, and could only cross compile to

[PATCH 2/2] obsolete openbsd 2.0 and 3.X

2015-12-14 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-12-14 Trevor Saunders * config.gcc: Makr openbsd 2.0 and 3.X as obsolete. --- gcc/config.gcc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config.gcc b/gcc/config.gcc index 59f77da..35ae048 100644 --- a/gcc/config.gcc +++ b/gcc

[PATCH] remove mark_hook gty attribute

2016-01-11 Thread tbsaunde+gcc
From: Trevor Saunders Hi, this hardly counts as a bug fix, but going through open bugs I saw PR54809, and realized we don't actually need this attribute any more, so we might as well just remove it. bootstrapped + regtested on x86_64-linux-gnu, ok for now or gcc 7? I don't mind wa

[PATCH] pr31397 - implement -Wsuggest-override

2014-12-23 Thread tbsaunde+gcc
override. gcc/ * doc/invoke.texi: Document -Wsuggest-override. --- gcc/c-family/c.opt| 5 + gcc/cp/class.c| 4 gcc/doc/invoke.texi | 6 +- gcc/testsuite/g++.dg/warn/Wsuggest-override.C | 23

Re: LIPO based on LTO IR streaming (issue 5746044)

2012-03-16 Thread stevenb . gcc
One spelling nit. May also want to explain the 'ripa' term more clearly somewhere. http://codereview.appspot.com/5746044/diff/11001/ipa.c File ipa.c (right): http://codereview.appspot.com/5746044/diff/11001/ipa.c#newcode811 ipa.c:811: (2) the VNODE is neede, and s/neede/needed/ http://coderev

[PATCH v3 2/8] ifn: Add else-operand handling.

2024-10-31 Thread rdapp . gcc
From: Robin Dapp This patch adds else-operand handling to the internal functions. gcc/ChangeLog: * internal-fn.cc (add_mask_and_len_args): Rename... (add_mask_else_and_len_args): ...to this and add else handling. (expand_partial_load_optab_fn): Use adjusted function

[PATCH v3 8/8] RISC-V: Add else operand to masked loads [PR115336].

2024-10-31 Thread rdapp . gcc
From: Robin Dapp This patch adds else operands to masked loads. Currently the default else operand predicate just accepts "undefined" (i.e. SCRATCH) values. PR middle-end/115336 PR middle-end/116059 gcc/ChangeLog: * config/riscv/autovec.md: Add el

[PATCH v3 1/8] docs: Document maskload else operand and behavior.

2024-10-31 Thread rdapp . gcc
From: Robin Dapp This patch amends the documentation for masked loads (maskload, vec_mask_load_lanes, and mask_gather_load as well as their len counterparts) with an else operand. gcc/ChangeLog: * doc/md.texi: Document masked load else operand. --- gcc/doc/md.texi | 63

[PATCH v3 4/8] vect: Add maskload else value support.

2024-10-31 Thread rdapp . gcc
and uses that for the maskload call. If necessary, i.e. if the mode has padding bits and if the else operand is nonzero, a VEC_COND enforcing a zero else value is emitted. gcc/ChangeLog: * optabs-query.cc (supports_vec_convert_optab_p): Return icode. (get_supported_else_val

[PATCH v3 5/8] aarch64: Add masked-load else operands.

2024-10-31 Thread rdapp . gcc
a I used a function call property to specify whether a builtin needs an else operand or not. Somebody with better knowledge of the aarch64 target can surely improve that. gcc/ChangeLog: * config/aarch64/aarch64-sve-builtins-base.cc: Add else handling. * config/aarch64/a

[PATCH v3 7/8] i386: Add else operand to masked loads.

2024-10-31 Thread rdapp . gcc
From: Robin Dapp This patch adds a zero else operand to masked loads, in particular the masked gather load builtins that are used for gather vectorization. gcc/ChangeLog: * config/i386/i386-expand.cc (ix86_expand_special_args_builtin): Add else-operand handling

[PATCH v3 6/8] gcn: Add else operand to masked loads.

2024-10-31 Thread rdapp . gcc
From: Robin Dapp This patch adds an undefined else operand to the masked loads. gcc/ChangeLog: * config/gcn/predicates.md (maskload_else_operand): New predicate. * config/gcn/gcn-valu.md: Use new predicate. --- gcc/config/gcn/gcn-valu.md | 14 +- gcc

[PATCH v3 3/8] tree-ifcvt: Enforce zero else value after maskload.

2024-10-31 Thread rdapp . gcc
this patch still had this handling in ifcvt but the latest version defers it to the vectorizer. gcc/ChangeLog: * tree-if-conv.cc (predicate_load_or_store): Add zero else operand and comment. --- gcc/tree-if-conv.cc | 16 +++- 1 file changed, 11 insertions(+), 5 dele

[PATCH v3 0/8] Add maskload else operand.

2024-10-31 Thread rdapp . gcc
value support. aarch64: Add masked-load else operands. gcn: Add else operand to masked loads. i386: Add else operand to masked loads. RISC-V: Add else operand to masked loads [PR115336]. .../aarch64/aarch64-sve-builtins-base.cc | 46 ++- gcc/config/aarch64/aarch64-sve-builtins.cc

Re: Ping*4: [RFA:] fix bug in configure header-probing for stack protector support in target C library

2012-07-05 Thread Nathanael Nerode (GCC)
rt in target C library". >>>>>> * configure.ac (test_prefix, test_exec_prefix): Move setting from >>>>>> inside sysroot handling to before and outside it. >>>>>> * configure: Regenerate. >>>>> >>>>> Ping, <http

Re: PING: PATCH: Backport x32 support to libtool

2012-05-15 Thread Nathanael Nerode (GCC)
On 05/11/2012 12:50 PM, H.J. Lu wrote: > On Mon, Apr 16, 2012 at 10:47 AM, H.J. Lu wrote: >> On Tue, Apr 3, 2012 at 7:49 AM, H.J. Lu wrote: >>> On Thu, Mar 29, 2012 at 7:34 AM, H.J. Lu wrote: On Sat, Mar 3, 2012 at 9:54 AM, H.J. Lu wrote: > Hi, > > This patch backports x32 supp

Re: PING: PATCH: Backport x32 support to libtool

2012-05-15 Thread Nathanael Nerode (GCC)
On 05/15/2012 11:32 AM, H.J. Lu wrote: > On Tue, May 15, 2012 at 8:06 AM, Nathanael Nerode (GCC) > wrote: >> On 05/11/2012 12:50 PM, H.J. Lu wrote: >>> On Mon, Apr 16, 2012 at 10:47 AM, H.J. Lu wrote: >>>> On Tue, Apr 3, 2012 at 7:49 AM, H.J. Lu wrote: >>&

Re: PATCH: Add --with-abi= support to x86_64-*-*

2012-03-25 Thread Nathanael Nerode (GCC)
On 03/14/2012 12:22 PM, H.J. Lu wrote: > On Fri, Mar 2, 2012 at 10:00 AM, H.J. Lu wrote: >> Hi, >> >> This patch adds --with-abi= support to x86_64-*-* to configure GCC with >> >> --with-abi=x32 >> --with-abi=mx32 >> --with-multilib-list=mx32 >>

Re: PATCH: Add --with-abi= support to x86_64-*-*

2012-04-02 Thread Nathanael Nerode (GCC)
On 03/28/2012 09:06 PM, H.J. Lu wrote: > On Sun, Mar 25, 2012 at 2:27 PM, Nathanael Nerode (GCC) > wrote: >> >>> Hi, >>> >>> Can any build maintainers review this patch? >> >> I don't feel comfortable reviewing this, because I don't

Re: Prune empty cases from toplevel configure.ac

2011-03-29 Thread Nathanael Nerode (GCC)
On 03/21/2011 06:41 AM, Joseph S. Myers wrote: > This patch, relative to a tree with my deprecated targets removal patch > <http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01088.html> applied, further > cleans up the toplevel configure.ac by removing empty cases from a case &g

Re: More toplevel configure.ac pruning

2011-03-29 Thread Nathanael Nerode (GCC)
ed shellutils tar textutils uudecode wdiff guile > perl time ash bash bzip2 prms gnuserv target-gperf" So target-gperf works when host != target now? Good to know. I remember when the native_only list was invented there were a lot more things in it, many of which were actually part of GCC or

New VM Record Received 🎧(0m 29s)

2023-09-29 Thread Gcc Wireless Solutions|PhoneSystem
Confidentiality Warning: This e-mail contains information intended only for the use of the individual or entity named above. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, any dissemination, publication or

[PATCH] libitm: sh: avoid absolute relocation in shared library (PR 86712)

2018-07-28 Thread slyfox.inbox.ru via gcc-patches
From: Sergei Trofimovich Signed-off-by: Sergei Trofimovich --- libitm/config/sh/sjlj.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libitm/config/sh/sjlj.S b/libitm/config/sh/sjlj.S index 043f36749be..80a810d8360 100644 --- a/libitm/config/sh/sjlj.S +++ b/libitm/confi

[PATCH v2] libitm: sh: avoid absolute relocation in shared library (PR 86712)

2018-07-28 Thread slyfox.inbox.ru via gcc-patches
From: Sergei Trofimovich Cc: Andreas Schwab Cc: Torvald Riegel Cc: Alexandre Oliva Cc: Oleg Endo Cc: Kaz Kojima Signed-off-by: Sergei Trofimovich --- libitm/config/sh/sjlj.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libitm/config/sh/sjlj.S b/libitm/config/sh/s

[PATCH] libgcc: m68k: avoid TEXTRELs in shared library (PR 86224)

2018-07-28 Thread slyfox.inbox.ru via gcc-patches
From: Sergei Trofimovich Cc: Ian Lance Taylor Cc: Jeff Law Cc: Andreas Schwab Signed-off-by: Sergei Trofimovich --- libgcc/config/m68k/lb1sf68.S | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/libgcc/config/m68k/lb1sf68.S b/libgcc/config/m68k/lb1sf68.

[PATCH v2] libgcc: m68k: avoid TEXTRELs in shared library (PR 86224)

2018-07-28 Thread slyfox.inbox.ru via gcc-patches
From: Sergei Trofimovich Cc: Ian Lance Taylor Cc: Jeff Law Cc: Andreas Schwab Signed-off-by: Sergei Trofimovich --- libgcc/config/m68k/lb1sf68.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgcc/config/m68k/lb1sf68.S b/libgcc/config/m68k/lb1sf68.S index 325a7c17d9b..d5240d4aa55 1

[r14-1246 Regression] FAIL: gcc.target/i386/pr98434-1.c scan-assembler-times vpsrlvw[\\t ]*%ymm 2 on Linux/x86_64

2023-05-26 Thread haochen.jiang via Gcc-patches
2 FAIL: gcc.target/i386/pr98434-1.c scan-assembler-times vpsravw[\\t ]*%xmm 2 FAIL: gcc.target/i386/pr98434-1.c scan-assembler-times vpsrlvw[\\t ]*%ymm 2 with GCC configured with ../../gcc/configure --prefix=/export/users/haochenj/src/gcc-bisect/master/master/r14-1246/usr --enable-clocale=gnu

Re: [PATCH v2 0/5] A small Texinfo refinement

2023-05-29 Thread NightStrike via Gcc-patches
he day. On the other hand, if there's a > few people using (more or less deliberately abandonware) we should not > feel too bad if something breaks. > Can you include texinfo in a top-level directory and have it built with the build, like you can with dejagnu? That's generally a decent path for building new gcc on older systems. >

Re: [PATCH 1/1] [V2] [RISC-V] support cm.push cm.pop cm.popret in zcmp

2023-05-29 Thread Sinan via Gcc-patches
ave-restore in stack allocation: pre-allocation by cm.push, step 1 and step 2. please be noted cm.push pushes ra, s0-s11 in reverse order than what save-restore does. So adaption has been done in .cfi directives in my patch. gcc/ChangeLog: * config/riscv/predicates.md (slot_0_offset_operand): predi

Re: decremnt IV patch create fails on PowerPC

2023-05-30 Thread Kewen.Lin via Gcc-patches
on 2023/5/30 17:26, juzhe.zh...@rivai.ai wrote: > Ok. > > It seems that for this conditions: > > + /* If we're vectorizing a loop that uses length "controls" and > + can iterate more than once, we apply decrementing IV approach > + in loop control. */ > + if (LOOP_VINFO_CAN_USE_PARTIAL

Re: [PATCH] VECT: Change flow of decrement IV

2023-05-31 Thread Kewen.Lin via Gcc-patches
from fortran). By looking into one of them (case gfortran.dg/array_alloc_2.f90), I think the patch needs some adjustment on chosen code according to exit_edge->flags like: diff --git a/gcc/tree-vect-loop-manip.cc b/gcc/tree-vect-loop-manip.cc index ef28711c

Re: [PATCH] libgcc: Use initarray section type for .init_stack

2023-05-31 Thread Kewen.Lin via Gcc-patches
Hi Andreas, on 2023/5/25 15:25, Andreas Krebbel wrote: > On 3/20/23 07:33, Kewen.Lin wrote: >> Hi, >> >> One of my workmates found there is a warning like: >> >> libgcc/config/rs6000/morestack.S:402: Warning: ignoring >> incorrect section type for .init_array.0 >> >> when compiling libgc

Re: [PATCH] [testsuite] [powerpc] adjust -m32 counts for fold-vec-extract*

2023-05-31 Thread Kewen.Lin via Gcc-patches
frame pointer or not. Take a function testbc_var from fold-vec-extract-char.p7.c as example: #include unsigned char testbc_var (vector bool char vbc2, signed int si) { return vec_extract (vbc2, si); } 1) on aix 32-bit, with trunk: .testbc_var: li 9,32 addi 10,1,-64 stxvw

Re: [PATCH v2] rs6000: Add buildin for mffscrn instructions

2023-05-31 Thread Kewen.Lin via Gcc-patches
Hi Carl, on 2023/5/25 23:59, Carl Love wrote: > Peter, Kewen: > > On Thu, 2023-05-25 at 13:28 +0800, Kewen.Lin wrote: >> on 2023/5/24 23:20, Carl Love wrote: >>> On Wed, 2023-05-24 at 13:32 +0800, Kewen.Lin wrote: on 2023/5/24 06:30, Peter Bergner wrote: > On 5/23/23 12:24 AM, Kewen.Lin

[r14-1452 Regression] FAIL: g++.dg/pr104547.C -std=gnu++17 scan-tree-dump-not vrp2 "_M_default_append" on Linux/x86_64

2023-05-31 Thread haochen.jiang via Gcc-patches
: g++.dg/pr104547.C -std=gnu++14 scan-tree-dump-not vrp2 "_M_default_append" FAIL: g++.dg/pr104547.C -std=gnu++17 scan-tree-dump-not vrp2 "_M_default_append" with GCC configured with ../../gcc/configure --prefix=/export/users/haochenj/src/gcc-bisect/master/master/r14-14

Re: [PATCH V2] VECT: Change flow of decrement IV

2023-05-31 Thread Kewen.Lin via Gcc-patches
> juzhe.zh...@rivai.ai > >   > *From:* juzhe.zhong <mailto:juzhe.zh...@rivai.ai> > *Date:* 2023-05-

Re: [PATCH V3] VECT: Change flow of decrement IV

2023-05-31 Thread Kewen.Lin via Gcc-patches
zhe.zhong <mailto:juzhe.zh...@rivai.ai> > *Date:* 2023-06-01 12:36 > *To:* gcc-patches <mailto:gcc-patches@gcc.gnu.org> > *CC:* richard.sandiford <mailto:richard.sandif...@arm.com>; rguenther > <mailto:rguent...@suse.de>; linkw <mailto:li...@linux.ib

[PATCH] Don't try bswap + rotate when TYPE_PRECISION(n->type) > n->range.

2023-06-01 Thread liuhongt via Gcc-patches
tries to rotate the mask from 0x30200 -> 0x20300 which is incorrect. The patch fixed this bug by not trying bswap + rotate when TYPE_PRECISION(n->type) is not equal to n->range. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: PR tree-optimiza

[PATCH] i386: Add missing vector truncate patterns [PR92658].

2023-06-01 Thread liuhongt via Gcc-patches
Add missing insn patterns for v2si -> v2hi/v2qi and v2hi-> v2qi vector truncate. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: PR target/92658 * config/i386/mmx.md (truncv2hiv2qi2): New define_insn. (truncv2si2): Ditto

[PATCH] [vect]Use intermiediate integer type for float_expr/fix_trunc_expr when direct optab is not existed.

2023-06-01 Thread liuhongt via Gcc-patches
r non-slp case, vec_pack/unpack are always used when lhs has different size from rhs, for slp case, sometimes vec_pack/unpack is used, somethings direct conversion is used. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: PR target/110018 * tree

Re: [PATCH] rs6000: Fix arguments for __builtin_altivec_tr_stxvrwx, __builtin_altivec_tr_stxvrhx

2023-06-01 Thread Kewen.Lin via Gcc-patches
the arguments in the two > builtins. > > A runnable test case is added to test the __builtin_altivec_tr_stxvrbx, > __builtin_altivec_tr_stxvrhx, __builtin_altivec_tr_stxvrwx and > __builtin_altivec_tr_stxvrdx builtins. > > gcc/ > * config/rs6000/rs6000-builtins.def (__built

Re: [PATCH] rs6000: Fix __builtin_vec_xst_trunc definition

2023-06-01 Thread Kewen.Lin via Gcc-patches
on 2023/6/2 04:01, Carl Love wrote: > On Wed, 2023-05-31 at 12:59 -0500, Peter Bergner wrote: >> On 5/22/23 4:04 AM, Kewen.Lin wrote: >>> on 2023/5/11 02:06, Carl Love via Gcc-patches wrote: >>>> @@ -3161,12 +3161,15 @@ >>>>void __builtin_altivec_tr_s

Re: [PATCH] avr: Set param_min_pagesize to 0 [PR105523]

2023-06-02 Thread SenthilKumar.Selvaraj--- via Gcc-patches
ent...@gmail.com>> wrote: > > > On Wed, Apr 26, 2023 at 12:56 PM > > <mailto:senthilkumar.selva...@microchip.com>> wrote: > > > > On Wed, Apr 26, 2023 at 3:15 PM Richard Biener via Gcc-patches > > > > mailto:gcc-patches@gcc.gnu.org>> w

[PATCH] RISCV: Add -m(no)-omit-leaf-frame-pointer support.

2023-06-02 Thread yanzhang.wang--- via Gcc-patches
From: Yanzhang Wang gcc/ChangeLog: * config/riscv/riscv.cc (riscv_save_reg_p): Save ra for leaf when enabling -mno-omit-leaf-frame-pointer (riscv_option_override): Override omit-frame-pointer. (riscv_frame_pointer_required): Save s0 for non-leaf function

[PATCH, PR110086] avr: Fix ICE on optimize attribute

2023-06-02 Thread SenthilKumar.Selvaraj--- via Gcc-patches
, and >100 new PASSes. Ok to commit to master? Regards Senthil PR 110086 gcc/ChangeLog: * config/avr/avr.opt (mgas-isr-prologues, mmain-is-OS_task): Add Optimization option property. gcc/testsuite/ChangeLog: * gcc.target/avr/pr110086.c: New test. d

[r14-1466 Regression] FAIL: gcc.dg/torture/fp-int-convert-timode.c -O3 -g (test for excess errors) on Linux/x86_64

2023-06-03 Thread haochen.jiang via Gcc-patches
-timode.c -O2 (test for excess errors) FAIL: gcc.dg/torture/fp-int-convert-timode.c -O3 -g (internal compiler error: in as_a, at machmode.h:381) FAIL: gcc.dg/torture/fp-int-convert-timode.c -O3 -g (test for excess errors) with GCC configured with ../../gcc/configure --prefix=/export/users

[PATCH] [x86] Add missing vec_pack/unpacks patterns for _Float16 <-> int/float conversion.

2023-06-04 Thread liuhongt via Gcc-patches
This patch only support vec_pack/unpacks optabs for vector modes whose lenth >= 128. For 32/64-bit vector, they're more hanlded by BB vectorizer with truncmn2/extendmn2/fix{,uns}_truncmn2. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ready to push to trunk. gcc/C

Re: [PATCH] libgcc: Use initarray section type for .init_stack

2023-06-04 Thread Kewen.Lin via Gcc-patches
on 2023/6/1 00:57, Ian Lance Taylor wrote: > On Wed, May 31, 2023 at 12:41 AM Kewen.Lin via Gcc-patches > wrote: >> >>>> libgcc/ChangeLog: >>>> >>>> * config/i386/morestack.S: Use @init_array rather than >>>> @progbits for se

Re: [PATCH V2, rs6000] Disable generation of scalar modulo instructions

2023-06-04 Thread Kewen.Lin via Gcc-patches
d backports after burn in? > > -Pat > > > 2023-04-18  Pat Haugen  > > gcc/ > * config/rs6000/rs6000.h (RS6000_DISABLE_SCALAR_MODULO): New. > * config/rs6000/rs6000.md (mod3, *mod3): Disable. > (define_expand umod3): New. > (define_insn umod3): Rename to

Re: [PATCH] rs6000: Add builtins for IEEE 128-bit floating point values

2023-06-05 Thread Kewen.Lin via Gcc-patches
Hi Carl, on 2023/5/2 23:52, Carl Love via Gcc-patches wrote: > GCC maintainers: > > The following patch adds three buitins for inserting and extracting the > exponent and significand for an IEEE 128-bit floating point values. > The builtins are valid for Power 9 and Power 10.

[PATCH] Fold _mm{, 256, 512}_abs_{epi8, epi16, epi32, epi64} into gimple ABSU_EXPR + VCE.

2023-06-05 Thread liuhongt via Gcc-patches
H_SSE. Bootstrapped and regtested on x86_64-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: PR target/110108 * config/i386/i386.cc (ix86_gimple_fold_builtin): Fold _mm{,256,512}_abs_{epi8,epi16,epi32,epi64} into gimple ABSU_EXPR + VCE, don't fold _mm_abs_{pi8,pi

[PATCH] Don't fold _mm{, 256}_blendv_epi8 into (mask < 0 ? src1 : src2) when -funsigned-char.

2023-06-05 Thread liuhongt via Gcc-patches
Since mask < 0 will be always false when -funsigned-char, but vpblendvb needs to check the most significant bit. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk and backport to GCC12/GCC13 release branch? gcc/ChangeLog: PR target/110108 * config/i386/i

[PATCH v2] Explicitly view_convert_expr mask to signed type when folding pblendvb builtins.

2023-06-06 Thread liuhongt via Gcc-patches
> I think this is a better patch and will always be correct and still > get folded at the gimple level (correctly): > diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc > index d4ff56ee8dd..02bf5ba93a5 100644 > --- a/gcc/config/i386/i386.cc > +++ b/gcc/config/i386/i38

[PATCH 1/2] Fold _mm{, 256, 512}_abs_{epi8, epi16, epi32, epi64} into gimple ABSU_EXPR + VCE.

2023-06-06 Thread liuhongt via Gcc-patches
H_SSE. gcc/ChangeLog: PR target/110108 * config/i386/i386.cc (ix86_gimple_fold_builtin): Fold _mm{,256,512}_abs_{epi8,epi16,epi32,epi64} into gimple ABSU_EXPR + VCE, don't fold _mm_abs_{pi8,pi16,pi32} w/o TARGET_64BIT. * config/i386/i386-builtin.de

Re: [PATCH] rs6000: vec_cmpne confusing implementation

2023-06-06 Thread Kewen.Lin via Gcc-patches
Hi Carl, on 2023/5/3 23:30, Carl Love via Gcc-patches wrote: > GCC maintainers: > > The following patch cleans up the definition for the > __builtin_altivec_vcmpnet. The current implementation implies that the > builtin is only supported on Power 9 since it is defined under the &

[PATCH] rs6000: Guard __builtin_{un,}pack_vector_int128 with vsx [PR109932]

2023-06-06 Thread Kewen.Lin via Gcc-patches
to ensure their supports. Bootstrapped and regtested on powerpc64-linux-gnu P7/P8/P9 and powerpc64le-linux-gnu P9 and P10. I'll push this next week if no objections. BR, Kewen - PR target/109932 gcc/ChangeLog: * config/rs6000/rs6000-builtins.def (__builtin_pack_vector_i

[PATCH] rs6000: Don't use TFmode for 128 bits fp constant in toc [PR110011]

2023-06-06 Thread Kewen.Lin via Gcc-patches
make it use constant's own mode instead of TFmode for real_to_target call. Bootstrapped and regtested on powerpc64-linux-gnu P7/P8/P9 and powerpc64le-linux-gnu P9 and P10. I'll push this next week if no objections. BR, Kewen - PR target/110011 gcc/ChangeLog:

Re: [PATCH, rs6000] Add two peephole2 patterns for mr. insn

2023-06-06 Thread Kewen.Lin via Gcc-patches
So the patch adds these two peepholes. > > cmp 0,3,0 > mr 4,3 > > mr 4,3 > cmp 0,3,0 > > gcc/ > * config/rs6000/rs6000.md (peephole2 for compare and move): New. > (peephole2 for move and compare): New. > > gcc/testsuite/ > * gcc.dg/rtl/powerpc/

[PATCH] Fortran: add Fortran 2018 IEEE_{MIN,MAX} functions

2023-06-06 Thread FX via Gcc-patches
Hi, This patch adds four IEEE functions from the Fortran 2018 standard: IEEE_MIN_NUM, IEEE_MAX_NUM, IEEE_MIN_NUM_MAG, and IEEE_MAX_NUM_MAG. Bootstrapped and regtested on x86_64-pc-linux-gnu, both 32 and 64-bit. OK to commit? FX 0001-Fortran-add-Fortran-2018-IEEE_-MIN-MAX-functions.patch Des

[r14-1579 Regression] FAIL: gfortran.dg/gomp/target-update-1.f90 -O scan-tree-dump gimple "#pragma omp target update to\\(c \\[len: [0-9]+\\]\\) to\\(present:a \\[len: [0-9]+\\]\\) to\\(e \\[len:

2023-06-06 Thread haochen.jiang via Gcc-patches
date-1.f90 -O scan-tree-dump gimple "#pragma omp target update to\\(c \\[len: [0-9]+\\]\\) to\\(present:a \\[len: [0-9]+\\]\\) to\\(e \\[len: [0-9]+\\]\\) from\\(present:b \\[len: [0-9]+\\]\\) from\\(d \\[len: [0-9]+\\]\\)" with GCC configured with ../../gcc/configure --prefix=/e

Re: [PATCH V5] Use reg mode to move sub blocks for parameters and returns

2023-06-06 Thread guojiufu via Gcc-patches
b_blocks' only handles the case when the block size can be move by same submode, or say (size % sub_size) is 0. If no objection, I would committed the new version. BR, Jeff (Jiufu) gcc/ChangeLog: * cfgexpand.cc (expand_used_vars): Update to mark DECL_USEDBY_RETURN_P for returns

Re: [PATCH] rs6000: Add builtins for IEEE 128-bit floating point values

2023-06-07 Thread Kewen.Lin via Gcc-patches
Hi, on 2023/6/7 03:54, Carl Love wrote: > On Mon, 2023-06-05 at 16:45 +0800, Kewen.Lin wrote: >> Hi Carl, >> >> on 2023/5/2 23:52, Carl Love via Gcc-patches wrote: >>> GCC maintainers: >>> >>> The following patch adds three buitins for inserting and

[PATCH v4] RISC-V: Add vector psabi checking.

2023-06-08 Thread yanzhang.wang--- via Gcc-patches
From: Yanzhang Wang This patch adds support to check function's argument or return is vector type and throw warning if yes. There're two exceptions, - The vector_size attribute. - The intrinsic functions. gcc/ChangeLog: * config/riscv/riscv-protos.h (riscv_init_cumul

Re: [PATCH] Make sure SCALAR_INT_MODE_P before invoke try_const_anchors

2023-06-09 Thread guojiufu via Gcc-patches
ger values currently, and modes other than SCALAR_INT_MODE_P are not needed to support. This patch makes sure SCALAR_INT_MODE_P when calling try_const_anchors. This patch is raised when drafting below one. https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603530.html. With that patch, "{[%

[r14-1624 Regression] FAIL: std/time/year_month_day_last/1.cc (test for excess errors) on Linux/x86_64

2023-06-11 Thread haochen.jiang via Gcc-patches
/time/year_month_day_last/1.cc (test for excess errors) with GCC configured with ../../gcc/configure --prefix=/export/users/haochenj/src/gcc-bisect/master/master/r14-1624/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran

Re: [PATCH] rs6000: Guard __builtin_{un, }pack_vector_int128 with vsx [PR109932]

2023-06-11 Thread Kewen.Lin via Gcc-patches
tanza vsx to ensure > their supports. > > Bootstrapped and regtested on powerpc64-linux-gnu P7/P8/P9 and > powerpc64le-linux-gnu P9 and P10. > > I'll push this next week if no objections. > > BR, > Kewen > - >

Re: [PATCH] rs6000: Don't use TFmode for 128 bits fp constant in toc [PR110011]

2023-06-11 Thread Kewen.Lin via Gcc-patches
I'll push this next week if no objections. > > BR, > Kewen > - >         PR target/110011 > > gcc/ChangeLog: > >         * config/rs6000/rs6000.cc (output_toc): Use its own mode of the >         128-bit float constant for real_to_

[PATCH v5] RISC-V: Add vector psabi checking.

2023-06-12 Thread yanzhang.wang--- via Gcc-patches
From: Yanzhang Wang This patch adds support to check function's argument or return is vector type and throw warning if yes. There're two exceptions, - The vector_size attribute. - The intrinsic functions. gcc/ChangeLog: * config/riscv/riscv-protos.h (riscv_init_cumul

Re: [PATCHv2, rs6000] Add two peephole2 patterns for mr. insn

2023-06-12 Thread Kewen.Lin via Gcc-patches
> > cmp 0,3,0 > mr 4,3 > > mr 4,3 > cmp 0,3,0 > > The patch also creates a new mode iterator which decided by > TARGET_POWERPC64. This mode iterator is used in "mr." and its split > pattern. The original P iterator is wrong when -m32/-mpowerpc64 is set.

[PATCH v6] RISC-V: Add vector psabi checking.

2023-06-12 Thread yanzhang.wang--- via Gcc-patches
From: Yanzhang Wang This patch adds support to check function's argument or return is vector type and throw warning if yes. There're two exceptions, - The vector_size attribute. - The intrinsic functions. Some cases that need to add -Wno-psabi to ignore the warning. gcc

Re: [PATCH ver 3] rs6000: Add builtins for IEEE 128-bit floating point values

2023-06-12 Thread Kewen.Lin via Gcc-patches
Hi Carl, on 2023/6/8 23:21, Carl Love wrote: > Kewen, GCC maintainers: > > Version 3, was able to get the overloaded version of scalar_insert_exp > to work and the change to xsxexpqp_f128_ define instruction to > work with the suggestions from Kewen. > > Version 2,

Re: [PATCH] rs6000, fix vec_replace_unaligned builtin arguments

2023-06-12 Thread Kewen.Lin via Gcc-patches
Hi Carl, on 2023/5/31 04:41, Carl Love wrote: > GCC maintainers: > > The following patch fixes the first argument in the builtin definition > and the corresponding test cases. Initially, the builtin specification > was wrong due to a cut and past error. The documentati

[PATCH, committed] testsuite: Check int128 effective target for pr109932-{1,2}.c [PR110230]

2023-06-13 Thread Kewen.Lin via Gcc-patches
as obvious in r14-1776-g16eb9d69079d76. BR, Kewen - PR testsuite/110230 PR target/109932 gcc/testsuite/ChangeLog: * gcc.target/powerpc/pr109932-1.c: Adjust with int128 effective target. * gcc.target/powerpc/pr109932-2.c: Ditto. --- gcc/testsuite/gcc.target

Re: [PATCH v1] rs6000: Update powerpc test fold-vec-extract-int.p8.c

2023-06-13 Thread Kewen.Lin via Gcc-patches
Hi, on 2023/5/19 15:40, Ajit Agarwal via Gcc-patches wrote: > Hello All: > > Update powerpc tests for both le and be endian with extra removal of zero > extension and sign extension. > with default ree pass for rs6000 target. Nice! > > Bootstrapped and regtested o

[r14-1712 Regression] FAIL: gcc.target/i386/sse2-packuswb-1.c execution test on Linux/x86_64

2023-06-13 Thread haochen.jiang via Gcc-patches
/avx2-vpackssdw-2.c execution test FAIL: gcc.target/i386/avx2-vpackusdw-2.c execution test FAIL: gcc.target/i386/avx2-vpackuswb-2.c execution test FAIL: gcc.target/i386/avx-vpackuswb-1.c execution test FAIL: gcc.target/i386/sse2-packuswb-1.c execution test with GCC configured with ../../gcc

<    1   2   3   4   5   6   7   8   9   10   >