This is the mail archive of the gcc-bugs@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]

bug gcc/config/arm/arm.h




Hi

The macro for REG_ALLOC_ORDER is missing a
entry for hard reg # 26 (FIRST_PSEUDO_REG is 27)

This results in TWO entries for hard reg # 0 and can
result in the routine order_regs_for_reload() in reload1.c
using an index of 27 when assigning to the potential_reload_regs[]
array which is out-of-bounds (0..26)

I will send a patch to egcs-patches later.

Graham

ps. Jeff, This might have something to do with using a pseudo
register  to index the reg_values[] array in reload1.c  


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