This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r250992 - in /trunk: gcc/go/gofrontend/MERGE li...


Author: ian
Date: Wed Aug  9 17:15:02 2017
New Revision: 250992

URL: https://gcc.gnu.org/viewcvs?rev=250992&root=gcc&view=rev
Log:
    compiler: handle >32bit exponent in Ldexp
    
    Libgo's implementation of math.Ldexp declared the libc "ldexp" as
    taking an 'int' exponent argument, which is not quite right for 64-bit
    platforms (exp arg is always int32); this could yield incorrect
    results for exponent values outside the range of Minint32/Maxint32.
    Fix by upating the type for the libc version of ldexp, and adding
    guards to screen for out-of-range exponents.
    
    Fixes #21323.
    
    Reviewed-on: https://go-review.googlesource.com/54250

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/go/math/ldexp.go


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]