]> granicus.if.org Git - esp-idf/commit
Adding -fstrict-volatile-bitfields to the CFLAGS/CXXFLAGS. Without this, gcc tries...
authorJeroen Domburg <git@j0h.nl>
Sun, 18 Sep 2016 04:10:01 +0000 (12:10 +0800)
committerJeroen Domburg <git@j0h.nl>
Sun, 18 Sep 2016 04:10:01 +0000 (12:10 +0800)
commitf703acd34464b2ca3e27c16bd3540b55f54d5393
treed06295028ab709e854dd572e834a7a003c3ef28a
parent489b4f31a90cfcdd6056106dedf51c4057f7d6d1
Adding -fstrict-volatile-bitfields to the CFLAGS/CXXFLAGS. Without this, gcc tries to access bitfields using the smallest possible methods (eg l8i to
grab an 8-bit field from a 32-bit). Our hardware does not like that. This flag tells gcc that if a bitfield is volatile, it should always use the type
the field is defined at (uint32_t in our case) to size its access to the field. This fixes accessing the hardware through the xxx_struct.h headers.
make/project.mk