summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-17 11:14:47 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-17 11:14:47 +0100
commit9d26619465d268dee1e16a8e5318ac19c5a573be (patch)
treea8acb37a956736b26997f1096e5cb272ca5d68fb
parent33f5fdeadf248793456ce472707890e1f6368cbe (diff)
downloadrockbox-9d26619465d268dee1e16a8e5318ac19c5a573be.tar.gz
rockbox-9d26619465d268dee1e16a8e5318ac19c5a573be.zip
Workarund GCC bug #52991 regarding packet attribute.
According to http://http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991, since mingw-gcc 4.7.1 -mms-bitfields is on by default, and this option breaks the packet attribute since around 4.2.0. We haven't set this option so I'm assuming we don't need it. Therefore a workaround in configure can make things work again, because we rely on the packet attribute in quite a few places. Change-Id: I8367c16594cecfdde97c548e04607deaa92e21de
-rwxr-xr-xtools/configure5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index cbacbe9e89..1ac644597e 100755
--- a/tools/configure
+++ b/tools/configure
@@ -258,7 +258,10 @@ simcc () {
258 fibers=`check_fiber` 258 fibers=`check_fiber`
259 endian="little" # windows is little endian 259 endian="little" # windows is little endian
260 echo "Enabling MMX support" 260 echo "Enabling MMX support"
261 GCCOPTS="$GCCOPTS -mmmx" 261 # -mno-ms-bitfields is a workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
262 # mingw-gcc >= 4.7 defaults to -mms-bitfields which breaks __attribute__((packed))
263 # disable it explicitly for the time being (it doesn't appear to be required for us)
264 GCCOPTS="$GCCOPTS -mmmx -mno-ms-bitfields"
262 else 265 else
263 case $uname in 266 case $uname in
264 CYGWIN*) 267 CYGWIN*)