<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I pulled down trunk on Tuesday night, and it errors in CMake on linux if GCC < 4.7, so I’m not really sure what purpose this serves. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Gordon<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> llvm-commits-bounces@cs.uiuc.edu [mailto:llvm-commits-bounces@cs.uiuc.edu] <b>On Behalf Of </b>Logan Chien<br><b>Sent:</b> Wednesday, February 19, 2014 12:11 PM<br><b>To:</b> Aaron Ballman<br><b>Cc:</b> llvm-commits<br><b>Subject:</b> Re: [llvm] r201679 - Disable override and final C++ keyword in gcc 4.6.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hi Aaron,<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>I know that GCC 4.7 is the minimum support compiler.  However, since the change is limited to the compiler compatibility header (there are even some checks for GCC 3.1 in this header) and this change fixes the build and passes all test cases, I feel it is acceptable in this case.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Although I know the code base might be incompatible with GCC 4.6 in the near future, I wish to keep the backward compatibility as long as possible given that only some simple change to compiler compatibility header is required.  I agree that it won't make sense to stick with old syntax or prohibit the usage of new language feature just for the backward compatibility of the unsupported GCC 4.6.<o:p></o:p></p></div><div><p class=MsoNormal>Sincerely,<o:p></o:p></p></div><p class=MsoNormal>Logan<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Feb 19, 2014 at 11:27 PM, Aaron Ballman <<a href="mailto:aaron@aaronballman.com" target="_blank">aaron@aaronballman.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal>Since our min supported compiler version is 4.7 (as of llvm 3.4), I<br>don't believe this commit really makes sense. Since we're trying to<br>make the switch to using C++11 functionality, I don't think we want to<br>add support for older compilers which will fail in other ways.<br><span style='color:#888888'><br><span class=hoenzb>~Aaron</span></span><o:p></o:p></p><div><div><p class=MsoNormal><br>On Wed, Feb 19, 2014 at 10:04 AM, Logan Chien <<a href="mailto:tzuhsiang.chien@gmail.com">tzuhsiang.chien@gmail.com</a>> wrote:<br>> Author: logan<br>> Date: Wed Feb 19 09:04:29 2014<br>> New Revision: 201679<br>><br>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=201679&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=201679&view=rev</a><br>> Log:<br>> Disable override and final C++ keyword in gcc 4.6.<br>><br>> According to <a href="http://gcc.gnu.org/projects/cxx0x.html" target="_blank">http://gcc.gnu.org/projects/cxx0x.html</a>,<br>> override and final keyword was added in gcc 4.7.  Thus,<br>> we should not use these keywords in gcc 4.6 even when<br>> __GXX_EXPERIMENTAL_CXX0X__ is available.<br>><br>> Modified:<br>>     llvm/trunk/include/llvm/Support/Compiler.h<br>><br>> Modified: llvm/trunk/include/llvm/Support/Compiler.h<br>> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=201679&r1=201678&r2=201679&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=201679&r1=201678&r2=201679&view=diff</a><br>> ==============================================================================<br>> --- llvm/trunk/include/llvm/Support/Compiler.h (original)<br>> +++ llvm/trunk/include/llvm/Support/Compiler.h Wed Feb 19 09:04:29 2014<br>> @@ -152,7 +152,8 @@<br>>  /// LLVM_FINAL - Expands to 'final' if the compiler supports it.<br>>  /// Use to mark classes or virtual methods as final.<br>>  #if __has_feature(cxx_override_control) || \<br>> -    defined(__GXX_EXPERIMENTAL_CXX0X__) || LLVM_MSC_PREREQ(1700)<br>> +    (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GNUC_PREREQ(4, 7)) || \<br>> +    LLVM_MSC_PREREQ(1700)<br>>  #define LLVM_FINAL final<br>>  #else<br>>  #define LLVM_FINAL<br>> @@ -161,7 +162,8 @@<br>>  /// LLVM_OVERRIDE - Expands to 'override' if the compiler supports it.<br>>  /// Use to mark virtual methods as overriding a base class method.<br>>  #if __has_feature(cxx_override_control) || \<br>> -    defined(__GXX_EXPERIMENTAL_CXX0X__) || LLVM_MSC_PREREQ(1700)<br>> +    (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GNUC_PREREQ(4, 7)) || \<br>> +    LLVM_MSC_PREREQ(1700)<br>>  #define LLVM_OVERRIDE override<br>>  #else<br>>  #define LLVM_OVERRIDE<br>><br>><br>> _______________________________________________<br>> llvm-commits mailing list<br>> <a href="mailto:llvm-commits@cs.uiuc.edu">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/mailman/listinfo/llvm-commits</a><o:p></o:p></p></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>