Re: [PATCH] Fix endianness assumption in LRA

2015-09-16 Thread Vladimir Makarov
On 09/15/2015 02:39 AM, David Miller wrote: This was the most glaring case, and would result in LRA crashing if this code snippet was actually hit on big-endian, since simplify_gen_subreg() will return NULL in such a case and then we try to blindly emit a move to 'subreg'. Vlad, is this OK to c

[PATCH] Fix endianness assumption in LRA

2015-09-14 Thread David Miller
This was the most glaring case, and would result in LRA crashing if this code snippet was actually hit on big-endian, since simplify_gen_subreg() will return NULL in such a case and then we try to blindly emit a move to 'subreg'. There is code in match_reload which seems to have a similar problem