RE: New feature: -fdump-gimple-nodes (once more, with feeling)

2024-02-14 Thread Robert Dubner
I have thought about a graphical representation more than once. Heck, the connections between nodes is one of the things I needed to know in the first place. And certainly the information necessary is all there in the output I generate; I have drawn by hand pieces of the tree connections many tim

Re: Valid types for a binary op in GENERIC?

2024-02-14 Thread Richard Biener via Gcc
> Am 14.02.2024 um 18:16 schrieb David Malcolm via Gcc : > > The ICE in PR analyzer/111441 is due to this assertion in > fold_binary_loc failing: > > 11722 gcc_assert (TYPE_PRECISION (atype) == TYPE_PRECISION > (type)); > > where code=MULT_EXPR, type=, and: > > (gdb) p type >

Valid types for a binary op in GENERIC?

2024-02-14 Thread David Malcolm via Gcc
The ICE in PR analyzer/111441 is due to this assertion in fold_binary_loc failing: 11722 gcc_assert (TYPE_PRECISION (atype) == TYPE_PRECISION (type)); where code=MULT_EXPR, type=, and: (gdb) p type $1 = (gdb) p atype $2 = due to the analyzer building a mult_expr node with tho

Re: New feature: -fdump-gimple-nodes (once more, with feeling)

2024-02-14 Thread Dimitar Dimitrov
On Tue, Feb 13, 2024 at 01:46:11PM -0600, Robert Dubner wrote: ... > An example of a complete dump is available at > https://www.dubner.com/main.nodes.html. The C source code that generated > it is available at the end of > https://cobolworx.com/pages/dump-gimple-nodes.html > Hyperlinked text is

Re: New feature: -fdump-gimple-nodes (once more, with feeling)

2024-02-14 Thread David Malcolm via Gcc
On Tue, 2024-02-13 at 23:40 -0800, Andi Kleen via Gcc wrote: > Robert Dubner writes: > > > There didn't seem to be any such functionality in GCC.  I found a > > routine > > in print-tree.cc which printed out a single node, but I needed to > > understand the entire tree of nodes for a function. >

Re: New feature: -fdump-gimple-nodes (once more, with feeling)

2024-02-14 Thread Richard Biener via Gcc
On Tue, Feb 13, 2024 at 8:47 PM Robert Dubner wrote: > > I have not contributed to GCC before, so I am not totally sure how to go > about it. > > So, I am letting you know what I want to do, so that I can get advice on a > good way to do it. I have read https://gcc.gnu.org/contribute.html, and I