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

bug in lra-constraints.c (simple_move_p register_move_cost)


Hi,

I may have found a bug when I was trying to port my private backend to new LRA pass (using gcc 4.9.2+patches).

In lra-constraints.c, in function simple_move_p, the target hook targetm.register_move_cost is called with two badly swapped parameters :

        targetm.register_move_cost (GET_MODE (src), sclass, dclass) 

should be :

        targetm.register_move_cost (GET_MODE (src), dclass, sclass)


In my port of GCC it leads to an error when checking constrain_operands at the end of LRA pass

   Regards,

Selim Belbachir








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