http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59489
Bug ID: 59489 Summary: docs mentions that -fwrapv mandatory with java, but not go Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: shawn at churchofgit dot com the man page: -fwrapv This option instructs the compiler to assume that signed arithmetic overflow of addition, subtraction and multiplication wraps around using twos-complement representation. This flag enables some optimizations and disables others. This option is enabled by default for the Java front end, as required by the Java language specification. -fwrapv is also mandated by go specification http://golang.org/ref/spec