summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-05-21 12:05:15 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2010-05-23 09:49:36 +0200
commit1ec8acd77b6c048f5a68887ac7750b0764ade598 (patch)
tree8b932e3b11e8b063607f80b6f0c042b4b04bafa8
parente06bc69870d1ef79466557dd716ec1edb0e48fee (diff)
downloadqt4-tools-1ec8acd77b6c048f5a68887ac7750b0764ade598.tar.gz
Remove Q_PACKED from QChar and QLocale::Data.
Reviewed-by: Olivier Goffart
-rw-r--r--dist/changes-4.7.07
-rw-r--r--src/corelib/tools/qchar.h6
-rw-r--r--src/corelib/tools/qlocale.h6
3 files changed, 9 insertions, 10 deletions
diff --git a/dist/changes-4.7.0 b/dist/changes-4.7.0
index 34d002ce5b..4965ef5bbc 100644
--- a/dist/changes-4.7.0
+++ b/dist/changes-4.7.0
@@ -333,3 +333,10 @@ QtScript: Changes due to updating src/3rdparty/javascriptcore:
a column number of 1.
- QScriptValueIterator will include the "length" property when iterating
over Array objects.
+
+QtCore:
+ - QChar no longer carries the Q_PACKED tag on ARM. This flag was
+ used to allow proper alignment of QChar on 2 bytes on older ARM
+ ABIs, but it also allowed for unaligned access. Qt never generates
+ or uses unaligned access and the new EABI aligns as expected, so
+ the flag was removed.
diff --git a/src/corelib/tools/qchar.h b/src/corelib/tools/qchar.h
index 205f91166b..b9e7e01054 100644
--- a/src/corelib/tools/qchar.h
+++ b/src/corelib/tools/qchar.h
@@ -358,11 +358,7 @@ private:
QChar(uchar c);
#endif
ushort ucs;
-}
-#if (defined(__arm__) || defined(__ARMEL__))
- Q_PACKED
-#endif
- ;
+};
Q_DECLARE_TYPEINFO(QChar, Q_MOVABLE_TYPE);
diff --git a/src/corelib/tools/qlocale.h b/src/corelib/tools/qlocale.h
index 5023201f73..f2fd89289e 100644
--- a/src/corelib/tools/qlocale.h
+++ b/src/corelib/tools/qlocale.h
@@ -685,11 +685,7 @@ public:
struct Data {
quint16 index;
quint16 numberOptions;
- }
-#if (defined(__arm__) || defined(__ARMEL__))
- Q_PACKED
-#endif
- ;
+ };
private:
friend struct QLocalePrivate;
// ### We now use this field to pack an index into locale_data and NumberOptions.