base: Initialize some variables in the wide multiply helpers.
Not initializing them seems to upset older versions of g++. Change-Id: Ib3de0460463f2fe514175484c49e1df68dacb4d3 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45819 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -228,7 +228,7 @@ template <typename T>
|
||||
static constexpr std::pair<std::make_unsigned_t<T>, std::make_unsigned_t<T>>
|
||||
mulUnsigned(std::make_unsigned_t<T> val_a, std::make_unsigned_t<T> val_b)
|
||||
{
|
||||
std::make_unsigned_t<T> hi, low;
|
||||
std::make_unsigned_t<T> hi{}, low{};
|
||||
mulUnsigned<T>(hi, low, val_a, val_b);
|
||||
return {hi, low};
|
||||
};
|
||||
@@ -237,7 +237,7 @@ template <typename T>
|
||||
static constexpr std::pair<std::make_signed_t<T>, std::make_signed_t<T>>
|
||||
mulSigned(std::make_signed_t<T> val_a, std::make_signed_t<T> val_b)
|
||||
{
|
||||
std::make_signed_t<T> hi, low;
|
||||
std::make_signed_t<T> hi{}, low{};
|
||||
mulSigned<T>(hi, low, val_a, val_b);
|
||||
return {hi, low};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user