|
From: | Paul Eggert |
Subject: | Re: gnulib:test-stdalign failing on powerpc-darwin8, gcc-4.0 |
Date: | Thu, 18 Dec 2014 01:20:10 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
David Fang wrote:
Hi Paul, I tried applying the patch (just the stdalign.in.h bit) to the powerpc-darwin8 build, but I still see (when changing the assert to printf):
Can you deduce why the fix didn't work? It should have inserted this:
+#elif (defined __APPLE__ && defined __MACH__ \ + ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ + : __GNUC__)
and that should be false on your platform because __APPLE__ and __MACH__ should be defined, __GNUC__ should be 4, and __GNUC_MINOR__ should be zero. Why is it true? What are the values of __APPLE__, etc.? That is, what is the output of running 'gcc -E foo.c | tail' when foo.c contains the following?
#include <stdio.h> "__GNUC__" __GNUC__ "__GNUC_MINOR__" __GNUC_MINOR__ "__APPLE__" __APPLE__ "__MACH__" __MACH__
[Prev in Thread] | Current Thread | [Next in Thread] |