Re: [PATCH] Fix compile time warning caused by PIC_OFFSET_TABLE_REGNUM

2014-09-23 Thread Jeff Law
On 09/23/14 13:15, Jiong Wang wrote: PIC_OFFSET_TABLE_REGNUM is default to be INVALID_NUM, we need to make sure it's not used as unsigned type register index, otherwise there will be array index out of bound warning which will be treated as error. the code in shrink-wrap.c is not guarded by this

[PATCH] Fix compile time warning caused by PIC_OFFSET_TABLE_REGNUM

2014-09-23 Thread Jiong Wang
PIC_OFFSET_TABLE_REGNUM is default to be INVALID_NUM, we need to make sure it's not used as unsigned type register index, otherwise there will be array index out of bound warning which will be treated as error. the code in shrink-wrap.c is not guarded by this check which will cause trouble for a