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
This commit is contained in:
parent
d5356522e5
commit
4b3aaca69f
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-10-25 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* 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 <thomas.preudhomme@arm.com>
|
||||
|
||||
* go-backend.c: Include memmodel.h.
|
||||
|
|
|
@ -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<enum mode_class>(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))
|
||||
|
|
Loading…
Add table
Reference in a new issue