[Bug target/64479] [4.8 Regression][SH] wrong optimization delayed-branch

2015-01-09 Thread oshima...@yagoto-urayama.jp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64479 --- Comment #4 from Yasushi Oshima --- > Both patches fix the problem here, but I haven't tested them further. My > feeling is that the function reg_set_p should be fixed. I tried to patch to reg_set_p(), then this problem is fixed. And the nat

[Bug c/64479] New: wrong optimization delayed-branch for SH

2015-01-03 Thread oshima...@yagoto-urayama.jp
Assignee: unassigned at gcc dot gnu.org Reporter: oshima...@yagoto-urayama.jp On NetBSD/landisk(sh3) 7.0_BETA, gcc4.8.4 generates some strange code. Test case: int foo(int); void bar(int *); void func(int args) { int key; int flag = (args==0); bar(&