mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 22:50:32 -04:00
The HotSpot code (ab)uses named enums as ints in a number of places. The problem with this is that according the the C++ spec, the compiler (essentially) only needs to use an integral type wide enough to hold the values defined in the enum. Earlier versions of gcc appear to have just used an int whether they could have got away with a narrower type or not, hence the code worked as expected. gcc 3.4 now appears to implement this part of the spec, so using an enum blindly as an int causes various problems due to overflow. This case is particularly bogus since the enums are merely to define a named integral type within a class (VMReg::Name doesn't even have any values enumerated in the declaration). So, convert these two enums to simply be typedef'ed ints. Sleuth work, discussion and code suggestions: peadar |
||
---|---|---|
.. | ||
cacerts | ||
disable-ipv6.patch | ||
patch-awt_Component.c | ||
patch-awt_fontmanager_fontObject.cpp | ||
patch-awt_fontmanager_t2kScalerContext.cpp | ||
patch-common::Defs-bsd.gmk | ||
patch-control::common::Defs-bsd.gmk | ||
patch-deploy::Makefile | ||
patch-font.properties.zh_TW.bsd | ||
patch-interpreter_shared.hpp | ||
patch-io_io_util.h | ||
patch-native::util.c | ||
patch-plugin::common::config.gmk | ||
patch-plugin::ns6::Makefile | ||
patch-plugin_ns600_nscore.h | ||
patch-plugin_ns610_nscore.h | ||
patch-vm::os_bsd.cpp | ||
pkg-install.in | ||
testos.c |