Bug 1143966 - Remove type specifier from AllocKind to avoid miscompilations on GCC. r=terrence

--HG--
extra : rebase_source : a5478fcb4b834ff6ba798032f6dd4f8e1d28107d
This commit is contained in:
Emanuel Hoogeveen 2015-03-19 13:59:00 -04:00
parent be65e7c4e3
commit 7738c1c171

View File

@ -76,7 +76,9 @@ enum InitialHeap {
};
/* The GC allocation kinds. */
enum class AllocKind : uint8_t {
// FIXME: uint8_t would make more sense for the underlying type, but causes
// miscompilations in GCC (fixed in 4.8.5 and 4.9.3). See also bug 1143966.
enum class AllocKind {
FIRST,
OBJECT0 = FIRST,
OBJECT0_BACKGROUND,