Looked into this, couldn't find a good reason for it to exist so I removed it and regenerated. The regeneration was a lot larger than I'd have expected so something is a bit odd, but it should be correct.<div><br></div>
<div>-eric<br><br><div>On Wed Jan 08 2014 at 1:19:07 AM, David Woodhouse <<a href="mailto:dwmw2@infradead.org">dwmw2@infradead.org</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 2014-01-01 at 17:40 +0900, NAKAMURA Takumi wrote:<br>
><br>
> > +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most<br>
> > +   significant byte first (like Motorola and SPARC, unlike Intel). */<br>
> > +#if defined AC_APPLE_UNIVERSAL_BUILD<br>
> > +# if defined __BIG_ENDIAN__<br>
> > +#  define WORDS_BIGENDIAN 1<br>
> > +# endif<br>
> > +#else<br>
> > +# ifndef WORDS_BIGENDIAN<br>
> > +#  undef WORDS_BIGENDIAN<br>
> > +# endif<br>
> > +#endif<br>
> > +<br>
> >  /* Define to empty if `const' does not conform to ANSI C. */<br>
> >  #undef const<br>
><br>
> I won't locally reproduce the change in <a href="http://config.h.in" target="_blank">config.h.in</a>. Any idea?<br>
<br>
Idly watching this go past... am I missing something that would make the<br>
construct<br>
        #ifndef FOO<br>
        #undef FOO<br>
        #endif<br>
make sense? I appreciate this is <a href="http://config.h.in" target="_blank">config.h.in</a> and it's subject to some<br>
post-processing, but even if that #undef gets magically turned into a<br>
#define the result doesn't seem to make much sense to me either.<br>
<br>
And this appears to be the *only* instance of WORDS_BIGENDIAN in the<br>
entire LLVM source tree, according to 'git grep'. Is it used anywhere?<br>
<br>
--<br>
David Woodhouse                            Open Source Technology Centre<br>
<a href="mailto:David.Woodhouse@intel.com" target="_blank">David.Woodhouse@intel.com</a>                              Intel Corporation<br>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div>