unify line number handling patch 1
Joern Rennecke
joern.rennecke@superh.com
Thu May 1 20:45:00 GMT 2003
> * input.h (input_filename, lineno): Remove.
> (location_s, location_t): Move from location.h.
> (input_location): New.
> (input_filename, input_line): New #defines.
Maintainability is also about ease of debugging. Instead of
cond 5 cur_insn_uid == 4095 && lineno >= 5030
display lineno
...
cond 5 cur_insn_uid == 4095 && lineno == 5172
I'll have to type:
cond 5 cfun->emit->x_cur_insn_uid == 4095 && input_location.line >= 5030
display input_location.line
...
cond 5 cfun->emit->x_cur_insn_uid == 4095 && input_location.line == 5172
Why can't we just have cfun->insn_uid and input.line ?
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658
More information about the Gcc-patches
mailing list