[Bug tree-optimization/105940] New: suggested_unroll_factor applying place looks wrong

2022-06-12 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105940 Bug ID: 105940 Summary: suggested_unroll_factor applying place looks wrong Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH 4/4] xtensa: Optimize bitwise AND operation with some specific forms of constants

2022-06-12 Thread Max Filippov via Gcc-patches
a8, a8, 0, 4 beqia8, 4, .L4 l32ra8, .LC3 callx8 a8 .L4: movi.n a10, 0 l32ra8, .LC4 callx8 a8 .size main, .-main .global x .data .align 4 .type x, @object .size x, 4 x: .byte 32

[Bug sanitizer/105817] outline kernel-address sanitizer doesn't save caller-saved registers properly on AArch64

2022-06-12 Thread tonnyl at nvidia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105817 tonnyl at nvidia dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c/105939] "warning: anonymous struct declared inside parameter list will not be visible outside of this definition or declaration" should have a warning flag attached to it

2022-06-12 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105939 --- Comment #1 from Eric Gallager --- Oh, one more; I updated the testcase so it's now: $ cat icculus_twitter_thread.c #include int main(void) { int x = 0; do printf("%d\n", x++); while (x < 10); return 0; } const const const

[Bug c/105939] New: "warning: anonymous struct declared inside parameter list will not be visible outside of this definition or declaration" should have a warning flag attached to it

2022-06-12 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105939 Bug ID: 105939 Summary: "warning: anonymous struct declared inside parameter list will not be visible outside of this definition or declaration" should have a warning flag attached

RE: [EXTERNAL] Re: [PATCH] Add instruction level discriminator support.

2022-06-12 Thread Eugene Rozenfeld via Gcc-patches
Thank you for the review Andi. Yes, the corresponding reader change is @@ -15671,8 +15673,9 @@ module_state::read_location (bytes_in ) const if (range.m_start == UNKNOWN_LOCATION) range.m_start = locus; range.m_finish = read_location (sec); + unsigned

Re: [PATCH] Add instruction level discriminator support.

2022-06-12 Thread Andi Kleen via Gcc-patches
Eugene Rozenfeld via Gcc-patches writes: > { > diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc > index d1dc73724d1..5ed6b7b0f94 100644 > --- a/gcc/cp/module.cc > +++ b/gcc/cp/module.cc > @@ -15587,6 +15587,8 @@ module_state::write_location (bytes_out , > location_t loc) >

[Bug target/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105753 --- Comment #4 from Andrew Pinski --- g:3ba781d3b5c8efadb60866c9743b657e8f0eb222

[Bug target/105938] New: [12 Regression] ICE in get_insn_temp late, at final.cc:2050 on nvptx-none

2022-06-12 Thread doko at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- building the nxptx-none offload compiler with the just built gcc-12 from the branch 20220612 ICEs in: [...] 2204622

[Bug target/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705

2022-06-12 Thread filip.hejsek at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105753 Filip Hejsek changed: What|Removed |Added Known to fail||12.1.0 Known to work|

gcc-13-20220612 is now available

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

[Bug tree-optimization/105937] [12/13 Regression] maybe-uninitialized with std::optional

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105937 Andrew Pinski changed: What|Removed |Added Keywords||needs-reduction Target Milestone|---

[Bug target/104871] macosx-version-min wrong for macOS >= Big Sur (darwin20)

2022-06-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104871 --- Comment #1 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:add1adaa17a294ea25918ffb4fdd40f115362632 commit r13-1058-gadd1adaa17a294ea25918ffb4fdd40f115362632 Author: Simon Wright Date:

[Bug tree-optimization/105937] [12] Regression with maybe-uninitialized

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105937 --- Comment #1 from Andrew Pinski --- Note your example no longer compiles on the trunk of GCC as it requires to add: #include

[Bug c++/105937] New: [12] Regression with maybe-uninitialized

2022-06-12 Thread janisozaur+gcc at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105937 Bug ID: 105937 Summary: [12] Regression with maybe-uninitialized Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/105922] autovectorizer does not handle fp exceptions correctly for SVE

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105922 Andrew Pinski changed: What|Removed |Added Summary|AArch64 SVE instruction |autovectorizer does not

[Bug target/105927] ICE: RTL check: expected code 'reg', have 'mem' in rhs_regno, at rtl.h:1932 with -mtune=k6-3 -msse

2022-06-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105927 Uroš Bizjak changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com

[Bug target/105927] ICE: RTL check: expected code 'reg', have 'mem' in rhs_regno, at rtl.h:1932 with -mtune=k6-3 -msse

2022-06-12 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105927 Uroš Bizjak changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

Re: fanalyzer: debugging zero state machine

2022-06-12 Thread Tim Lange
On Do, Jun 9 2022 at 13:40:06 -0400, David Malcolm wrote: On Thu, 2022-06-09 at 16:49 +0200, Tim Lange wrote: > On Mi, Jun 8 2022 at 11:12:52 -0400, David Malcolm wrote: > > On Wed, 2022-06-08 at 01:42 +0200, Tim Lange wrote: > > > > Hi Dave, Hi Tim; various responses inline

Re: Fix ipa-prop wrt volatile memory accesses

2022-06-12 Thread Martin Jambor
Hi, On Fri, Jun 10 2022, Jan Hubicka wrote: > Hi, > this patch prevents ipa-prop from propagating aggregates when load is > volatile. Martin, does this look OK? It seem to me that ipa-prop may > need some additional volatile flag checks. load_from_unmodified_param_or_agg checks for it,

Re: [PATCH 2/2] Add a general mapping from internal fns to target insns

2022-06-12 Thread Jeff Law via Gcc-patches
On 6/10/2022 3:14 AM, Richard Sandiford via Gcc-patches wrote: Several existing internal functions map directly to an instruction defined in target-insns.def. This patch makes it easier to define more such functions in future. This should help to reduce cut-&-paste, but more importantly, it

Re: [PATCH 1/2] Factor out common internal-fn idiom

2022-06-12 Thread Jeff Law via Gcc-patches
On 6/10/2022 3:13 AM, Richard Sandiford via Gcc-patches wrote: internal-fn.c has quite a few functions that simply map the result of the call to an instruction's output operand (if any) and map each argument to an instruction's input operand, in order. This patch adds a single function for

Re: [PATCH/RFC take #2] cprop_hardreg... Third time's a charm.

2022-06-12 Thread Jeff Law via Gcc-patches
On 6/3/2022 11:27 AM, Roger Sayle wrote: Hi Richard, Here's a revised version of my patch incorporating both your suggestions. The algorithm now uses two worklist vectors, and pointers to them, alternating between them on each iteration, which allows the code to handle an arbitrary number of

[Bug target/105932] Small structures returned incorrectly in i386 Microsoft ABI

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105932 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

Re: [PATCH] PR tree-optimization/105835: Two narrowing patterns for match.pd.

2022-06-12 Thread Jeff Law via Gcc-patches
On 6/5/2022 7:12 AM, Roger Sayle wrote: This patch resolves PR tree-optimization/105835, which is a code quality (dead code elimination) regression at -O1 triggered/exposed by a recent change to canonicalize X&-Y as X*Y. The new (shorter) form exposes some missed optimization opportunities

[Bug rtl-optimization/105936] [10 Regression] ICE with inline-asm and TLS on x86_64 and -O2 in move_insn

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105936 Andrew Pinski changed: What|Removed |Added Keywords||needs-reduction --- Comment #2 from

[Bug rtl-optimization/105936] [10 Regression] ICE with inline-asm and TLS on x86_64 and -O2 in move_insn

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105936 Andrew Pinski changed: What|Removed |Added Keywords|needs-reduction |inline-asm Summary|[10

Re: [PATCH] i386: Fix up *3_doubleword_mask [PR105911

2022-06-12 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 10, 2022 at 9:27 PM Jakub Jelinek wrote: > > Hi! > > Another regression caused by my recent patch. > > This time because define_insn_and_split only requires that the > constant mask is const_int_operand. When it was only SImode, > that wasn't a problem, HImode neither, but for DImode

[Bug target/105930] [12/13 Regression] Excessive stack spill generation on 32-bit x86

2022-06-12 Thread torvalds--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930 --- Comment #10 from Linus Torvalds --- (In reply to Roger Sayle from comment #7) > Investigating. Adding -mno-stv the stack size reduces from 2612 to 428 (and > on godbolt the number of assembler lines reduces from 6952 to 6203). So now that

Re: [PATCH]middle-end Use subregs to expand COMPLEX_EXPR to set the lowpart.

2022-06-12 Thread Jeff Law via Gcc-patches
On 6/9/2022 1:52 AM, Tamar Christina via Gcc-patches wrote: Hi All, When lowering COMPLEX_EXPR we currently emit two VEC_EXTRACTs. One for the lowpart and one for the highpart. The problem with this is that in RTL the lvalue of the RTX is the only thing tying the two instructions together.

Re: [PATCH] PR middle-end/105853: Call store_constructor directly from calls.cc.

2022-06-12 Thread Jeff Law via Gcc-patches
On 6/6/2022 7:50 AM, Roger Sayle wrote: This patch fixes both ICE regressions PR middle-end/105853 and PR target/105856 caused by my recent patch to expand small const structs as immediate constants. That patch updated code generation in three places: two in expr.cc that call

Re: New "Diving into GCC internals" section in newbies guide

2022-06-12 Thread Eric Gallager via Gcc
On Sun, Jun 12, 2022 at 12:38 PM David Malcolm via Gcc wrote: > > On Sat, 2022-06-11 at 02:35 +0200, Eric Botcazou wrote: > > > Hope this is helpful; please let me know if you see any mistakes, > > > or if > > > there's room for improvement > > > > Nice work! In the "inside cc1" chapter, I think

[Bug rtl-optimization/105936] [10 Regression] internal compiler error: in move_insn, at haifa-sched.c:5463

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105936 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.4

[Bug c++/105931] [12/13 regression] ICE in cxx_eval_constant_expression

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105931 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-06-12

[Bug c++/105931] [12/13 regression] ICE in cxx_eval_constant_expression

2022-06-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105931 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic, |

Re: New "Diving into GCC internals" section in newbies guide

2022-06-12 Thread David Malcolm via Gcc
On Sat, 2022-06-11 at 02:35 +0200, Eric Botcazou wrote: > > Hope this is helpful; please let me know if you see any mistakes, > > or if > > there's room for improvement > > Nice work!  In the "inside cc1" chapter, I think that IR is usually > meant for > "Intermediate Representation" rather than

[Bug target/105930] [12/13 Regression] Excessive stack spill generation on 32-bit x86

2022-06-12 Thread torvalds--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930 --- Comment #9 from Linus Torvalds --- Looks like STV is "scalar to vector" and it should have been disabled automatically by the -mno-avx flag anyway. And the excessive stack usage was perhaps due to GCC preparing all those stack slots for

[Bug fortran/105916] gfortran -fdiagnostics-format=json yields incorrect output

2022-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105916 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/105930] [12/13 Regression] Excessive stack spill generation on 32-bit x86

2022-06-12 Thread torvalds--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930 --- Comment #8 from Linus Torvalds --- (In reply to Roger Sayle from comment #7) > Investigating. Adding -mno-stv the stack size reduces from 2612 to 428 (and > on godbolt the number of assembler lines reduces from 6952 to 6203). Thanks.

[Bug fortran/105916] gfortran -fdiagnostics-format=json yields incorrect output

2022-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105916 --- Comment #1 from David Malcolm --- Thanks for filing this. Reproducable with trunk. On trunk I also see similar behavior with the new SARIF output format via options: -fdiagnostics-format=sarif-stderr -fdiagnostics-format=sarif-file

Re: [PATCH] Do not erase warning data in gimple_set_location

2022-06-12 Thread Jeff Law via Gcc-patches
On 6/10/2022 4:57 AM, Eric Botcazou via Gcc-patches wrote: Hi, gimple_set_location is mostly invoked on newly built GIMPLE statements, so their location is UNKNOWN_LOCATION and setting it will clobber the warning data of the passed location, if any. Tested on x86-64/Linux, OK for mainline

[Bug gcov-profile/105936] New: internal compiler error: in move_insn, at haifa-sched.c:5463

2022-06-12 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105936 Bug ID: 105936 Summary: internal compiler error: in move_insn, at haifa-sched.c:5463 Product: gcc Version: 9.4.0 Status: UNCONFIRMED Severity: normal

[Bug libfortran/105935] New: libgfortran build fails if HAVE_VSNPRINTF test fails

2022-06-12 Thread phil at krylov dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105935 Bug ID: 105935 Summary: libgfortran build fails if HAVE_VSNPRINTF test fails Product: gcc Version: 10.3.0 Status: UNCONFIRMED Severity: normal Priority: P3

Question about https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94138

2022-06-12 Thread Oliver Clinton via Gcc
Hey I’m Olive and I run a file sharing service called SendBig.com where you can send files up to 30GB for Free with amazing features available. I stumbled upon your website https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94138 , and I just have to say: WOW! I had a quick proposal, I was

[Bug rtl-optimization/105747] Scheduler can take a long time on arm-linux sometimes

2022-06-12 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105747 --- Comment #9 from David Binderman --- (In reply to David Binderman from comment #8) > (In reply to David Binderman from comment #7) > > Created attachment 53119 [details] > > C source code > > > > Another one. Over 15 minutes this time. > >

Re: [PATCH 2/4] xtensa: Simplify conditional branch/move insn patterns

2022-06-12 Thread Takayuki 'January June' Suwa via Gcc-patches
On 2022/06/12 16:51, Max Filippov wrote: This patch is whitespace-damaged. Please resend. oh, sorry. reposted as zip in attachment due to avoiding damage.<>

Re: [PATCH 2/4] xtensa: Simplify conditional branch/move insn patterns

2022-06-12 Thread Max Filippov via Gcc-patches
On Sat, Jun 11, 2022 at 11:43 PM Takayuki 'January June' Suwa wrote: > > No need to describe the "false side" conditional insn patterns anymore. > > gcc/ChangeLog: > > * config/xtensa/xtensa-protos.h (xtensa_emit_branch): > Remove the first argument. >

[PATCH 4/4] xtensa: Optimize bitwise AND operation with some specific forms of constants

2022-06-12 Thread Takayuki 'January June' Suwa via Gcc-patches
This patch offers several insn-and-split patterns for bitwise AND with register and constant that cannot fit into a "MOVI Ax, simm12" instruction, but can be represented as: i. 1's least significant N bits and the others 0's (17 <= N <= 31) ii. 1's most significant N bits and the others 0's

[PATCH 3/4] xtensa: Make use of BALL/BNALL instructions

2022-06-12 Thread Takayuki 'January June' Suwa via Gcc-patches
In Xtensa ISA, there is no single machine instruction that calculates unary bitwise negation, but a few similar fused instructions are exist: "BALL Ax, Ay, label" // if ((~Ax & Ay) == 0) goto label; "BNALL Ax, Ay, label" // if ((~Ax & Ay) != 0) goto label; These instructions have never

[PATCH 2/4] xtensa: Simplify conditional branch/move insn patterns

2022-06-12 Thread Takayuki 'January June' Suwa via Gcc-patches
No need to describe the "false side" conditional insn patterns anymore. gcc/ChangeLog: * config/xtensa/xtensa-protos.h (xtensa_emit_branch): Remove the first argument. (xtensa_emit_bit_branch): Remove it because now called only from the output statement of

[PATCH 1/4] xtensa: Improve shift operations more

2022-06-12 Thread Takayuki 'January June' Suwa via Gcc-patches
This patch introduces funnel shifter utilization, and rearranges existing "per-byte shift" insn patterns. gcc/ChangeLog: * config/xtensa/predicates.md (logical_shift_operator, xtensa_shift_per_byte_operator): New predicates. * config/xtensa/xtensa-protos.h

[Bug target/105930] [12/13 Regression] Excessive stack spill generation on 32-bit x86

2022-06-12 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930 Roger Sayle changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED