This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/79112] [SH] libgo/go/exp/terminal/util.go:70:23: error: integer constant overflow
- From: "kkojima at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jan 2017 00:19:35 +0000
- Subject: [Bug target/79112] [SH] libgo/go/exp/terminal/util.go:70:23: error: integer constant overflow
- Auto-submitted: auto-generated
- References: <bug-79112-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79112
--- Comment #5 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
It seems that the error message says all. TIOCGWINSZ is defined as
#define TIOCGWINSZ 0x80087468 /* _IOR('t', 104, struct winsize) */
in the SH kernel header asm/ioctls.h. Perhaps you could change it to
#define TIOCGWINSZ (int)0x80087468 /* _IOR('t', 104, struct winsize) */
so to avoid that error. I'm not sure that this is go problem or
usual SH kernel header problem. And I'm not sure that go can work
well on SH even if it can be built. I guess 32-bit ports without
split stack can run small go applications only. The patch is welcome,
of course.