[Bug rtl-optimization/59857] 4.8.2 loop optimization is worse than 4.5.1 under ARM

2014-01-20 Thread xuelingko at yahoo dot com.tw
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59857 --- Comment #3 from Jacky Ko --- You are right. ulv is volatile, the typedef in the code is typedef unsigned int volatile ulv; I'm sorry that I didn't provide the definition. I modify the C code as below, int TEST_Memread(unsigned int * pSrc,

[Bug rtl-optimization/59857] New: 4.8.2 loop optimization is worse than 4.5.1 under ARM

2014-01-17 Thread xuelingko at yahoo dot com.tw
Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: xuelingko at yahoo dot com.tw I compile a simple source code, memread.c, by gcc 4.8.2 and 4.5.1 The C code is: int TEST_Memread(ulv * pSrc, unsigned int nCount) { unsigned int val; ulv *p1