[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 14:19:29 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12253 
====================================================================== 
Reported By:                fossil
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12253
Category:                   Codecs/codec_g726
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     assigned
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 14:19 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.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 03-18-08 14:19  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 109648

U   branches/1.4/codecs/log2comp.h

------------------------------------------------------------------------
r109648 | qwell | 2008-03-18 14:19:29 -0500 (Tue, 18 Mar 2008) | 7 lines

Allow codecs that use log2comp (g726) to compile correctly on x86 with
gcc4 optimizations.

(closes issue http://bugs.digium.com/view.php?id=12253)
Reported by: fossil
Patches:
      log2comp.patch uploaded by fossil (license 140)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=109648 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-18-08 14:19  svnbot         Checkin                                      
03-18-08 14:19  svnbot         Note Added: 0084170                          
03-18-08 14:19  svnbot         Status                   new => assigned     
03-18-08 14:19  svnbot         Assigned To               => qwell           
======================================================================




More information about the asterisk-bugs mailing list