ra-debug.c: why?

Joe Buck Joe.Buck@synopsys.com
Thu Jul 18 14:14:00 GMT 2002


Zack writes:
> It would be much better if print-rtl.c were parametrized to generate
> both dump formats, and if this were controlled by a global option.
> Then people could choose which dump format they like, and get *all*
> the RTL dumps in that format, facilitating comparisons.

Strongly agreed.  I think that the new format will help new developers
climb the learning curve (*I* would certainly find it useful), and since
it is abbreviated developers will still need the old format, even those
who prefer the new one.  But duplicating the code will be a maintainance
nightmare, and there's no reason not to have the new format available for
all passes.

A modest proposal: We could probably improve the quality of software
significantly if we limited the size of the kill buffer to around one line
of text.  If it were painful for programmers to cut and paste large chunks
of code and they had to explicitly type it in, they might be more
motivated to do refactoring and reuse.  (no, I wouldn't *really* want to
cripple editors, but it is a problem that it is so easy to do cut and
paste).






More information about the Gcc mailing list