[asterisk-bugs] [Asterisk 0012253]: G.726 codec may function incorrectly because of ilog2() asm routine

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Mar 18 13:51:07 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12253 
====================================================================== 
Reported By:                fossil
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12253
Category:                   Codecs/codec_g726
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 109587 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-18-2008 13:51 CDT
Last Modified:              03-18-2008 13:51 CDT
====================================================================== 
Summary:                    G.726 codec may function incorrectly because of
ilog2() asm routine
Description: 
The gcc x86 asm implementation of ilog2() can sometimes compile incorrectly
with gcc 4 optimizations enabled. gcc may allocate the same register for
the input and output operands, which results in a very broken code. To fix
this the output operand needs an earlyclobber constraint modifier.
Patch follows. The same patch should be applied to all branches.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-18-08 13:51  fossil         Asterisk Version          => SVN             
03-18-08 13:51  fossil         SVN Branch (only for SVN checkou =>  trunk       
  
03-18-08 13:51  fossil         SVN Revision (number only!) => 109587          
======================================================================




More information about the asterisk-bugs mailing list