On Tue, 1 Dec 2015, Bernd Schmidt wrote: > On 12/01/2015 04:31 PM, Bernd Schmidt wrote: > > On 12/01/2015 04:23 PM, Jakub Jelinek wrote: > > > With the comments in the *.md file I'd worry about them getting out of > > > date, > > > or people feeling they have to edit them manually (rather than being > > > regenerated or whatever). > > > > I suppose we could have a Makefile rule that checks for out-of-date > > comments (by redoing the annotation and running diff). That would also > > alleviate the second worry. > > > > I'd much prefer the original source files to be searchable, because if I > > want to make modifications, I can't make them in tmp-mddump.md and going > > back and forth between two files is just inconvenient. > > The automatic Makefile approach might look something like this. The effect is > similar to what happens when you edit tm.texi.in, except the build would not > be interrupted every time, only when you modify the iterator expansion of a > pattern. There's a new rtx code which can be put into a machine description to > enable this feature.
(No-one else chimed in, so:) I really like this! > This could be further tweaked to make (enable_auto_annotate) push/poppable; I > could imagine a world where we'd want it enabled for i386.md but not for > sse.md. Another tweak might be to have every line marked as "--GEN--" both for > clarity and for robustifying the part of the script that removes the previous > version of the annotations. > > Thoughts? Maybe a good idea. HNY, everyone. brgds, H-P