Skip to content
Snippets Groups Projects
  • Jakub Jelinek's avatar
    35da095d
    libgcc: Avoid signed negation overflow in __powi?f2 [PR99236] · 35da095d
    Jakub Jelinek authored
    When these functions are called with integer minimum, there is UB on the libgcc
    side.  Fixed in the obvious way, the code in the end wants ABSU_EXPR behavior.
    
    2021-02-24  Jakub Jelinek  <jakub@redhat.com>
    
    	PR libgcc/99236
    	* libgcc2.c (__powisf2, __powidf2, __powitf2, __powixf2): Perform
    	negation of m in unsigned type.
    35da095d
    History
    libgcc: Avoid signed negation overflow in __powi?f2 [PR99236]
    Jakub Jelinek authored
    When these functions are called with integer minimum, there is UB on the libgcc
    side.  Fixed in the obvious way, the code in the end wants ABSU_EXPR behavior.
    
    2021-02-24  Jakub Jelinek  <jakub@redhat.com>
    
    	PR libgcc/99236
    	* libgcc2.c (__powisf2, __powidf2, __powitf2, __powixf2): Perform
    	negation of m in unsigned type.