[Bug 780551] Re: incorrect interface in avxintrin.h
doko at ubuntu.com
Wed May 25 09:34:04 UTC 2011
please see https://launchpad.net/~ubuntu-toolchain-r/+archive/ppa
for a gcc-4.5 4.5.3 package built for natty; it doesn't seem to be appropriate to update this for natty. Maybe you could provide an autoconf macro for your template library defining a preprocessor macro which could be used to overwrite the version detection.
Of course, your users would have to know about this macro.
** Changed in: gcc-4.5 (Ubuntu)
Status: New => Won't Fix
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.5 in Ubuntu.
incorrect interface in avxintrin.h
Status in Linaro GCC:
Status in “gcc-4.5” package in Ubuntu:
Binary package hint: gcc-4.5
The following code compiles with vanilla GCC:
__m128 m, x;
#if defined(__GNUC__) && __GNUC__ == 4 && (__GNUC_MINOR__ < 5 || (__GNUC_MINOR__ == 5 && __GNUC_PATCHLEVEL__ <= 2))
_mm_maskstore_ps(mem, m, x);
_mm_maskstore_ps(mem, _mm_castps_si128(m), x);
It fails to compile on Ubuntu because the interface of _mm_maskstore_ps was changed to the interface of GCC 4.5.3, but the version number was kept at 4.5.2.
Which macro does Ubuntu GCC provide to check for this?
For what it's worth, I believe this patch should be reverted in the
GCC package, though it's probably too late already. I'd hope the
updates to the gcc package would be good enough, though. Or consider
to upgrade to 4.5.3 completely.
Also, just to add a bit of perspective: I do nightly builds of a
software project where GCC snapshots between even patch levels often
exhibit miscompilations. I don't see how a distribution could sensibly
take any patches from GCC between releases and release that as a given
GCC package. A distribution has the means to ensure that its own
packages compile, but that it executes correctly...? In this case you
broke source compatibility without any means to distinguish the
interface version. Since it only affects development for AVX it is no
wonder that you don't notice. That hopefully doesn't imply that you
DistroRelease: Ubuntu 11.04
Package: gcc 4:4.5.2-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 126.96.36.199
Uname: Linux 2.6.38-8-generic x86_64
Date: Tue May 10 16:13:13 2011
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426.3)
UpgradeStatus: No upgrade log present (probably fresh install)
More information about the foundations-bugs