A distributer macro for GCC was discussed at http://gcc.gnu.org/ml/gcc/2011-05/msg00275.html . Result of the discussion was, that Nathan Sidwell already created a very simple patch against 4.5 that enables this via the --with-specs configure switch. This is already available in the code-base of the Ubuntu package, so the only thing missing was proper use of the switch.
I implemented a small change to the build rules, that determines the Ubuntu version and package patch-level and then defines the macro as suggested in my initial mail to the GCC list. I.e. the code from the initial post can now check for #if defined(__GNUC_UBUNTU_VERSION__) && __GNUC_UBUNTU_VERSION__ == 0xd0409 ** Patch added: "packager-define.patch" https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/780551/+attachment/2151162/+files/packager-define.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/780551 Title: incorrect interface in avxintrin.h -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
