The logic is great, and i like the refactoring.<div><br></div><div>However, please don't quote GCC documentation in a patch. ;] I don't think you even need a comment here, the code says exactly what it is doing. If you want to do anything you can leave a comment with a link to GCC documentation for the macro, but I don't know that even that is terribly important.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 9, 2012 at 4:17 PM, nobled <span dir="ltr"><<a href="mailto:nobled@dreamwidth.org" target="_blank">nobled@dreamwidth.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>From gcc's docs about _LP64 and __LP64__:<br>
<a href="http://gcc.gnu.org/onlinedocs/gcc-4.2.1/cpp/Common-Predefined-Macros.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc-4.2.1/cpp/Common-Predefined-Macros.html</a><br>
"These macros are defined, with value 1, if (and only if)<br>
the compilation is for a target where long int and pointer<br>
both use 64-bits and int uses 32-bit."<br>
<br>
Instead of adding it to each individual subclass in<br>
Targets.cpp, simply check the appropriate target<br>
values.<br>
<br>
Where before it was only on x86_64 and ppc64, it's now<br>
also defined on mips64 and nvptx64.<br>
<br>
This also adds a bunch of negative tests to ensure it is *not*<br>
defined on any other architectures.<br>
<br>
Ok to commit?<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>