[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread t66667 at gmail dot com


--- Comment #1 from t7 at gmail dot com  2009-12-24 11:44 ---
Created an attachment (id=19386)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19386action=view)
saves .ok compiled with  -fno-optimize-sibling-calls


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42489



[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread t66667 at gmail dot com


--- Comment #2 from t7 at gmail dot com  2009-12-24 11:57 ---
(gdb) disass $pc-30 $pc+30
Dump of assembler code from 0x4933e3 to 0x49341f:
0x004933e3 __xmlRaiseError+179:   add%al,(%eax)
0x004933e5 __xmlRaiseError+181:   add%al,%bh
0x004933e7 __xmlRaiseError+183:   add$0x24,%al
0x004933e9 __xmlRaiseError+185:   xchg   %eax,%esi
0x004933ea __xmlRaiseError+186:   add%al,(%eax)
0x004933ec __xmlRaiseError+188:   add%cl,0x15ff0076(%ebp)
0x004933f2 __xmlRaiseError+194:   movsb  %ds:(%esi),%es:(%edi)
0x004933f3 __xmlRaiseError+195:   inc%ecx
0x004933f4 __xmlRaiseError+196:   dec%esp
0x004933f5 __xmlRaiseError+197:   add%al,-0x1fba7640(%ebp)
0x004933fb __xmlRaiseError+203:   je 0x4934d0 __xmlRaiseError+416
0x00493401 __xmlRaiseError+209:   jmp0x493401 __xmlRaiseError+209
0x00493403 __xmlRaiseError+211:   cmpl   $0x0,0xc(%ebp)
0x00493407 __xmlRaiseError+215:   je 0x49346f __xmlRaiseError+319
0x00493409 __xmlRaiseError+217:   cmpl   $0x493220,0xc(%ebp)
0x00493410 __xmlRaiseError+224:   je 0x49366c __xmlRaiseError+828
0x00493416 __xmlRaiseError+230:   cmpl   $0x493130,0xc(%ebp)
0x0049341d __xmlRaiseError+237:   je 0x49366c __xmlRaiseError+828
End of assembler dump.
(gdb) info all-registers
eax0xa07308 10515208
ecx0x77633b23   2002991907
edx0xa07303 10515203
ebx0x4f97c4 5216196
esp0x28ec10 0x28ec10
ebp0x28ec48 0x28ec48
esi0xa02ac0 10496704
edi0x1  1
eip0x493401 0x493401 __xmlRaiseError+209
eflags 0x202[ IF ]
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x53 83
gs 0x2b 43
st00(raw 0x)
st10(raw 0x)
st20(raw 0x)
st30(raw 0x)
st40(raw 0x)
st50(raw 0x)
st60(raw 0x)
st7-0   (raw 0x8000)
fctrl  0x37f895
fstat  0x4000   16384
ftag   0x   65535
fiseg  0xf800   63488
fioff  0x288ce5242520146
foseg  0xfa80   64128
fooff  0x759c060123322464
fop0x0  0
xmm0   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
xmm1   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
xmm2   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
xmm3   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
xmm4   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
xmm5   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
xmm6   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
xmm7   {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 repeats 16 times}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x}
mxcsr  0x1f80   [ IM DM ZM OM UM PM ]
mm0{uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm1{uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 

[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread d dot g dot gorbachev at gmail dot com


--- Comment #3 from d dot g dot gorbachev at gmail dot com  2009-12-24 
21:25 ---
Some issues with -foptimize-sibling-calls were fixed in GCC 4.5


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42489



[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread t66667 at gmail dot com


--- Comment #4 from t7 at gmail dot com  2009-12-24 21:29 ---
(In reply to comment #3)
 Some issues with -foptimize-sibling-calls were fixed in GCC 4.5
 

Backport it to 4.4 branch?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42489



[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread t66667 at gmail dot com


--- Comment #5 from t7 at gmail dot com  2009-12-24 22:09 ---
(In reply to comment #3)
 Some issues with -foptimize-sibling-calls were fixed in GCC 4.5
 

Which revision fix in trunk??


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42489



[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread t66667 at gmail dot com


--- Comment #6 from t7 at gmail dot com  2009-12-24 22:44 ---
Cause endless maximum cpu usage in application run-time.


-- 

t7 at gmail dot com changed:

   What|Removed |Added

   Severity|normal  |major


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42489



[Bug rtl-optimization/42489] Function call never happened after compile with -foptimize-sibling-calls

2009-12-24 Thread paolo dot carlini at oracle dot com


-- 

paolo dot carlini at oracle dot com changed:

   What|Removed |Added

   Severity|major   |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42489