Re: #line directives in generated C files

2020-09-04 Thread Pip Cet via Gcc
On Thu, Sep 3, 2020 at 8:19 PM Hans-Peter Nilsson wrote: > On Thu, 27 Aug 2020, Pip Cet via Gcc wrote: > > I may be missing an obvious workaround, but it seems we currently emit > > a #line directive when including lines from machine description files > > in C files, but never emit a second direct

Re: #line directives in generated C files

2020-09-03 Thread Hans-Peter Nilsson
On Thu, 3 Sep 2020, Hans-Peter Nilsson wrote: > IMHO stepping into the .md really isn't helpful. Even a pattern > name in a comment in the generated code would be better. ...and JFTR, yes I noticed there is, or rather line indicator for example /path/to/mmix.md:211 above gen_adddi3 in insn-emit.c

Re: #line directives in generated C files

2020-09-03 Thread Hans-Peter Nilsson
On Thu, 27 Aug 2020, Pip Cet via Gcc wrote: > I may be missing an obvious workaround, but it seems we currently emit > a #line directive when including lines from machine description files > in C files, but never emit a second directive when switching back to > the generated C file. This makes step

Re: #line directives in generated C files

2020-08-28 Thread Richard Sandiford
Pip Cet via Gcc writes: > I may be missing an obvious workaround, but it seems we currently emit > a #line directive when including lines from machine description files > in C files, but never emit a second directive when switching back to > the generated C file. This makes stepping through the ba

#line directives in generated C files

2020-08-27 Thread Pip Cet via Gcc
I may be missing an obvious workaround, but it seems we currently emit a #line directive when including lines from machine description files in C files, but never emit a second directive when switching back to the generated C file. This makes stepping through the backend in gdb somewhat painful, be