From: David Malcolm Date: Tue, 25 Oct 2016 14:47:38 +0000 (+0000) Subject: go-lang.c: remove a redundant cast X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b3aaca69f2ec663bdac2f173260992c2a2f764e;p=gcc.git go-lang.c: remove a redundant cast gcc/go/ChangeLog: * go-lang.c (go_langhook_type_for_mode): Remove redundant cast from result of GET_MODE_CLASS. Minor formatting fixes. From-SVN: r241514 --- diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 28d4f6f295b..8a047077cad 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2016-10-25 David Malcolm + + * go-lang.c (go_langhook_type_for_mode): Remove redundant cast + from result of GET_MODE_CLASS. Minor formatting fixes. + 2016-10-13 Thomas Preud'homme * go-backend.c: Include memmodel.h. diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index 8d66ee0e176..e7305b85775 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -373,10 +373,9 @@ go_langhook_type_for_mode (machine_mode mode, int unsignedp) return NULL_TREE; } - // FIXME: This static_cast should be in machmode.h. - enum mode_class mc = static_cast(GET_MODE_CLASS(mode)); + enum mode_class mc = GET_MODE_CLASS (mode); if (mc == MODE_INT) - return go_langhook_type_for_size(GET_MODE_BITSIZE(mode), unsignedp); + return go_langhook_type_for_size (GET_MODE_BITSIZE (mode), unsignedp); else if (mc == MODE_FLOAT) { switch (GET_MODE_BITSIZE (mode))