This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unify line number handling patch 1


> 	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]