begin preliminary GCC 8 support (nw)

This commit is contained in:
arbee 2018-05-01 21:34:55 -04:00
parent b5fabb52eb
commit e651a1678d
2 changed files with 8 additions and 1 deletions

View File

@ -1035,6 +1035,13 @@ end
-- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds)
"-Wno-array-bounds",
}
if (version >= 80000) then
buildoptions {
"-Wno-format-overflow", -- try machine/bfm_sc45_helper.cpp in GCC 8.0.1, among others
"-Wno-class-memaccess", -- many instances in ImGui and BGFX
"-Wno-stringop-truncation", -- ImGui again
}
end
end
end

View File

@ -198,7 +198,7 @@ static constexpr uint32_t ROR_32(uint32_t A, uint32_t C) { return MASK_OUT_AB
/* Access the CPU registers */
inline uint32_t (&REG_DA())[16] { return m_dar; } /* easy access to data and address regs */
inline uint32_t (&REG_D())[16] { return m_dar; }
inline uint32_t (*REG_A()) { return (m_dar+8); }
inline uint32_t *REG_A() { return (m_dar+8); }
inline uint32_t (&REG_SP_BASE())[7]{ return m_sp; }
inline uint32_t &REG_USP() { return m_sp[0]; }
inline uint32_t &REG_ISP() { return m_sp[4]; }