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: [PATCH,RFC]: Change entry block and exit block to non-negativenumbers



I suspect the reason ENTRY and EXIT are negative was probably laziness to avoid going through the code and finding which of the places that loop from index 0 to n_basic_blocks would break if ENTRY and EXIT were included. As well as many historical places which probably assumed block 0 was the entry block.

Yup. It took a *lot* of auditing to find all these places. :)
for (i = NUM_FIXED_BLOCKS; i < n_basic_blocks; i++)

(I have to think about the latter for a few extra milliseconds... and we
all know how much I hate to think :-)

I'll add a new macro there.



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