[eigen] good news from the alignment front |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] good news from the alignment front
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 10 Feb 2010 20:25:23 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=igHe+EodtNC0tizZpEXsHSTrB/0KqjdZE2WkKCZ7VzU=; b=OKx1XOZsY46tanih5KQYEBY9B2b4p2blK7VyVPkbR4bIJZhORYtHfcAQwAu+JIAiyw OZJpDEfjOoiKKcE8DLQGu2amvHzAyMF9uePqUJKqqucn+5OeOlLdcjVo/4rHipQWhG+h 5ci+SAum5scTc5M1tjxTTuYC6jynkTjnyklZs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VIdqzGMQA4MWqrezj81nz64wtCq5WI7hQA/PVG2dY9Or23mbWYooCpCdB4VgN70kPR FuGnJKmVWfUYoIofKcompPa6rWlDkzwSnJwMW6lmNodJSbYwenlhnTNKT91XNqwfeB0K sP5CEj21+M3d9v7z7MvgLaU6bYSTYNN0OLbuI=
Hi,
2 separate good news.
1)
Do you remember the infamous "Wrong stack alignment" crashes,
http://eigen.tuxfamily.org/dox/WrongStackAlignment.html
It turns out that it was a lack of support of alignment attributes in
GCC/Windows, and has been fixed in GCC 4.5:
http://gcc.gnu.org/gcc-4.5/changes.html
Quote:
"Windows (Cygwin and MinGW)
[...]
GCC now makes use of the new support for aligned common variables in
versions of binutils >= 2.20 to fix bugs in the support for SSE data
types."
2)
Do you remember the weird things that we had to do to use Qt
containers on Eigen types, QtAlignedMalloc? Well, a few months ago I
had a conversation with Thiago of Qt and he fixed it, making Qt
containers detect the type alignment using the compiler extension
keyword "alignof". See thread:
http://lists.trolltech.com/pipermail/qt-interest/2009-October/014216.html
I didn't check back, but in principle this appeared in Qt 4.6.
Benoit