Commit 4b3aaca6 by David Malcolm Committed by David Malcolm

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
parent d5356522
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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment