Re: The order of loop traversal in gcc

2023-09-24 Thread Richard Biener via Gcc
> Am 25.09.2023 um 04:53 schrieb Hanke Zhang via Gcc : > > Hi, I have recently been working on loops in gcc, and I have some > questions about the loop traversal. > > I use loops_list(cfun, LI_ONLY_INNERMOST) to traverse the loops in my > pass to obtain the loop. > > I found that the order

Re: [PATCH] Fix PR 110386: backprop vs ABSU_EXPR

2023-09-24 Thread Richard Biener
> Am 24.09.2023 um 17:24 schrieb Andrew Pinski : > > The issue here is that when backprop tries to go > and strip sign ops, it skips over ABSU_EXPR but > ABSU_EXPR not only does an ABS, it also changes the > type to unsigned. > Since strip_sign_op_1 is only supposed to strip off > sign

[Bug target/111366] error: inlining failed in call to 'always_inline' 'hwy::PreventElision(int&)void': target specific option mismatch

2023-09-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111366 --- Comment #19 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:a65b38e361320e0aa45adbc969c704385ab1f45b commit r14-4247-ga65b38e361320e0aa45adbc969c704385ab1f45b Author: Kewen Lin Date: Mon Sep

[Bug target/111380] Inconsistent behaviors between non-LTO and LTO

2023-09-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111380 --- Comment #1 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:266dfed68b881702e9660889f63408054b7fa9c0 commit r14-4246-g266dfed68b881702e9660889f63408054b7fa9c0 Author: Kewen Lin Date: Mon Sep

[Bug target/111581] New: [arm-none-eabi-gcc] / suboptimal optimization /

2023-09-24 Thread cptarse-luke at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111581 Bug ID: 111581 Summary: [arm-none-eabi-gcc] / suboptimal optimization / Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/111580] New: [arm-none-eabi-gcc] / suboptimal optimization / b.n to bx lr

2023-09-24 Thread cptarse-luke at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111580 Bug ID: 111580 Summary: [arm-none-eabi-gcc] / suboptimal optimization / b.n to bx lr Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization

2023-09-24 Thread cptarse-luke at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500 --- Comment #4 from Luke --- the a.i file for example #1a is: # 1 "a.c" # 1 "/tmp//" # 1 "" # 1 "" # 1 "a.c" void artiSUBS() { for (int i=100; i>0; i--) *(volatile int*)0xE000E014 = i; } the command-line was: > arm-none-eabi-gcc -save-temps

[Bug target/111500] [arm-none-eabi-gcc] / suboptimal optimization

2023-09-24 Thread cptarse-luke at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111500 --- Comment #3 from Luke --- maybe i should also say the "-v" output? > arm-none-eabi-gcc -v Using built-in specs. COLLECT_GCC=arm-none-eabi-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-none-eabi/9.3.0/lto-wrapper Target: arm-none-eabi Configured

The order of loop traversal in gcc

2023-09-24 Thread Hanke Zhang via Gcc
Hi, I have recently been working on loops in gcc, and I have some questions about the loop traversal. I use loops_list(cfun, LI_ONLY_INNERMOST) to traverse the loops in my pass to obtain the loop. I found that the order of traversal and the order of actual instruction execution will be

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-24 Thread Chenghui Pan
Thanks for your advice! I will check it out and submit a new version of patch. On Sun, 2023-09-24 at 18:05 +0800, Xi Ruoyao wrote: > On Wed, 2023-09-20 at 09:15 +0800, Chenghui Pan wrote: > > LoongArch failed to pass gcc.dg/pr104992.c with -mlsx and -mlasx. > > This test uses > > different

[Bug ada/111579] New: gnatpp error at start

2023-09-24 Thread thiebauddick2 at aol dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111579 Bug ID: 111579 Summary: gnatpp error at start Product: gcc Version: 11.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee:

Re:[pushed] [PATCH] LoongArch: Optimizations of vector construction.

2023-09-24 Thread chenglulu
Pushed to r14-4245. 在 2023/9/21 上午9:19, Guo Jie 写道: gcc/ChangeLog: * config/loongarch/lasx.md (lasx_vecinit_merge_): New pattern for vector construction. (vec_set_internal): Ditto. (lasx_xvinsgr2vr__internal): Ditto. (lasx_xvilvl__internal): Ditto.

[PATCH-2v3, rs6000] Implement 32bit inline lrint [PR88558]

2023-09-24 Thread HAO CHEN GUI
Hi, This patch implements 32bit inline lrint by "fctiw". It depends on the patch1 to do SImode move from FP registers on P7. Compared to last version, the main change is to add some test cases. https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629187.html Bootstrapped and tested on

[Bug ada/111578] New: GNAT ada.textio.setline gives incorrect result

2023-09-24 Thread thiebauddick2 at aol dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111578 Bug ID: 111578 Summary: GNAT ada.textio.setline gives incorrect result Product: gcc Version: 11.4.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH v2 00/13] Support Intel APX EGPR

2023-09-24 Thread Hongtao Liu
On Fri, Sep 22, 2023 at 6:56 PM Hongyu Wang wrote: > > Hi, > > This is a v2 patch for APX support which follows-up previous discussion in > https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628904.html > > As discussed in previous thread, the inverse approach to extend base/index reg >

Re: [PATCH-1v2, rs6000] Enable SImode in FP registers on P7 [PR88558]

2023-09-24 Thread HAO CHEN GUI
Hi Kewen, 在 2023/9/18 15:34, Kewen.Lin 写道: > hanks for checking! So for P7, this patch looks neutral, but for P8 and > later, it may cause some few differences in code gen. I'm curious that how > many total object files and different object files were checked and found > on P8? P8 with -O2,

[Bug target/111533] [14 Regression] ICE: RTL check: expected code 'reg', have 'const_int' in rhs_regno, at rtl.h:1934

2023-09-24 Thread xuli1 at eswincomputing dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111533 xuli1 at eswincomputing dot com changed: What|Removed |Added CC||xuli1 at

[Bug middle-end/111576] gcc generates conditional branch for bitwise "&"

2023-09-24 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111576 --- Comment #5 from Paul Eggert --- (In reply to Andrew Pinski from comment #4) > >111715 > > That is not a valid bug # either. Sorry, I meant Bug 111575.

[Bug middle-end/111577] -Os gives significantly bigger code than -O0

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111577 --- Comment #2 from Andrew Pinski --- I suspect you forgot to count the other functions which get emitted here. And you are just counting the size of main but that is wrong really. Anyways the overall size of the executable's text section is

[Bug middle-end/111577] -Os gives significantly bigger code than -O0

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111577 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/111577] New: -Os gives significantly bigger code than -O0

2023-09-24 Thread socketpair at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111577 Bug ID: 111577 Summary: -Os gives significantly bigger code than -O0 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/111285] vector ABSU is lowered incorrectly

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111285 --- Comment #3 from Andrew Pinski --- Created attachment 55985 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55985=edit Patch which fixes the issue I am not sure this is the best patch but we don't pass down 2 inner types into do_unop

[Bug tree-optimization/110386] [11/12/13/14 Regression] ICE with ABSU in backprop

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110386 Andrew Pinski changed: What|Removed |Added Keywords||patch URL|

gcc-14-20230924 is now available

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

[Bug middle-end/111576] gcc generates conditional branch for bitwise "&"

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111576 --- Comment #4 from Andrew Pinski --- >111715 That is not a valid bug # either.

[Bug middle-end/79045] bool expanded as 2 jumps

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79045 Andrew Pinski changed: What|Removed |Added CC||eggert at cs dot ucla.edu --- Comment

[Bug middle-end/111576] gcc generates conditional branch for bitwise "&"

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111576 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug middle-end/111576] gcc generates conditional branch for bitwise "&"

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111576 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |middle-end Target|

[Bug ada/111434] [13/14 regression] infinite loop with limited with clauses

2023-09-24 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111434 Eric Botcazou changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/111576] gcc generates conditional branch for bitwise "&"

2023-09-24 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111576 --- Comment #1 from Paul Eggert --- Created attachment 55984 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55984=edit Generated assembly language for the program

[Bug tree-optimization/111576] New: gcc generates conditional branch for bitwise "&"

2023-09-24 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111576 Bug ID: 111576 Summary: gcc generates conditional branch for bitwise "&" Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug ada/111434] [13/14 regression] infinite loop with limited with clauses

2023-09-24 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111434 Eric Botcazou changed: What|Removed |Added Last reconfirmed||2023-09-24 Summary|Infinite

[PATCH v2 1/1] gcc/d: add LoongArch64 support for D frontend

2023-09-24 Thread Zixing Liu
gcc/ChangeLog: * config.gcc: add loongarch-d.o to d_target_objs for LoongArch architecture. gcc/config/ChangeLog: * loongarch/loongarch-d.cc (loongarch_d_target_versions): add interface function to define builtin D versions for LoongArch architecture.

[PATCH v2 0/1] Add LoongArch64 support for D frontend

2023-09-24 Thread Zixing Liu
This patch adds the LoongArch64 support for GCC D frontend. The runtime support is submitted as a separate patch here: https://github.com/dlang/dmd/pull/15628. You can find more information about the LoongArch architecture on this website:

[Bug ada/111433] bogus error about null exclusion with mix of anonymous and named access types

2023-09-24 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111433 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org Ever

[Bug target/111528] aarch64: Test gfortran.dg/pr80494.f90 fails with -fstack-protector-strong with gcc-13 since r13-7813-gb96e66fd4ef3e3

2023-09-24 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111528 --- Comment #3 from Richard Sandiford --- This was the problem that g:10d59b802a7db9ae908291fb20627c1493cfa26c fixed. I wasn't sure it was worth backporting because it only triggers for out-of-bounds array accesses, or uninitialised Fortran

[Bug c/111575] New: -Wbool-operation mistakenly warns about an int operation

2023-09-24 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111575 Bug ID: 111575 Summary: -Wbool-operation mistakenly warns about an int operation Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal

[Bug c++/111569] Problem finding in Library functions with parametres: 32, 8 , 32 Bits

2023-09-24 Thread hjherbert at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111569 Hans-Jürgen Herbert changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #3 from

[Bug target/111556] OMP_* environment variables not read if libgomp is loaded via dlopen([..], [..]|RTLD_DEEPBIND) and the process executable access the environ global variable

2023-09-24 Thread silvio at traversaro dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111556 --- Comment #3 from Silvio Traversaro --- Thanks for the quick reply! I imagined something like that, but I preferred anyhow to have a clear bug on the libgomp so that I can refer to it and for other people that could encounter this behavior.

[Bug middle-end/111574] [14 Regression] Illegal instruction with "-O3 -fno-toplevel-reorder -fno-tree-bit-ccp -fno-tree-dce"

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111574 --- Comment #6 from Andrew Pinski --- What is happening is: ``` if (_1 != 0) goto ; [INV] else goto ; [INV] : _28 = (uint8_t) _1; // predicted unlikely by early return (on trees) predictor. goto ; [INV] : _7 =

[Bug tree-optimization/111469] [14 Regression] Wrong code at -Os on x86_64-linux-gnu since r14-573-g69f1a8af45

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111469 Andrew Pinski changed: What|Removed |Added CC||19373742 at buaa dot edu.cn ---

[Bug middle-end/111574] [14 Regression] Illegal instruction with "-O3 -fno-toplevel-reorder -fno-tree-bit-ccp -fno-tree-dce"

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111574 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug middle-end/111574] [14 Regression] Illegal instruction with "-O3 -fno-toplevel-reorder -fno-tree-bit-ccp -fno-tree-dce"

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111574 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug c++/99631] decltype of non-type template-parameter shouldn't be const

2023-09-24 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99631 --- Comment #14 from danakj at orodu dot net --- Thank you =)

[Bug ada/88610] ICE with new ACATS test c452003

2023-09-24 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88610 Eric Botcazou changed: What|Removed |Added Status|SUSPENDED |RESOLVED Resolution|---

[Bug c++/67491] [meta-bug] concepts issues

2023-09-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 108736, which changed state. Bug 108736 Summary: [concepts] multidimensional subscript operator inside requires with variable template arguments is broken https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108736

[Bug c++/108736] [concepts] multidimensional subscript operator inside requires with variable template arguments is broken

2023-09-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108736 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/111493] [concepts] multidimensional subscript operator inside requires is broken

2023-09-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111493 Patrick Palka changed: What|Removed |Added CC||ldalessandro at gmail dot com ---

[Bug c++/111493] [concepts] multidimensional subscript operator inside requires is broken

2023-09-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111493 Patrick Palka changed: What|Removed |Added Target Milestone|--- |13.3 Status|ASSIGNED

[Bug c++/99631] decltype of non-type template-parameter shouldn't be const

2023-09-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99631 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug c++/111493] [concepts] multidimensional subscript operator inside requires is broken

2023-09-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111493 --- Comment #4 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:40d2dec34b58c3c31b1c731049a914204ec252c3 commit r13-7837-g40d2dec34b58c3c31b1c731049a914204ec252c3 Author: Patrick Palka

[Bug c++/111485] [11/12/13/14 Regression] Constraint mismatch on template template parameter

2023-09-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111485 --- Comment #3 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:59f5786c20a42be13ac6fec567ffe840045012ad commit r13-7836-g59f5786c20a42be13ac6fec567ffe840045012ad Author: Patrick Palka

[Bug c++/99631] decltype of non-type template-parameter shouldn't be const

2023-09-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99631 --- Comment #12 from CVS Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:b9e02590f7d35f1f8e8e95ab1f2e30f24113f551 commit r13-7835-gb9e02590f7d35f1f8e8e95ab1f2e30f24113f551 Author: Patrick Palka

[Bug c/111574] Illegal instruction with "-O3 -fno-toplevel-reorder -fno-tree-bit-ccp -fno-tree-dce"

2023-09-24 Thread 19373742 at buaa dot edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111574 --- Comment #3 from CTC <19373742 at buaa dot edu.cn> --- Created attachment 55982 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55982=edit The compiler output

[Bug c/111574] Illegal instruction with "-O3 -fno-toplevel-reorder -fno-tree-bit-ccp -fno-tree-dce"

2023-09-24 Thread 19373742 at buaa dot edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111574 --- Comment #2 from CTC <19373742 at buaa dot edu.cn> --- Created attachment 55981 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55981=edit The preprocessed file

[Bug c/111574] Illegal instruction with

2023-09-24 Thread 19373742 at buaa dot edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111574 --- Comment #1 from CTC <19373742 at buaa dot edu.cn> --- *** OS and Platform: Ubuntu 20.04.4 LTS

[Bug c/111574] New: Illegal instruction with

2023-09-24 Thread 19373742 at buaa dot edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111574 Bug ID: 111574 Summary: Illegal instruction with Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee:

[Bug c++/111569] Problem finding in Library functions with parametres: 32, 8 , 32 Bits

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111569 --- Comment #2 from Andrew Pinski --- You would have caught the bad code if in your compile.sh script you added: ``` set -e ``` As that would error out if one of the programs exit with a non-zero return code which gcc does on an error.

[Bug ipa/111571] [13/14 Regression] ICE in modify_call, at ipa-param-manipulation.cc:656

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111571 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Target

[Bug tree-optimization/111572] [14 Regression] Wrong code at -O2 on x86_64-linux-gnu since r14-301-gf2d6beb7a4d

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111572 --- Comment #3 from Andrew Pinski --- Self contained testcase: ``` void gg(void) { static int t = 0; if (t != 0) __builtin_abort(); t++; } int a, b = -8, e, f, h; char c, d, g; static int i(long k) { e = 8; for (;

[Bug tree-optimization/111572] [14 Regression] Wrong code at -O2 on x86_64-linux-gnu since r14-301-gf2d6beb7a4d

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111572 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-09-24 Ever confirmed|0

[Bug tree-optimization/111572] Wrong code at -O2 on x86_64-linux-gnu since r14-301-gf2d6beb7a4d

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111572 --- Comment #1 from Andrew Pinski --- __builtin_printf ("%u\n", _79); __builtin_unreachable ();

[Bug tree-optimization/111563] Missed optimization of LICM

2023-09-24 Thread 652023330028 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111563 --- Comment #4 from Yi <652023330028 at smail dot nju.edu.cn> --- (In reply to Andrew Pinski from comment #3) > (In reply to Yi from comment #2) > > (In reply to Andrew Pinski from comment #1) > > > _5 = var_0_16(D) + var_6_18(D); > > >

[Bug tree-optimization/111563] Missed optimization of LICM

2023-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111563 --- Comment #3 from Andrew Pinski --- (In reply to Yi from comment #2) > (In reply to Andrew Pinski from comment #1) > > _5 = var_0_16(D) + var_6_18(D); > > invariant up to level 1, cost 1. > > > > Basically because the cost is not high

[PATCH] Fix PR 110386: backprop vs ABSU_EXPR

2023-09-24 Thread Andrew Pinski
The issue here is that when backprop tries to go and strip sign ops, it skips over ABSU_EXPR but ABSU_EXPR not only does an ABS, it also changes the type to unsigned. Since strip_sign_op_1 is only supposed to strip off sign changing operands and not ones that change types, removing ABSU_EXPR here

[Bug tree-optimization/111563] Missed optimization of LICM

2023-09-24 Thread 652023330028 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111563 --- Comment #2 from Yi <652023330028 at smail dot nju.edu.cn> --- (In reply to Andrew Pinski from comment #1) > _5 = var_0_16(D) + var_6_18(D); > invariant up to level 1, cost 1. > > Basically because the cost is not high enough ... > > If

Re: RISC-V: Added support for CRC.

2023-09-24 Thread Joern Rennecke
On Sun, 24 Sept 2023 at 12:41, Alexander Monakov wrote: > > > On Sun, 24 Sep 2023, Joern Rennecke wrote: > > > It is a stated goal of coremark to test performance for CRC. > > I would expect a good CRC benchmark to print CRC throughput in > bytes per cycle or megabytes per second. > > I don't see

[Bug fortran/80757] Internal compiler error when omitting upper subscript of a character substring in a module subroutine

2023-09-24 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80757 Paul Thomas changed: What|Removed |Added CC||pault at gcc dot gnu.org --- Comment #3

[Bug fortran/19276] [meta-bug] CHARACTER related bugs in gfortran

2023-09-24 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19276 Bug 19276 depends on bug 92586, which changed state. Bug 92586 Summary: ICE in gimplify_expr, at gimplify.c:13479 with nested allocatable derived types https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92586 What|Removed

[Bug fortran/92586] ICE in gimplify_expr, at gimplify.c:13479 with nested allocatable derived types

2023-09-24 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92586 Paul Thomas changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug fortran/92586] ICE in gimplify_expr, at gimplify.c:13479 with nested allocatable derived types

2023-09-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92586 --- Comment #14 from CVS Commits --- The releases/gcc-13 branch has been updated by Paul Thomas : https://gcc.gnu.org/g:9eb2f102d38697011d3069fac759b7c6e149bed4 commit r13-7834-g9eb2f102d38697011d3069fac759b7c6e149bed4 Author: Paul Thomas

[Bug fortran/68155] ICE on initializing character array in type (len_lhs <> len_rhs)

2023-09-24 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68155 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/19276] [meta-bug] CHARACTER related bugs in gfortran

2023-09-24 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19276 Bug 19276 depends on bug 68155, which changed state. Bug 68155 Summary: ICE on initializing character array in type (len_lhs <> len_rhs) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68155 What|Removed |Added

[Bug fortran/68155] ICE on initializing character array in type (len_lhs <> len_rhs)

2023-09-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68155 --- Comment #14 from CVS Commits --- The releases/gcc-13 branch has been updated by Paul Thomas : https://gcc.gnu.org/g:8c1925ece0193058120e94614e99360e9600777e commit r13-7833-g8c1925ece0193058120e94614e99360e9600777e Author: Paul Thomas

[PING][PATCH v2] Add clang's invalid-noreturn warning

2023-09-24 Thread Julian Waters via Gcc
Hi all, Sorry for sending the ping here, but gcc-patches seems to be completely overwhelmed and my patch keeps getting buried Cheers, https://gcc.gnu.org/pipermail/gcc-patches/2023-August/627913.html best regards, Julian

[Bug target/108575] Bug in gcc arm non eabi

2023-09-24 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108575 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org

[Bug middle-end/111573] New: lambda functions often not inlined and optimized out

2023-09-24 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111573 Bug ID: 111573 Summary: lambda functions often not inlined and optimized out Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/111572] New: Wrong code at -O2 on x86_64-linux-gnu since r14-301-gf2d6beb7a4d

2023-09-24 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111572 Bug ID: 111572 Summary: Wrong code at -O2 on x86_64-linux-gnu since r14-301-gf2d6beb7a4d Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/111571] [13/14 Regression] ICE in modify_call, at ipa-param-manipulation.cc:656

2023-09-24 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111571 Martin Jambor changed: What|Removed |Added Last reconfirmed||2023-09-24

[PING] [C PATCH] Synthesize nonnull attribute for parameters declared with static

2023-09-24 Thread Martin Uecker
Am Mittwoch, dem 26.07.2023 um 18:06 +0200 schrieb Martin Uecker: > > C programmers increasingly use static to indicate that > pointer parameters are non-null. Clang can exploit this > for warnings and optimizations. GCC has some warnings > but not all warnings it has for nonnull. Below is a >

[PATCH] Always generate else-block in gimplify

2023-09-24 Thread Jørgen Kvalsvik
This is a request for feedback and a proof-of-concept, not something I intend to merge as-is. It would be nice if gcc, maybe just under some circumstances, always generated an else-block for coverage purposes. I am working on the MC/DC support by CFG analysis for a while

[Bug analyzer/104940] RFE: integrate analyzer with an SMT solver

2023-09-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104940 --- Comment #6 from David Malcolm --- https://github.com/kristerw/pysmtgcc

[Bug tree-optimization/111571] New: [13/14 Regression] ICE in modify_call, at ipa-param-manipulation.cc:656

2023-09-24 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111571 Bug ID: 111571 Summary: [13/14 Regression] ICE in modify_call, at ipa-param-manipulation.cc:656 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug analyzer/104940] RFE: integrate analyzer with an SMT solver

2023-09-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104940 --- Comment #5 from David Malcolm --- See also: https://kristerw.github.io/2022/11/01/verifying-optimizations/

[Bug target/108575] Bug in gcc arm non eabi

2023-09-24 Thread ergasies.uni at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108575 --- Comment #8 from Nikos Tosis --- We found the problem, the bug was in Embedded Ecoder from Mathworks. So the Coder has generated wrong C Code. Thank you all.

[Bug c++/111569] Problem finding in Library functions with parametres: 32, 8 , 32 Bits

2023-09-24 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111569 Xi Ruoyao changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug demangler/111570] New: -march=generic prints error

2023-09-24 Thread brjd_epdjq36 at kygur dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111570 Bug ID: 111570 Summary: -march=generic prints error Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: demangler

Re: RISC-V: Added support for CRC.

2023-09-24 Thread Alexander Monakov
On Sun, 24 Sep 2023, Joern Rennecke wrote: > It is a stated goal of coremark to test performance for CRC. I would expect a good CRC benchmark to print CRC throughput in bytes per cycle or megabytes per second. I don't see where Coremark states that goal. In the readme at

[Bug c++/111569] New: Problem finding in Library functions with parametres: 32, 8 , 32 Bits

2023-09-24 Thread hjherbert at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111569 Bug ID: 111569 Summary: Problem finding in Library functions with parametres: 32, 8 , 32 Bits Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity:

[Bug libstdc++/111550] The range adaptor closure object generated by adaptor(args...) is not a perfect forwarding call wrapper

2023-09-24 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111550 --- Comment #3 from 康桓瑋 --- Let me report another issue I observed on this PR. According to [range.adaptor.object], adaptor(args...) uses std​::​forward(args).. . to forward arguments into the call wrapper's decayed member, whereas libstdc++

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-24 Thread Xi Ruoyao
On Wed, 2023-09-20 at 09:15 +0800, Chenghui Pan wrote: > LoongArch failed to pass gcc.dg/pr104992.c with -mlsx and -mlasx. This test > uses > different dg-final directives depending on the vect_int_mod result, LoongArch > SX/ASX supports this operations but corresponding description is not

[Bug libstdc++/111568] New: std::not_fn can accept non-movable function

2023-09-24 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111568 Bug ID: 111568 Summary: std::not_fn can accept non-movable function Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/111544] [14 regression] assignment of read-only location after r14-4111-g6e92a6a2a72d3b

2023-09-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111544 --- Comment #13 from Jonathan Wakely --- But the code is "ill-formed, no diagnostic required" and GCC is now being more helpful by diagnosing it.

[Bug c++/111544] [14 regression] assignment of read-only location after r14-4111-g6e92a6a2a72d3b

2023-09-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111544 --- Comment #12 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #10) > So clang most likely thinks b.t and c->t are still type depedent even though > they don't need to be ... Which is fine. It's QoI whether non-dependent

[Bug libstdc++/111550] The range adaptor closure object generated by adaptor(args...) is not a perfect forwarding call wrapper

2023-09-24 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111550 --- Comment #2 from 康桓瑋 --- (In reply to Jonathan Wakely from comment #1) > I think all four bugs related to adaptor closures are very similar and could > be a single bug report. Perhaps. Maybe I should collect them all. Sorry for bringing up

[Bug libstdc++/111550] The range adaptor closure object generated by adaptor(args...) is not a perfect forwarding call wrapper

2023-09-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111550 --- Comment #1 from Jonathan Wakely --- I think all four bugs related to adaptor closures are very similar and could be a single bug report.

[Bug analyzer/111567] RFE: support __attribute__((counted_by)) in -fanalyzer

2023-09-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111567 --- Comment #1 from David Malcolm --- This PR tracks adding support for the attribute to -fanalyzer (which I can take a look at). Adding the attribute itself is tracked by PR 108896.

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-24 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #3

[Bug analyzer/111567] New: RFE: support counted_by in analyzer

2023-09-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111567 Bug ID: 111567 Summary: RFE: support counted_by in analyzer Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer

RE: [PATCH v2] RISC-V: Fix fortran ICE/PR111546 when RV32 vec_init

2023-09-24 Thread Li, Pan2
Committed, thanks Juzhe. Pan From: 钟居哲 Sent: Sunday, September 24, 2023 2:06 PM To: Li, Pan2 ; gcc-patches Cc: Li, Pan2 ; Wang, Yanzhang ; kito.cheng ; patrick Subject: Re: [PATCH v2] RISC-V: Fix fortran ICE/PR111546 when RV32 vec_init LGTM

  1   2   >